First german contribution to 2.2.2
[koha.git] / koha-tmpl / intranet-tmpl / default / de / barcodes / barcodes-top.inc
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3 <html>
4 <head>
5 <title>KOHA: INTRANET: Parameter</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/common-style.css">
8 <style>
9 .parameters {
10         background-color: #86c268;
11         color: #FFFFFF;
12         text-decoration: normal;
13         font-weight: bold;
14         }
15 a.parameters:hover {
16         background-color: #86c268;
17         color: #FFFFFF;
18         text-decoration: normal;
19         font-weight: bold;
20         }
21 .ranges {
22         border:0;
23 }
24
25 .myTable TD{
26   border-width: 0px;
27   border-color: navy;
28   border-style: solid;
29 }
30
31 .panel { 
32         position:relative;
33 }
34
35 .countryPanel {
36         z-index:1;
37         width:300px;
38         display:none;
39         border:1px solid #000000;
40         padding:0px;
41 }
42 </style>
43
44
45 <script type="text/javascript">
46         // Captura el evento onmousemove para cualquier navegador
47         if (document.layers) { // Netscape
48                 document.captureEvents(Event.MOUSEMOVE);
49             document.onmousemove = captureMousePosition;
50         } else if (document.all) { // Internet Explorer
51             document.onmousemove = captureMousePosition;
52         } else if (document.getElementById) { // Netcsape 6
53             document.onmousemove = captureMousePosition;
54         }
55
56         var mouseXMax = 0;
57         var mouseYMax = 0;
58         var mouseX = 0;
59         var mouseY = 0;
60
61         function captureMousePosition(e) {
62             if (document.layers) {
63                     mouseX = e.pageX;
64                         mouseY = e.pageY;
65                 mouseXMax = window.innerWidth + window.pageXOffset;
66                     mouseYMax = window.innerHeight + window.pageYOffset;
67             } else if (document.all) {
68                     mouseX = window.event.x + document.body.scrollLeft;
69                 mouseY = window.event.y + document.body.scrollTop;
70                 mouseXMax = document.body.clientWidth + document.body.scrollLeft;
71                 mouseYMax = document.body.clientHeight + document.body.scrollTop;
72             } else if (document.getElementById) {
73                 mouseX = e.pageX;
74                     mouseY = e.pageY;
75                 mouseXMax = window.innerWidth + window.pageXOffset;
76                 mouseYMax = window.innerHeight + window.pageYOffset;
77             }
78         }
79
80 /* Devuelve true si el explorador es Internet Explorer */
81 var IE = document.all?true:false;
82
83 function Help() {
84         newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
85 }
86
87 function correctRange (from, to) {
88         if (from <= to) {
89                 return true;
90         } else {
91                 return false;
92         }
93 }
94
95 function emptyField (field) {
96         if ((field == null) || (field == "")) {
97                 return true;
98         } else {
99                 return false;
100         }
101 }
102
103 function checkFields (aForm) {
104   var option = document.getElementById('rangeType').value;
105   if (option == 'continuous' || option == 'continuous2') {
106         if (emptyField(aForm.from.value) || emptyField(aForm.to.value)) {
107                 alert("Please, complete all fields");
108             return false;
109         } else {
110                 if (correctRange(aForm.from.value, aForm.to.value)) {
111                         return true;                    
112                 } else {
113                         alert("The selected range is not correct");
114                         return false;
115                 }
116         }
117   } else {
118         var codeCount = document.getElementById('inventaryList').options.length;
119         if (codeCount == 0) {
120                 alert("Please, complete all fields"); 
121             return false;
122         } else {
123                 var inventaryList = document.getElementById('inventaryList');
124                 var allCodes = '';
125                 for (i = 0; i <= inventaryList.options.length - 1; i++) {
126                         allCodes = allCodes + "'" + inventaryList.options[i].text + "',";
127                 }
128                 allCodes = '(' + allCodes.substr(0, allCodes.length - 1) + ')';
129                 document.getElementById('individualCodes').value = allCodes;
130             return true;
131         }
132   }
133 }
134
135 function changeRange(selectBox) {
136         var option = selectBox.value;
137         var panel = document.getElementById(option);
138         panel.style.display = 'inline';
139         if (option == 'continuous') {
140                 document.getElementById('inventaryList').options.length = 0;
141                 document.getElementById('individuals').style.display = 'none';
142                 document.getElementById('individualCodes').value = "";
143         } else {
144                 document.getElementById('from').value = "";
145                 document.getElementById('to').value = "";
146                 document.getElementById('continuous').style.display = 'none';
147         }
148 }
149
150 function itemExists(code, list) {
151   var ok = false;
152   var listLength = list.length - 1;
153   var count = 0;
154   while (!(ok) && (count <= listLength)) {
155         if (code == list[count].value) {
156           ok = true;
157         }
158         count = count + 1;
159   }
160   return ok;    
161 }
162
163 function addItem() {
164   var codeObject = document.getElementById('inventaryCode');
165   var inventaryCode = document.getElementById('inventaryCode').value;
166   var inventaryList = document.getElementById('inventaryList');
167   if (inventaryCode == "") {
168     alert('You canĀ“t add an empty code.');
169   } else {
170     if (itemExists(inventaryCode, inventaryList.options)) {
171           codeObject.value = "";
172           alert("The code is already included."); 
173     } else {    
174           var optionObject = new Option(inventaryCode, inventaryCode);
175            if (!IE) {
176              inventaryList.add(optionObject, inventaryList.options[inventaryList.options.length]); 
177       } else {
178             inventaryList.add(optionObject, inventaryList.options.length);
179           }
180       codeObject.value = "";
181     }
182   }     
183 }
184
185 function removeItem() {
186   var inventaryList = document.getElementById('inventaryList');
187   if (inventaryList.selectedIndex == -1) {
188         alert('You have to select a code first.');
189   } else {
190         inventaryList.options[inventaryList.selectedIndex] = null;
191   }
192 }
193
194         function addCountryCode() {
195                 var panel = document.getElementById('addCountryCode');
196                 panel.style.display = 'inline';
197                 panel.style.top = mouseY;
198                 panel.style.left = mouseX;
199         }
200 </script>
201 </head>
202 <body onload="javascript: changeRange(document.getElementById('rangeType'))">
203 <!-- MENUS -->
204 <div id="menubar">
205         <span class="koha">KOHA</span>
206         <a class="home" href="/cgi-bin/koha/mainpage.pl">Start</a> <a class="catalogue" href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Katalog</a> <a class="members" href="/cgi-bin/koha/members/members-home.pl">Benutzer</a> <a class="acquisition" href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Erwerbung</a> <a class="circulation"  href="/cgi-bin/koha/circ/circulation.pl">Ausleihe</a> <a class="authority" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> <a class="reports" href="/cgi-bin/koha/reports-home.pl">Reports</a> <a class="parameters" href="/cgi-bin/koha/admin-home.pl">Parameter</a> <a class="about" href="/cgi-bin/koha/about.pl">&Uml;ber</a> <a class="catalogue" href="/cgi-bin/koha/help.pl" onclick="Help(); return false;">Hilfe</a>
207 </div>
208 <div id="submenu">
209         <span class="koha">Optionen &gt;&gt;&nbsp;&nbsp;</span>
210         <a href="/cgi-bin/koha/admin/aqbookfund.pl" class="submenu">Etats</a> <a href="/cgi-bin/koha/admin/authorised_values.pl" class="submenu2">Vorgabewerte</a> <a href="/cgi-bin/koha/admin/thesaurus.pl" class="submenu">Thesaurus</a> <a href="/cgi-bin/koha/admin/currency.pl" class="submenu2">W&auml;hrungen</a> <a href="/cgi-bin/koha/admin/printers.pl" class="submenu">Drucker</a>
211 </div>
212 <!-- TMPL_IF NAME="loggedinusername" -->
213     <p align="left">Angemeldet als: <!-- TMPL_VAR NAME="loggedinusername" --> [<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Abmelden</a>]</p>
214 <!-- TMPL_ELSE -->
215     <p align="left"><a href="/cgi-bin/koha/opac-user.pl">Log In</a> to Koha</p>
216 <!-- /TMPL_IF -->