Fix CSS for Virtual Collection Builder
diff --git a/dev/js/src/util.js b/dev/js/src/util.js
index b3bb423..f3df4fc 100644
--- a/dev/js/src/util.js
+++ b/dev/js/src/util.js
@@ -41,6 +41,21 @@
KorAP.API = KorAP.API || {};
KorAP.Locale = KorAP.Locale || {};
+ var loc = KorAP.Locale;
+ loc.OR = loc.OR || 'or';
+ loc.AND = loc.AND || 'and';
+
+ // Add new stylesheet object lazily to document
+ KorAP.newStyleSheet = function () {
+ if (KorAP._sheet === undefined) {
+ var sElem = document.createElement('style');
+ document.head.appendChild(sElem);
+ KorAP._sheet = sElem.sheet;
+ };
+ return KorAP._sheet;
+ };
+
+
// Default log message
KorAP.log = KorAP.log || function (type, msg) {
console.log(type + ": " + msg);