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);