Fix corpus localization to be overwritable
Change-Id: I512f7b9129b6c427dae3da476d7eb98b80dd60ee
diff --git a/.gitignore b/.gitignore
index cb2151b..de38250 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@
/.sass-cache
/dev/css
/dev/js/spec/src
+/dev/js/src/custom
/templates/announcement.html.ep*
/templates/custom
/lib/Kalamar/Plugin/Announcements.pm
diff --git a/Changes b/Changes
index e5cb2a6..c30b2c8 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.48 2023-01-26
+0.48 2023-01-27
- Added support for NKJP tagset in annotation
assistant. (diewald)
- Remove deprecated 'auth_support' (since 0.31)
@@ -19,6 +19,7 @@
- Fix terser installation (fixes #182). (diewald)
- Replaced list with info API request for client information
in OAuth registration flow. (diewald)
+ - Fix tour localization to be overwritable. (diewald)
WARNING: Mojolicious 9.31 is a security update -
updating is highly recommended.
diff --git a/dev/js/src/loc/dereko.js b/dev/js/src/loc/dereko.js
index 6912f9b..14e382e 100644
--- a/dev/js/src/loc/dereko.js
+++ b/dev/js/src/loc/dereko.js
@@ -10,17 +10,21 @@
const loc = KorAP.Locale;
//Query example for guided tour
- loc.TOUR_Qexample = "laufen";
+ if (loc.TOUR_Qexample == undefined)
+ loc.TOUR_Qexample = "laufen";
/* To define vc for guided tour */
- loc.TOUR_vcQuery = {
+ if (loc.TOUR_vcQuery == undefined)
+ loc.TOUR_vcQuery = {
'@type' : 'koral:doc',
'key' : 'docSigle',
'match': 'match:eq',
'value' : 'WPD17/D01',
};
- loc.TOUR_Relations = "corenlp/c";
+ if (loc.TOUR_Relations == undefined)
+ loc.TOUR_Relations = "corenlp/c";
- loc.TOUR_DocSigle = "WPD17/D01";
+ if (loc.TOUR_DocSigle == undefined)
+ loc.TOUR_DocSigle = "WPD17/D01";
});