Commit graph

5308 commits

Author SHA1 Message Date
Dragan Ivanovic
48c88d3d3e
Merge pull request #355 from vivo-project/i18n-redesign
I18n redesign
2023-02-13 14:08:01 +01:00
509e9cf22b
Custom forms fixes (#361)
* added safety check

* Prevent failing autocomplete field with type selectors in case more than one pair of type selectors and autocomplete field used

---------

Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2023-02-02 14:24:47 +01:00
a0a1a6664b
Faux data properties and fixes for current faux properties view (#352)
* Faux data properties

* Use not disjointed classes for faux properties domain and range options

* Fix faux object property shadowing real property
List faux data properties
List faux properties which base properties domain don't match current subject

* Write exception to log in VClassDaoJena

* filter faux properties returned in possiblePropInstForIndividual

* safety checks added

* extracted getBaseLabel method, fixed base labels for data properties

* fix for prev commit

* Formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-12-16 11:40:49 +01:00
Dragan Ivanovic
6312b966f2 adding support for private subtags in the language tags, replacement of toString() method with toLanguageTag() method, adding checks for locale.stripExtensions() where it was neccessary, adding information about private tag in the drop down selection of a UI language 2022-12-13 11:37:56 +01:00
Dragan Ivanovic
7340b7ff3f fix in the startup_listeners.txt 2022-11-28 08:43:56 +01:00
Dragan Ivanovic
5a48b7da59 moving UI labels translations from Vitro-languages into the Vitro repository 2022-11-28 08:43:56 +01:00
9e3a3f7451
[i18b sprint] 3760 translations loading (#341)
* renamed I18nBundle

* added I18nBundle interface

* Added translation provider

* prototype of TranslationConverter

* convert all properties

* fixes

* added caching

* Removed obsolete code

* Improved logging

* fixed getting already existing label

* Fix to get RDF Service for configuration models

* fix translation request query

* added INTERFACE_I18N_FIRSTTIME_BACKUP model

* converter test added

* formatting fixes

* Translation provider tests added

* cleanups, added cache test for translation provider

* fix: get theme info from web app dao factory as sparql queries on both content and configuration models not supported
2022-11-25 16:25:58 +02:00
0b99cab654
[ i18n sprint ] autoCompleteObjectPropForm and lib-properties fixes from fr_CA (#336)
* Apply fixes from french lib properties

* Apply fixes from fr_CA autoCompleteObjectPropForm

* fixed for fr_CA and other languages

* fixes from fr_CA

* fix for  autoCompleteObjectPropForm.ftl

* fixed wrong call for i18n bundle
2022-11-15 10:05:25 +01:00
Dragan Ivanovic
a6a480986f
[ i18n sprint ] Move search help page translations to properties (#333)
* making generic searh-help by using translation properties' keys and i18n bean

* Adding new line at the end of the file

* Adding translation for title of an anchor
2022-11-08 11:59:29 +01:00
403cd6507a
[ i18n sprint ] Decouple email templates and translations (#334)
* Decouple email templates and translations

* provide siteName variable to error templates
2022-11-08 11:35:41 +01:00
Dragan Ivanovic
1511e00c61
Merge pull request #338 from litvinovg/autocomplete_form
[i18n sprint] Language-neutral help text in autocomplete forms
2022-10-27 15:08:05 +02:00
874409d959
Use language-neutral selectAnExistingOrCreateNewOne translation key 2022-10-19 14:02:34 +02:00
c79f381f15
fixed new individual form 2022-10-06 15:33:22 +02:00
chenejac
95467b2818 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:17:21 +02:00
chenejac
4b24a11a6c [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:14:52 +02:00
chenejac
7a94922d48 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:10:01 +02:00
chenejac
85dad20927 [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:10:01 +02:00
chenejac
27c8b16290 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:10:01 +02:00
chenejac
afe45a99db [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:10:01 +02:00
chenejac
a8a5c5a5e8 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:06:41 +02:00
chenejac
2e029ee9fb [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:06:41 +02:00
chenejac
b802e2eb82 rebasing for new release candidate 2022-08-26 16:06:40 +02:00
chenejac
f0c4d27268 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:06:40 +02:00
chenejac
34ab29a08e [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:06:40 +02:00
chenejac
aa8124df17 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:06:40 +02:00
chenejac
7bf136fdbe [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:06:40 +02:00
chenejac
325b9a3fe9 [maven-scm-plugin] prepare development vitro-1.13.1-SNAPSHOT 2022-08-26 16:06:40 +02:00
chenejac
228dda822f [maven-scm-plugin] prepare release vitro-1.13.0 2022-08-26 16:06:40 +02:00
3a14872c7c
fix: float validation regex (#318)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-07-25 14:56:20 +03:00
ff285fb80d
Added code for deleting individuals (#213)
* Added code for deleting individuals

* Allow admins delete individuals

* Fixed delete individual url params

* Improved query safety

* refact: fixed constants' names, fixed mistakes, removed useless code

* refact: refactored sparql queries

* fix: fixed error logging mistakes

* fix: use CONSTRUCT instead of DESCRIBE as less potentionally problematic, lookup for mostSpecificTypes

* feat: add delete link in vitro individual profile if individual is editable

* fix: renamed individualURI to individualUri and added safety check

* fix: use ABox model to construct triples to delete
2022-05-20 21:28:29 +02:00
ebc9237cc6
Upload documents in Vitro|VIVO (#251)
* feat: introduced file upload

* fix: added file upload config settings

* fix: reverted auto formatting of upload file helper

* fix: replaced missed condition

* Improved naming, internationalization, removed file extensions as misleading information

* Fixed wrong bytes number representing 10Mb

* fix: show no media types allowed if no media types defined in runtime.properties

* fix: Add vitro-languages-home-core as installer dependency to have Vitro RDF internationalization files

* fix: change vitro-languages-core-home dependency type from tar.gz to pom
2022-04-14 16:16:50 +02:00
bbd714ceb9
Online translation (#241)
* Online translation added to Developer panel settings

* Added special characters conversion on file import and export for online translations

* fix: Parse text nodes separately

* fix: broken js on page prevents working developer panel

* fix: workaround for online translations using freemarker template models

* fix: safe way to convert array of objects to array of strings

* fix: convert char codes on read/write property files

* refact: corrected constant names
2022-04-07 16:21:49 +02:00
Ralph O'Flinn
39e1eed20d [maven-scm-plugin] prepare development vitro-1.12.3-SNAPSHOT 2022-02-15 04:26:25 -06:00
Ralph O'Flinn
ec13d83faa [maven-scm-plugin] prepare release vitro-1.12.2 2022-02-15 04:25:38 -06:00
Ralph O'Flinn
c88626dffc [maven-scm-plugin] prepare development vitro-1.12.2-SNAPSHOT-SNAPSHOT 2021-12-16 01:25:32 -06:00
Ralph O'Flinn
420971464a [maven-scm-plugin] prepare release vitro-1.12.1 2021-12-16 01:24:47 -06:00
Ralph O'Flinn
fc8b92fcf6
Rel 1.12.1 alpha (#249)
* Update issue templates

* Run unit tests in alphabetical order (#244)

* fix: unit tests VIVO-2003 (#245)

* updates to outdated urls

Co-authored-by: Dragan Ivanovic <chenejac@uns.ac.rs>
Co-authored-by: Brian Lowe <brian@ontocale.com>
Co-authored-by: Georgy Litvinov <git@litvinovg.pro>
2021-10-12 10:40:25 -05:00
Ralph O'Flinn
028af518f9
1.12.0-maint to main (#246)
* [maven-scm-plugin] prepare release vitro-1.12.0

* [maven-scm-plugin] prepare development vitro-1.12.1-SNAPSHOT-SNAPSHOT
2021-08-17 10:53:15 -05:00
Brian Lowe
a7e1e60c7e
Update version numbers in pom.xmls (#239)
* Update version numbers in pom.xmls

* Restore -SNAPSHOT
2021-06-21 04:10:08 -05:00
d21dc92b0b
Use unique key in account activation link and reset password link (#234)
* Use unique key for email activation and password reset

* Renamed old variable from hash to key

* Check for null before setting email key for backward compatibility. Removed comment about old behaviour.

* Send password_change_invalid_key message instead of password_change_not_pending on key mismatch.
2021-06-03 15:59:29 +03:00
Brian Lowe
7a24e259e8 URL-encode vCard-related resource URIs appended to edit links 2021-06-01 15:45:48 +03:00
Brian Lowe
0b9919c55d
Replace hardcoded en locale with current locale in lang and xml:lang attributes (#228) 2021-04-21 11:53:41 -05:00
Andrew Woods
eb949919b5
Sprint i18n with main (#209)
* Layer uqam updates onto master (minus trailing whitespace)

* Update RDFServiceFactorySingle.java

* Sprint i18n whitespace (#143)

* Removed extraneous whitespace
   - modified:   api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3editing/VTwo/BaseEditElementVTwo.java

* move RootUserPolicy.java from VIVO to Vitro repo.

* Remove blank line

* Fixed indentations

* Update whitespace for: TemplateProcessingHelper.java

* Update whitespace for: RDFServiceModel.java

* Removed extraneous whitespaces.

* Tagging UQAM Comments with following tags

-Add-Feature
-Optimization
-Linguistic-Management
-Bug-Correction

* Resolve compilation failures in Vitro tests

* Remove whitespace changes from SelectListGeneratorVTwo.java

* Add null check on field values of RDF Form (#158)

Resolves: https://jira.lyrasis.org/browse/VIVO-1800

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Fix incorrect tool-tip in language selection dropdown (#156)

Resolves: https://jira.lyrasis.org/browse/VIVO-1783

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Sprint i18n/lang filtering model (#159)

* Add language-aware graph filtering instead of layering on additional RDFService

Resolves: https://jira.lyrasis.org/browse/VIVO-1771

* Remove hardcoded link label (#161)

Resolves: https://jira.lyrasis.org/browse/VIVO-1779

* Enable filtering of non-enabled i18n language files from being loaded into triple store (#160)

Define name of available language listing file (found in Vitro-languages)
Update RDFFilesLoader method interfaces to include ServletContext

Part of resolution to: https://jira.lyrasis.org/browse/VIVO-1836

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Add i18n version of Edit page title (#157)

Related to: https://jira.lyrasis.org/browse/VIVO-1779

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Changing ontology extensions for n3 & assigning a base IRI to each (#163)

ontology

Co-authored-by: michelheon <heon@videotorn.ca>
Co-authored-by: Andrew Woods <awoods@duraspace.org>

https://jira.lyrasis.org/browse/VIVO-1862

* Update sprint-i18n with master branch (#166)

* Make data property richtext editor option selectable from UI

* [VIVO-1755] - Better error handling when reasoner disabled (#137)

* Better error handling when reasoner disabled

* Change reasoner error log message to debug

* Extend reasoner status error handling

* Improve reasoner error log message and extend to JenaAdminActions

* Bump up log level for admin action to 'warn' and edit admin panel error message

* Change Model writer lang from "N3-PP" to "N3" (#149)

Resolves: https://jira.lyrasis.org/browse/VIVO-1761

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* [VIVO-1851] - Add 'remove' option to named graph management page (#162)

* Add 'remove' option to named graph management page

Resolves: https://jira.lyrasis.org/browse/VIVO-1851

* [VIVO-1872] - Add download option to SPARQL Query page (#164)

* Add download option to SPARQL Query page

* Set SPARQL query results content type even if downloading

* Address pull request comments

Co-authored-by: gneissone <mbgross@wustl.edu>
Co-authored-by: Ralph O'Flinn <roflinn@users.noreply.github.com>
Co-authored-by: Andrew Woods <awoods@duraspace.org>

* [VIVO-1839] - Use language name for selector instead of flags (#165)

* Use language name for selector instead of flags
* Add country name to language selector
* Increase min-width of language dropdown
* Update data tree comment in languageSelector.ftl
* Min-width for language dropdown
* Language dropdown css adjustment
* Capitalize locale label
* Indent on languageSelector.ftl

Resolves: https://jira.lyrasis.org/browse/VIVO-1839

* Adds internationalization to the admin/sparql-query page (#167)

* Adds internationalization to the admin/sparql-query page

Partial resolution of: https://jira.lyrasis.org/browse/VIVO-1873

* Add i18n for 'save query result'

Related to: https://jira.lyrasis.org/browse/VIVO-1873

* code review

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* removed redundat files which are now available via Vitro- and VIVO-languages

* Making UQAM-optimization aware of https://

* Add parent reference to installer/pom.xml (#174)

Resolves: https://jira.lyrasis.org/browse/VIVO-1903

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Revert non-function RDF changes (#177)

Related to: https://jira.lyrasis.org/browse/VIVO-1905

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Ensure 'other' in Individual->Teaching->advisees->type is translated

Partial resolution to: https://jira.lyrasis.org/browse/VIVO-1881

* Re-add logic from commit 7420957

* [VIVO-1812] use i18n translation for validation messages (#179)

* replace constants with i18n text in BasicValidationVTwo
* use constants for i18n template key

Partial resolution of: https://jira.lyrasis.org/browse/VIVO-1812

* added js_string at i18n strings to handle quotes properly, ticket vivo-1842 (#180)

Partial resolution for: https://jira.lyrasis.org/browse/VIVO-1842

* [VIVO-1870] simplify and concat translation for browse by vclass (#182)

* simplify and concat translation for browse by vclass

Partial resolution of: https://jira.lyrasis.org/browse/VIVO-1870

* [VIVO-1900] i18n: added empty check for getCountry, fixing bug with spanish label (es) (#181)

* added empty check for getCountry, fixing bug with spanish label (es), ticket vivo-1900

Partial resolution to: https://jira.lyrasis.org/browse/VIVO-1900

* [VIVO 1870] update i18n key to JavaScript mapping (#183)

* update menupage-script i18n key to JavaScript mapping

Follow-on to resolution of: https://jira.lyrasis.org/browse/VIVO-1870

* [VIVO-1837] get i18n bundle from WebappDaoFactoryConfig preferred locales (#178)

* apply i18n text to VClassDaoJena.getLabelForClass
* expose i18n bundle through webapp dao factory interface
* use whole messages for i18n
* if request available use request bundle else use context bundle
* clear cache when context theme directory changes
* make getOverridingLocale from context private
* select locale based on preferred locale from webapp dao factory
* use first preferred local even when no selectable locales available on context
* build default preferred locales from default preferred languages

Resolves: https://jira.lyrasis.org/browse/VIVO-1837

* Ensure that "available langs" include base langs (#185)

Resolves: https://jira.lyrasis.org/browse/VIVO-1922

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Ensure I18nStub is initialized before pertinent tests (#186)

Resolves: https://jira.lyrasis.org/browse/VIVO-1923

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* add additional null checks to ensure context is ready for theme change (#187)

* [VIVO-1915] i18n - Adding a label with language tag through the "new" manageLabelsForindividualAddForm.ftl does not take the setting for language tag (#184)

* Fixed bug when addng a label with language tag through managLabelsForindividualAddForm, re ticket VIVO-1915

* removed the language select for managing multi language labels, ticket vivo-1915

* readded the fix for language selection because of the fr-CA version of the manageLabelsForIndividualftl, ticket vivo-1915

* removed earlier fix, removed comments, modified ManageLabelGenrator, ticket vivo-1915

Partial resolution to: https://jira.lyrasis.org/browse/VIVO-1915

* - replaced hard coded "or"s with i18n().or

* [VIVO-1925] i18n: Editing labels results in new label (#188)

* fixed bug: Editing language labels results in new label, ticket vivo-1925

Resolves: https://jira.lyrasis.org/browse/VIVO-1925

* Enable lang selection without need for 'available-langs.properties' (#169)

* Enable lang selection without need for 'available-langs.properties'
Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Reduce number of times QuerySolutions are looped in LanguageFilteringRDFService (#194)

- No functional change in this update

Resolves: https://jira.lyrasis.org/browse/VIVO-1931

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Prevent 'ProcessRdfForm.parseN3ToRDF' from using null linguisticContext (#197)

Resolves: https://jira.lyrasis.org/browse/VIVO-1944

Co-authored-by: Andrew Woods <awoods@duraspace.org>

* [Vivo 1918] i18n: Reload firsttime files on start-up if changed (#195)

Co-authored-by: Andrew Woods <awoods@lyrasis.org>

* [VIVO-1936] i18n: updated the language comment in runtime.properties

* ftl function to capitalize group name affording override

* Further i18n for BasicValidationVTwo.java

* Fixed DeletePropertyController.java - getting localname of property properly (#200)

* Fixed DeletePropertyController.java - getting localname of property properly

Resolves: https://jira.lyrasis.org/browse/VIVO-1816

* Removed hardcoded time units by properties calls in dateTimeWithPrecision.ftl

* Use i18n values for date time form (#204)

Resolves: https://jira.lyrasis.org/browse/VIVO-1953

* VIVO-1929: patch authorizing create individual form (#206)

* patch authorizing create individual form

Resolves: https://jira.lyrasis.org/browse/VIVO-1929

* Issue/vivo 1947 (#205)

* Make data property richtext editor option selectable from UI
* Better error handling when reasoner disabled
* Change reasoner error log message to debug
* Extend reasoner status error handling
* Improve reasoner error log message and extend to JenaAdminActions
* Bump up log level for admin action to 'warn' and edit admin panel error message
* Change Model writer lang from "N3-PP" to "N3" (#149)
* Prevent ontology editor and N3 editing from deleting property values in languages other than the one associated with the editing request. [https://jira.lyrasis.org/browse/VIVO-1947]

Resolves: https://jira.lyrasis.org/browse/VIVO-1947

Co-authored-by: gneissone <mbgross@wustl.edu>
Co-authored-by: Ralph O'Flinn <roflinn@users.noreply.github.com>
Co-authored-by: Andrew Woods <awoods@lyrasis.org>
Co-authored-by: Andrew Woods <awoods@duraspace.org>

* Remove comments

Co-authored-by: Andrew Woods <awoods@duraspace.org>
Co-authored-by: Nicolas D <46490666+nicalico@users.noreply.github.com>
Co-authored-by: VIVO UQAM <62542918+UQAM-VIVO@users.noreply.github.com>
Co-authored-by: Matthias Luehr <luehr@hs-mittweida.de>
Co-authored-by: michelheonuqam <heon.michel@uqam.ca>
Co-authored-by: Brian Lowe <brianjlowe@gmail.com>
Co-authored-by: j-dornbusch <joachim.dornbusch@ehess.fr>
Co-authored-by: Michel Heon <heon@videotron.ca>
Co-authored-by: gneissone <mbgross@wustl.edu>
Co-authored-by: Ralph O'Flinn <roflinn@users.noreply.github.com>
Co-authored-by: dofeldsc <dofeldsc@uos.de>
Co-authored-by: root <root@vivo-development.hs-mittweida.de>
Co-authored-by: gneissone <mbgross@unavco.org>
Co-authored-by: William Welling <wwelling@library.tamu.edu>
Co-authored-by: Kampe <Benjamin.Kampe@tib.eu>
Co-authored-by: Gross, Benjamin <benjamin.gross@clarivate.com>
Co-authored-by: matthiasluehr <60263380+matthiasluehr@users.noreply.github.com>
Co-authored-by: nicolasdickner <dickner.nicolas@uqam.ca>
2021-02-10 11:04:01 -06:00
Ben
e198fce908
[VIVO-1872] - Add download option to SPARQL Query page (#164)
* Add download option to SPARQL Query page

* Set SPARQL query results content type even if downloading

* Address pull request comments
2020-05-27 23:58:20 -05:00
Ben
42c69ef04b
[VIVO-1851] - Add 'remove' option to named graph management page (#162)
* Add 'remove' option to named graph management page

Resolves: https://jira.lyrasis.org/browse/VIVO-1851
2020-05-13 13:19:52 -04:00
gneissone
4efe43c7e7 Make data property richtext editor option selectable from UI 2020-03-21 19:15:05 -06:00
Ralph O'Flinn
777fa43864 [maven-scm-plugin] prepare development vitro-1.11.2-SNAPSHOT 2020-03-07 10:31:59 -06:00
Ralph O'Flinn
850cc6adbf [maven-scm-plugin] prepare release vivo-1.11.1 2020-03-07 10:29:22 -06:00
Ralph O'Flinn
b1b620d927 [maven-scm-plugin] prepare development vitro-1.11.1-SNAPSHOT 2019-10-21 00:49:31 -05:00
Ralph O'Flinn
0f25660b42 [maven-scm-plugin] prepare release vitro-1.11.0 2019-10-21 00:45:50 -05:00