Required for barcode generator
authoroleonard <oleonard>
Wed, 5 Jan 2005 15:45:12 +0000 (15:45 +0000)
committeroleonard <oleonard>
Wed, 5 Jan 2005 15:45:12 +0000 (15:45 +0000)
koha-tmpl/intranet-tmpl/npl/en/includes/countryCodes/countryCodes.dat [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-barcodes-close.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/includes/labelConfig/itemsLabelConfig.conf [new file with mode: 0644]

diff --git a/koha-tmpl/intranet-tmpl/npl/en/includes/countryCodes/countryCodes.dat b/koha-tmpl/intranet-tmpl/npl/en/includes/countryCodes/countryCodes.dat
new file mode 100644 (file)
index 0000000..c07abd2
--- /dev/null
@@ -0,0 +1,14 @@
+00 = USA I\r
+93 = Australia\r
+94 = New Zealand\r
+779 = Argentina\r
+773 = Uruguay\r
+30 = France I\r
+84 = Spain\r
+45 = Japan\r
+777 = Bolivia\r
+80 = Italy I\r
+73 = Sweden\r
+40 = Germany\r
+31 = France II\r
+254 = Ucrania\r
diff --git a/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-barcodes-close.inc b/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-barcodes-close.inc
new file mode 100644 (file)
index 0000000..3b79ea5
--- /dev/null
@@ -0,0 +1,201 @@
+</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="shortcut icon" href="<!-- TMPL_VAR NAME='themelang' -->/includes/favicon.ico" type="image/x-icon" />
+<style type="text/css"> 
+       @import url(<!-- TMPL_VAR NAME='themelang' -->/includes/intranet.css);
+</style>
+<style>
+.parameters {
+       background-color: #86c268;
+       color: #FFFFFF;
+       text-decoration: normal;
+       font-weight: bold;
+       }
+a.parameters:hover {
+       background-color: #86c268;
+       color: #FFFFFF;
+       text-decoration: normal;
+       font-weight: bold;
+       }
+.ranges {
+       border:0;
+}
+
+.myTable TD{
+  border-width: 0px;
+  border-color: navy;
+  border-style: solid;
+}
+
+.panel { 
+       position:relative;
+}
+
+.countryPanel {
+       z-index:1;
+       width:300px;
+       display:none;
+       border:1px solid #000000;
+       padding:0px;
+}
+</style>
+
+
+<script type="text/javascript">
+       // Captura el evento onmousemove para cualquier navegador
+       if (document.layers) { // Netscape
+               document.captureEvents(Event.MOUSEMOVE);
+           document.onmousemove = captureMousePosition;
+       } else if (document.all) { // Internet Explorer
+           document.onmousemove = captureMousePosition;
+       } else if (document.getElementById) { // Netcsape 6
+           document.onmousemove = captureMousePosition;
+       }
+
+       var mouseXMax = 0;
+       var mouseYMax = 0;
+       var mouseX = 0;
+       var mouseY = 0;
+
+       function captureMousePosition(e) {
+           if (document.layers) {
+                   mouseX = e.pageX;
+                       mouseY = e.pageY;
+               mouseXMax = window.innerWidth + window.pageXOffset;
+                   mouseYMax = window.innerHeight + window.pageYOffset;
+           } else if (document.all) {
+                   mouseX = window.event.x + document.body.scrollLeft;
+               mouseY = window.event.y + document.body.scrollTop;
+               mouseXMax = document.body.clientWidth + document.body.scrollLeft;
+               mouseYMax = document.body.clientHeight + document.body.scrollTop;
+           } else if (document.getElementById) {
+               mouseX = e.pageX;
+                   mouseY = e.pageY;
+               mouseXMax = window.innerWidth + window.pageXOffset;
+               mouseYMax = window.innerHeight + window.pageYOffset;
+           }
+       }
+
+/* Devuelve true si el explorador es Internet Explorer */
+var IE = document.all?true:false;
+
+function Help() {
+       newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+}
+
+function correctRange (from, to) {
+       if (from <= to) {
+               return true;
+       } else {
+               return false;
+       }
+}
+
+function emptyField (field) {
+       if ((field == null) || (field == "")) {
+               return true;
+       } else {
+               return false;
+       }
+}
+
+function checkFields (aForm) {
+  var option = document.getElementById('rangeType').value;
+  if (option == 'continuous' || option == 'continuous2') {
+       if (emptyField(aForm.from.value) || emptyField(aForm.to.value)) {
+               alert("Please, complete all fields");
+           return false;
+       } else {
+               if (correctRange(aForm.from.value, aForm.to.value)) {
+                       return true;                    
+               } else {
+                       alert("The selected range is not correct");
+                       return false;
+               }
+       }
+  } else {
+       var codeCount = document.getElementById('inventaryList').options.length;
+       if (codeCount == 0) {
+               alert("Please, complete all fields"); 
+           return false;
+       } else {
+               var inventaryList = document.getElementById('inventaryList');
+               var allCodes = '';
+               for (i = 0; i <= inventaryList.options.length - 1; i++) {
+                       allCodes = allCodes + "'" + inventaryList.options[i].text + "',";
+               }
+               allCodes = '(' + allCodes.substr(0, allCodes.length - 1) + ')';
+               document.getElementById('individualCodes').value = allCodes;
+           return true;
+       }
+  }
+}
+
+function changeRange(selectBox) {
+       var option = selectBox.value;
+       var panel = document.getElementById(option);
+       panel.style.display = 'inline';
+       if (option == 'continuous') {
+               document.getElementById('inventaryList').options.length = 0;
+               document.getElementById('individuals').style.display = 'none';
+               document.getElementById('individualCodes').value = "";
+       } else {
+               document.getElementById('from').value = "";
+               document.getElementById('to').value = "";
+               document.getElementById('continuous').style.display = 'none';
+       }
+}
+
+function itemExists(code, list) {
+  var ok = false;
+  var listLength = list.length - 1;
+  var count = 0;
+  while (!(ok) && (count <= listLength)) {
+       if (code == list[count].value) {
+         ok = true;
+       }
+       count = count + 1;
+  }
+  return ok;   
+}
+
+function addItem() {
+  var codeObject = document.getElementById('inventaryCode');
+  var inventaryCode = document.getElementById('inventaryCode').value;
+  var inventaryList = document.getElementById('inventaryList');
+  if (inventaryCode == "") {
+    alert('You canĀ“t add an empty code.');
+  } else {
+    if (itemExists(inventaryCode, inventaryList.options)) {
+         codeObject.value = "";
+         alert("The code is already included."); 
+    } else {   
+         var optionObject = new Option(inventaryCode, inventaryCode);
+          if (!IE) {
+            inventaryList.add(optionObject, inventaryList.options[inventaryList.options.length]); 
+      } else {
+           inventaryList.add(optionObject, inventaryList.options.length);
+         }
+      codeObject.value = "";
+    }
+  }    
+}
+
+function removeItem() {
+  var inventaryList = document.getElementById('inventaryList');
+  if (inventaryList.selectedIndex == -1) {
+       alert('You have to select a code first.');
+  } else {
+       inventaryList.options[inventaryList.selectedIndex] = null;
+  }
+}
+
+       function addCountryCode() {
+               var panel = document.getElementById('addCountryCode');
+               panel.style.display = 'inline';
+               panel.style.top = mouseY;
+               panel.style.left = mouseX;
+       }
+</script>
+</head>
+<body onload="javascript: changeRange(document.getElementById('rangeType'))">
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/includes/labelConfig/itemsLabelConfig.conf b/koha-tmpl/intranet-tmpl/npl/en/includes/labelConfig/itemsLabelConfig.conf
new file mode 100644 (file)
index 0000000..54048e6
--- /dev/null
@@ -0,0 +1,8 @@
+marginBottom = 25
+pageType = A4
+columns = 5
+systemDpi = 96
+labelHeigth = 21
+rows = 13
+marginLeft = 2
+labelWidth = 41