Show 'one collection' in case one is set
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 09804ca..9354917 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -23,7 +23,8 @@
// Localization values
var loc = KorAP.Locale;
- loc.VC_allCorpora = loc.VC_allCorpora || 'all Corpora';
+ loc.VC_allCorpora = loc.VC_allCorpora || 'all Corpora';
+ loc.VC_oneCollection = loc.VC_oneCollection || 'one Collection';
// Override KorAP.log
window.alertify = alertifyClass;
@@ -50,9 +51,11 @@
input.style.display = 'none';
vcname = document.createElement('span');
vcname.setAttribute('id', 'vc-choose');
+
vcname.appendChild(
document.createTextNode(
- document.getElementById('vc-name').value || loc.VC_allCorpora
+ document.getElementById('vc-name').value ||
+ (KorAP.currentVC !== undefined) ? loc.VC_oneCollection : loc.VC_allCorpora
)
);
input.parentNode.insertBefore(vcname, input);
diff --git a/dev/js/src/loc/de.js b/dev/js/src/loc/de.js
index afd1787..a9eb389 100644
--- a/dev/js/src/loc/de.js
+++ b/dev/js/src/loc/de.js
@@ -10,6 +10,7 @@
loc.VC_pubDate = 'Veröffentlichungsdatum';
loc.VC_pubPlace = 'Veröffentlichungsort';
loc.VC_allCorpora = 'allen Korpora';
+ loc.VC_oneCollection = 'einer Kollektion';
// Date picker:
loc.WDAY = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];