koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/uk_UA acqu... [rel_2_2]


From: paul poulain
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/uk_UA acqu... [rel_2_2]
Date: Tue, 17 Oct 2006 07:32:07 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     paul poulain <tipaul>   06/10/17 07:32:07

Added files:
        koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple: 
                                                            
addbiblio-nomarc.tmpl 
                                                            addbiblio.tmpl 
                                                            addbooks.tmpl 
                                                            additem-nomarc.tmpl 
                                                            additem.tmpl 
                                                            isbnsearch.tmpl 
                                                            marcimport.tmpl 
        koha-tmpl/intranet-tmpl/default/uk_UA/authorities: 
                                                           auth_finder.tmpl 
                                                           
authorities-home.tmpl 
                                                           authorities.tmpl 
                                                           
blinddetail-biblio-search.tmpl 
                                                           
detail-biblio-search.tmpl 
                                                           detail.tmpl 
                                                           
searchresultlist-auth.tmpl 
                                                           
searchresultlist.tmpl 
        koha-tmpl/intranet-tmpl/default/uk_UA/barcodes: 
                                                        barcodes-bottom.inc 
                                                        barcodes-top.inc 
                                                        barcodes.tmpl 
                                                        printerConfig.tmpl 
        koha-tmpl/intranet-tmpl/default/uk_UA/bookshelves: 
                                                           
addbookbybiblionumber.tmpl 
                                                           shelves.tmpl 

Log message:
        ukrainian templates for 2.2.6

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/addbiblio-nomarc.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/addbiblio.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/addbooks.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/additem-nomarc.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/additem.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/isbnsearch.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/acqui.simple/marcimport.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/auth_finder.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/authorities-home.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/authorities.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/blinddetail-biblio-search.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/detail-biblio-search.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/detail.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/searchresultlist-auth.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/authorities/searchresultlist.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/barcodes/barcodes-bottom.inc?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/barcodes/barcodes-top.inc?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/barcodes/barcodes.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/barcodes/printerConfig.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/bookshelves/addbookbybiblionumber.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/uk_UA/bookshelves/shelves.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1

Patches:
Index: acqui.simple/addbiblio-nomarc.tmpl
===================================================================
RCS file: acqui.simple/addbiblio-nomarc.tmpl
diff -N acqui.simple/addbiblio-nomarc.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/addbiblio-nomarc.tmpl  17 Oct 2006 07:32:06 -0000      1.1.2.1
@@ -0,0 +1,36 @@
+<!-- TMPL_INCLUDE NAME="cat-top.inc" -->
+
+<div id="mainbloc">
+       <h1 class="catalogue">Додавання нового 
бібліотечного запису</h1>
+       
+       <div id="bloc60">
+               <h2 class="catalogue">Частина перша: 
Інформація щодо авторського права </h2>
+       
+               <!-- TMPL_IF NAME="ERROR" -->
+                       <p class="problem">Будь-ласка 
конкретизуйте заголовок</p>
+               <!-- /TMPL_IF -->
+               
+               <form action="savebiblio.pl" method="post">
+               <p><label class="label100">Заголовок:* </label><input 
name="title" size="40" /></p>
+               <p><label class="label100">Підзаголовок: 
</label><input name="subtitle" size="40" /></p>
+               <p><label class="label100">Автор: </label><input 
name="author" size="40" /></p>
+               <p>Додаткові автори: <i>По одному 
автору на рядок</i></p>
+               <p><label class="label100">&nbsp;</label>
+                       <textarea class="form-box-textarea2" 
name="additionalauthors" cols="30" rows="6"></textarea>
+               </p>
+               </p>
+               <p>Заголовок серіального видання:  
<i>(якщо застосовується)</i></p>
+               <p><label class="label100">&nbsp;</label><input 
name="seriestitle" size="40" /></p>
+               <p>Тематичні рубрики:  <i>По одній 
темі на рядок</i></p>
+               <p><label class="label100">&nbsp;</label>
+                       <textarea class="form-box-textarea2" 
name="subjectheadings" cols="30" rows="6"></textarea>
+               </p>
+               <label class="label100">Дата авторського 
права: </label><input name="copyrightdate" size="40" /></p>
+               <label class="label100">Анотація: </label><textarea 
cols="30" rows="6" name="abstract"></textarea></p>
+               <label class="label100">Нотатки: </label><textarea 
cols="30" rows="6" name="notes"></textarea></p>
+               <p><input type="submit" value="Затвердити" 
class="button catalogue"></p>
+               </form>
+               * Обов'язкове
+       </div>
+</div>
+<!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" -->

Index: acqui.simple/addbiblio.tmpl
===================================================================
RCS file: acqui.simple/addbiblio.tmpl
diff -N acqui.simple/addbiblio.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/addbiblio.tmpl 17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,370 @@
+<!-- TMPL_INCLUDE NAME="marc-top.inc" -->
+       <form method="post" name="f" id="f" action="addbiblio.pl">
+<h1 class="catalogue"><!-- TMPL_IF NAME="oldbiblionumtagfield" -->Р
едагування МАРК-запису з номером <!-- TMPL_VAR 
name="oldbiblionumber" --><!-- TMPL_ELSE -->Додати МАР
К-запис<!-- /TMPL_IF --> Із структурою: <!--TMPL_VAR 
Name="framework" --></h1>
+
+<div class="tabbed">
+               <input type="hidden" name="op" value="addbiblio" />
+               <input type="hidden" name="addfield_field" />
+               <input type="hidden" name="repeat_field" />
+               <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR 
NAME="frameworkcode" -->" />
+               <input type="hidden" name="oldbiblionumber" value="<!-- 
TMPL_VAR NAME="oldbiblionumber" -->" />
+               <!-- TMPL_IF name="bibid" -->
+                       <input type="button" value="Зберегти 
бібліографічний запис та перейти до 
одиниць" onclick="Check(this.form);" accesskey="w" class="button 
catalogue">
+               <!-- TMPL_ELSE -->
+                       <input type="button" value="Додати 
бібліографічний запис та перейти до 
одиниць" onclick="Check(this.form);" accesskey="w" class="button 
catalogue">
+               <!-- /TMPL_IF -->
+       <input type="button" value="Пошук зі Z39.50" class="button 
catalogue" onclick="PopupZ3950(); return false;" =/></div>
+
+
+       <div class="tabs">
+        <!-- TMPL_LOOP name="BIG_LOOP" -->
+            <a href="#" onclick="active(<!-- TMPL_VAR name="number"-->); 
return false;" id="link<!-- TMPL_VAR name="number"-->"><!-- TMPL_VAR 
name="number"--></a>
+        <!--  /TMPL_LOOP -->
+       </div>
+
+<! -- RESET PAGINATION -->
+<!-- TMPL_LOOP name="BIG_LOOP" -->
+<!-- hide every tab except the 1st -->
+<!-- TMPL_IF name="number" -->
+    <div name="<!-- TMPL_VAR name="number" -->XX" id="<!-- TMPL_VAR 
name="number" -->XX" class="tab" style="visibility:hidden">
+<!-- TMPL_ELSE -->
+    <div name="<!-- TMPL_VAR name="number" -->XX" id="<!-- TMPL_VAR 
name="number" -->XX" class="tab" style="visibility:visible">
+<!-- /TMPL_IF -->
+<!-- TMPL_UNLESS name="number" -->
+    <!-- show duplicate warning on tab 0 only -->
+        <!-- TMPL_IF name="duplicatebiblionumber" -->
+                    <div class="error">
+                        <p>Чи це є дублікат <a 
href="../MARCdetail.pl?bib=<!-- TMPL_VAR name="duplicatebiblionumber" -->" 
onclick="openWindow('../MARCdetail.pl?bib=<!-- TMPL_VAR 
name="duplicatebiblionumber" -->&popup=1', 'Duplicate biblio'; return 
false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
+                        <p>Виберіть той чи інший: </p>
+                        <ul>
+                            <li>Якщо це <em>є</em> 
дублікатом, то <a href="additem.pl?biblionumber=<!-- TMPL_VAR 
name="duplicatebibid" -->">редагувати елементи</a> 
існуючого запису.</li>
+                            <li>Якщо ні, то клацніть <input 
type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" 
/> <a href="#" onclick="confirmnotdup(); return false;">Підтвердіть, 
що це не дублікат</a></li>
+                        </ul>
+                    </div>
+        <!-- /TMPL_IF -->
+    <!-- /TMPL_UNLESS -->
+    <!-- TMPL_LOOP NAME="innerloop" -->
+               <div style=";" id="tag<!-- TMPL_VAR name="tag"-->">
+        <!-- TMPL_IF name="tag" -->
+        <p class="MARCtag">
+            <input type="hidden" name="ind_tag" value="<!-- TMPL_VAR 
NAME="tag" -->">
+            <!-- TMPL_UNLESS name="hide_marc" -->
+                <a title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR 
NAME="tag" --></a> <input tabindex="1" 
onblur="this.style.backgroundColor='#ffffff';" 
onfocus="this.style.backgroundColor='#ffff00;'" type="text" <!-- TMPL_IF 
NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF --> name="indicator" 
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat"> 
-
+            <!-- TMPL_ELSE -->
+                <input tabindex="1" type="hidden" <!-- TMPL_IF 
NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF --> name="indicator" 
value="<!-- TMPL_VAR NAME="indicator" -->">
+            <!-- /TMPL_UNLESS -->
+            <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
+            <!-- TMPL_VAR NAME="tag_lib" -->
+            <!-- /TMPL_UNLESS -->
+            <!-- TMPL_IF name="repeatable" --><a href="#<!-- TMPL_VAR 
NAME="tag" -->" 
onclick="javascript:this.nextSibling.type='text';this.nextSibling.focus()">+</a><input
 type="hidden"  value="" size="2" 
onchange="javascript:alert(this.value);AddField('<!-- TMPL_VAR NAME="tag" 
-->',this.value)" ><!-- /TMPL_IF -->
+        </p>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_LOOP NAME="subfield_loop" -->
+            <!-- TMPL_IF NAME="visibility" -->
+                <a tabindex="1" style="color: grey; font-size: 80%; cursor: 
se-resize;" id="label<!-- TMPL_VAR name="index" -->" 
onclick="unHideSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR 
name="index" -->','label<!-- TMPL_VAR name="index" -->')">
+                    <!-- TMPL_VAR NAME="subfield" -->
+                </a>
+            <!-- /TMPL_IF -->
+            <div style="<!-- TMPL_VAR NAME='visibility' -->;" id="subfield<!-- 
TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='index' -->">
+                <p>
+                <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
+                    <label <!-- TMPL_IF NAME="fixedfield" --> 
style="display:none;" <!-- /TMPL_IF --> class="labelsubfield">
+                <!-- /TMPL_UNLESS -->
+                <!-- TMPL_UNLESS name="hide_marc" -->
+                    <img style="cursor: crosshair; color: grey; font-size: 
80%;" <!-- TMPL_IF NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF 
--> src="<!-- TMPL_VAR NAME="themelang" -->/images/up.png" 
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR 
name="index" -->')"/>
+                        <input title="<!-- TMPL_VAR NAME="marc_lib_plain" -->" 
style=" <!-- TMPL_IF NAME="fixedfield" -->display:none; <!-- /TMPL_IF 
-->border:0;" type="text" name="subfield" value="<!-- TMPL_VAR NAME="subfield" 
-->" size="1" maxlength="1" class="flat" DISABLE READONLY tabindex=-1 />
+                <!-- TMPL_ELSE -->
+                    <input type="hidden" name="subfield" value="<!-- TMPL_VAR 
NAME="subfield" -->"/>
+                <!-- /TMPL_UNLESS -->
+                <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
+                    <!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF -->
+                    <!-- TMPL_VAR NAME="marc_lib" -->
+                    <!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF -->
+                    </label>
+                <!-- /TMPL_UNLESS -->
+                <!-- TMPL_VAR NAME="marc_value" -->
+                <!-- TMPL_IF NAME="repeatable" -->
+                    <a style="cursor: crosshair; color: grey; font-size: 80%;" 
onclick="cloneSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR 
name="index" -->')">+</a>
+                <!-- /TMPL_IF -->
+                <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="tag" -->"/>
+                <input type="hidden" name="subfieldYYY" value="<!-- TMPL_VAR 
NAME="subfield" -->" size="2" maxlength="1"/>
+                <input type="hidden" name="mandatory" value="<!-- TMPL_VAR 
NAME="mandatory" -->"/>
+                <input type="hidden" name="kohafield" value="<!-- TMPL_VAR 
NAME="kohafield" -->"/>
+                <input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR 
NAME="tag_mandatory" -->"/>
+                </p>
+            </div>
+        <!-- /TMPL_LOOP -->
+        </div>
+    <!-- /TMPL_LOOP -->
+    </div>
+<!-- /TMPL_LOOP -->
+               <div name="hidden" id="hidden" class="tab">
+               <!-- TMPL_LOOP NAME="hidden_loop" -->
+                               <input type="hidden" name="tag" value="<!-- 
TMPL_VAR NAME="tag" -->">
+                               <input type="hidden" name="subfield" 
value="<!-- TMPL_VAR NAME="subfield" -->">
+                               <input type="hidden" name="mandatory" 
value="<!-- TMPL_VAR NAME="mandatory" -->">
+                               <input type="hidden" name="kohafield" 
value="<!-- TMPL_VAR NAME="kohafield" -->">
+                               <input type="hidden" name="tag_mandatory" 
value="<!-- TMPL_VAR NAME="tag_mandatory" -->">
+               <!-- /TMPL_LOOP -->
+               </div>
+               <!-- TMPL_IF name="oldbiblionumtagfield" -->
+                       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="oldbiblionumtagfield" -->">
+                       <input type="hidden" name="subfield" value="<!-- 
TMPL_VAR NAME="oldbiblionumtagsubfield" -->">
+                       <input type="hidden" name="field_value" value="<!-- 
TMPL_VAR NAME="oldbiblionumber" -->">
+                       <input type="hidden" name="mandatory" value="0">
+                       <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
+                       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="oldbiblioitemnumtagfield" -->">
+                       <input type="hidden" name="subfield" value="<!-- 
TMPL_VAR NAME="oldbiblioitemnumtagsubfield" -->">
+                       <input type="hidden" name="field_value" value="<!-- 
TMPL_VAR NAME="oldbiblioitemnumber" -->">
+                       <input type="hidden" name="mandatory" value="0">
+                       <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
+                       <input type="hidden" name="tag_mandatory" value="<!-- 
TMPL_VAR NAME="tag_mandatory" -->">
+               <!-- /TMPL_IF -->
+       </form>
+<script language="JavaScript" type="text/javascript">
+function loading(){
+       document.getElementById("loading").style.display = "none";
+}
+function _(s) { return s } // dummy function for gettext
+function confirmnotdup(){
+       document.getElementById("confirm_not_duplicate").value = 1;
+       var checkform = document.getElementById("f");
+       Check(checkform);
+}
+function active(numlayer)
+{
+       for (i=0; i <= 9 ; i++ ) {
+               ong = i+"XX";
+               link = "link"+i;
+               if (numlayer==i) {
+                       with(document){
+                       if (document.getElementById(ong)){
+                               
document.getElementById(ong).style.visibility="visible";
+                       }
+                       if(document.getElementById(link)){
+                               
document.getElementById(link).style.color="#000066";
+                               
document.getElementById(link).style.backgroundColor="#FFFFCC";
+                       }
+                       }
+               } else {
+                       with(document){
+                       if (document.getElementById(ong)){
+                               
document.getElementById(ong).style.visibility="hidden";
+                       }
+                       if (document.getElementById(link)) {
+                               
document.getElementById(link).style.color="#669999";
+                               
document.getElementById(link).style.backgroundColor="#D8DEB8";
+                       }
+                       }
+               }
+       }
+}
+active(0);
+function Check(f) {
+       document.body.style.cursor ="wait";
+       // Scan for nonempty fields
+       var field_is_nonempty_p = new Array();
+       for (i=0 ; i<f.field_value.length ; i++) {
+           field_is_nonempty_p[f.tag[i].value] = 0;
+       }
+       for (i=0 ; i<f.field_value.length ; i++) {
+           if (f.field_value[i].value.length != 0) {
+               field_is_nonempty_p[f.tag[i].value] += 1;
+           }
+       }
+
+       // Scan for missing mandatory subfields
+       var total_missing_mandatory_subfields = 0;
+       var missing_mandatory_subfields = new Array();
+       for (i=0 ; i<f.field_value.length-2 ; i++) {
+               if (f.field_value[i].value.length==0 && 
f.mandatory[i].value==1) {
+                   // We should not flag an error unless the tag is also
+                   // mandatory, or if something else in the tag is entered
+
+                   if (f.tag_mandatory[i].value == 1 || 
field_is_nonempty_p[f.tag[i].value]) {
+                               
f.field_value[i].style.backgroundColor="#FF0000";
+                               total_missing_mandatory_subfields++;
+                       if (f.field_value[i].parentNode.tagName == "B")
+                       {
+                               
missing_mandatory_subfields.push(f.field_value[i].innerHTML + " (tab " +  
f.field_value[i].parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + 
")");
+                       }
+                       else
+                       {
+                               
missing_mandatory_subfields.push(f.field_value[i].innerHTML + " (tab " +  
f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")");
+                       }
+
+                       }
+               } else {
+                       f.field_value[i].style.backgroundColor="#FFFFFF";
+               }
+       }
+
+       // Scan for missing mandatory tags
+       var total_missing_mandatory_tags = 0;
+       var seen_mandatory_tag_p = new Array();
+       var missing_mandatory_tags = new Array();
+       for (i=0 ; i<f.field_value.length ; i++) {
+           var j = f.tag[i].value;
+           if (!field_is_nonempty_p[j] && f.tag_mandatory[i].value == 1) {
+               if (seen_mandatory_tag_p[j] != 1) {
+                   seen_mandatory_tag_p[j] = 1;
+                   total_missing_mandatory_tags++;
+                   if (f.field_value[i].parentNode.tagName == "B")
+                   {
+                               
missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " +  
f.field_value[i].parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + 
")");
+                   }
+                   else
+                   {
+                               
missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " +  
f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")");
+                       }
+               }
+               f.field_value[i].style.backgroundColor="#FFFF00";
+           }
+       }
+
+       var total_errors = total_missing_mandatory_tags + 
total_missing_mandatory_subfields;
+       var alertString2;
+       if (total_errors!=0) {
+               alertString2  = _("Форма не відіслана 
через наступні проблеми(у)");
+               alertString2 += 
"\n------------------------------------------------------------------------------------\n";
+               alertString2 += "\n- "+ total_missing_mandatory_tags +_(" 
обов'язкові ознаки порожні");
+               for (i=0; i<missing_mandatory_tags.length; i++)
+               {
+                       alertString2 += "\n--->"+ missing_mandatory_tags[i];
+               }
+               alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" 
обов'язкові поля порожні (дивіться підполя, 
відмічені жирним шрифтом)");
+               for (i=0; i<missing_mandatory_subfields.length; i++)
+               {
+                       alertString2 += "\n--->"+ 
missing_mandatory_subfields[i];
+               }
+               alert(alertString2);
+       } else {
+               document.forms['f'].submit();
+       }
+}
+function Dopop(link,i) {
+       defaultvalue=document.forms['f'].field_value[i].value;
+       newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=700,height=550,toolbar=false,scrollbars=yes');
+}
+
+function PopupZ3950() {
+    var strQuery="";
+       var error = 0;
+       for (i=0 ; i<document.forms['f'].field_value.length ; i++) {
+               if (document.forms['f'].kohafield[i].value == 
"biblioitems.isbn"){
+                       if(document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&isbn="+document.forms['f'].field_value[i].value;
+               } else {
+                       error++;
+               }
+               }
+               if (document.forms['f'].kohafield[i].value == "biblio.title"){
+                       if(document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&title="+document.forms['f'].field_value[i].value;
+               } else {
+                       error++;
+               }
+               }
+               if (document.forms['f'].kohafield[i].value == "biblio.author"){
+                       if(document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&author="+document.forms['f'].field_value[i].value;
+               } else { 
+                       error++;
+               }
+               }
+               if (document.forms['f'].kohafield[i].value == 
"biblioitems.issn"){
+                       if(document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&issn="+document.forms['f'].field_value[i].value;
+               } else {
+                       error++;
+               }
+               }
+       }
+       if(error < 4){
+       newin=window.open("../z3950/search.pl?bibid=<!-- TMPL_VAR NAME="bibid" 
-->"+strQuery,"z3950search",'width=640,height=400,location=yes,toolbar=no,scrollbars=yes');
+       } else {
+               alert("To perform a z39.50 search, you must enter at least one 
of the following: \n\n ISBN\n ISSN\n Title\n Author\n");
+       }
+}
+
+function Changefwk(FwkList) {
+  var fwk = FwkList.options[FwkList.selectedIndex].value;
+  window.location = "addbiblio.pl?oldbiblionumber=<!--TMPL_VAR 
Name="oldbiblionumber"-->&frameworkcode="+fwk;
+}
+
+function openAuth(tagid,authtype,X) {
+//     defaultid=document.getElementById(subfieldid);
+//     alert("X"+X);
+    Y=X.parentNode.getAttribute("id");
+//     alert("tagid"+Y);
+       newin=window.open("../authorities/auth_finder.pl?authtypecode="+  
authtype+ "&tagid="+Y, "value 
builder",'width=700,height=550,toolbar=false,scrollbars=yes');
+}
+
+
+function AddField(field,cntrepeatfield) {
+       document.forms['f'].op.value = "addfield";
+       document.forms['f'].addfield_field.value=field;
+       document.forms['f'].repeat_field.value=cntrepeatfield;
+       document.f.submit();
+}
+
+function cloneSubfield(index) {
+    var original = document.getElementById(index); //original <div>
+    var clone = original.cloneNode(true);
+
+    // set the attribute for the new 'div' subfields
+    clone.setAttribute('id',index + index);//set another id.
+    var NumTabIndex;
+    NumTabIndex = parseInt(original.getAttribute('tabindex'));
+    if(isNaN(NumTabIndex)) NumTabIndex = 0;
+    clone.setAttribute('tabindex',NumTabIndex+1);
+    
+    var CloneButtonPlus;
+    try{
+        CloneButtonPlus = clone.getElementsByTagName('a')[0];
+        CloneButtonPlus.setAttribute('onclick',"cloneSubfield('" + index + 
index + "')");
+    }
+    catch(e){
+        // do nothig if ButtonPlus & CloneButtonPlus don't exist.
+    }
+
+    // insert this line on the page
+    original.parentNode.insertBefore(clone,original.nextSibling);
+}
+
+function upSubfield(index) {
+       try{
+               var line = document.getElementById(index); // get the line 
where the user has clicked.
+       } catch(e) {
+               return;
+       }
+       var tag = line.parentNode; // get the dad of this line. (should be 
"<div tag=XXX>")
+       
+       // getting all subfields for this tag
+       var subfields = tag.getElementsByTagName('div');
+       var subfieldsLength = subfields.length;
+       if(subfieldsLength<=1) return; // nothing to do if there is just one 
subfield.
+       // among all subfields 
+       for(var i=0;i<subfieldsLength;i++){ 
+               if(subfields[i].getAttribute('id') == index){ //looking for the 
subfield which is clicked :
+                       if(i==0){ // if the clicked subfield is on the top
+                               tag.appendChild(subfields[0]);
+                               return;
+                       }else{
+                               var lineAbove = subfields[i-1];
+                               tag.insertBefore(line,lineAbove);
+                               return;
+                       }
+               }
+       }
+}
+
+function unHideSubfield(index,labelindex) {
+       subfield = document.getElementById(index);
+       subfield.style.display = 'block';
+       label = document.getElementById(labelindex);
+       label.style.display='none';     
+}
+</script>
+</body>
+</html>

Index: acqui.simple/addbooks.tmpl
===================================================================
RCS file: acqui.simple/addbooks.tmpl
diff -N acqui.simple/addbooks.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/addbooks.tmpl  17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,57 @@
+<!-- TMPL_INCLUDE NAME="cat-top.inc" -->
+<div id="mainbloc">
+       <h1 class="catalogue">Керування бібліотечними 
записами згідно МАРК-у</h1>
+       <!-- TMPL_IF name="noitemsfound" -->
+               <font color="red" size="4">Не знайдено жодної 
одиниці</font>
+       <!-- /TMPL_IF -->
+       <!-- TMPL_IF name="websiteadded" -->
+               <font color="red" size="4">Додана бібліотечна 
одиниця веб-сайту</font>
+       <!-- /TMPL_IF -->
+       
+       <div id="bloc25">
+               <form action="isbnsearch.pl">
+                       <h2 class="catalogue">Щоб додати новий 
бібліотечний запис, зіскануйте чи наберіть 
номер ISBN/ISSN</h2>
+                       <p>
+                               <label class="label100" 
for="title">Заголовок</label>
+                               <input type="hidden" name="marclist" 
value="biblio.title">
+       
+                               <input type="hidden" name="and_or" value="and">
+                               <input type="hidden" name="excluding" value="">
+                               <input type="hidden" name="operator" 
value="contains">
+                               <input type="text" name="value" id="title" 
size="35">
+                       </p>
+                       <p>
+                               <label class="label100" for="title">ISBN</label>
+                               <input type="hidden" name="marclist" 
value="biblioitems.isbn">
+       
+                               <input type="hidden" name="and_or" value="and">
+                               <input type="hidden" name="excluding" value="">
+                               <input type="hidden" name="operator" 
value="start">
+                               <input type="text" name="value" id="title" 
size="35">
+                       </p>
+                       <p><input type="submit" value="Вперед" 
class="button catalogue"></p>
+               </form>
+               <!-- TMPL_IF NAME="NOTMARC" -->
+                       <p><a href="addbiblio-nomarc.pl" class="button 
catalogue">Створити порожній бібліотечний 
запис</a></p>
+               <!-- TMPL_ELSE -->
+                       <p>
+                               <form action="addbiblio.pl" method="post">
+                                       <select name="frameworkcode">
+                                               <option value="">По 
умовчанню</option>
+                                               <!-- TMPL_LOOP 
NAME="frameworkcodeloop" -->
+                                                       <option value="<!-- 
TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
+                                               <!-- /TMPL_LOOP -->
+                                       </select>
+                                       <input type="submit" 
value="Створити порожній бібліотечний запис" 
class="button catalogue">
+                               </form>
+                       </p>
+               <!-- /TMPL_IF -->
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">Порада</h2>
+               <p>Якщо такі ISBN чи заголовок вже є у 
таблиці якогось бібліотечного запису, вона 
буде знайдена та може бути змінена.<br/>
+                               Якщо ISBN або заголовок є у 
сховищі, це отримається та бібліотечний 
запис буде доданий.<br/>
+                               Інакше, бібліотечний 
запис буде створений на порожньому місці.</p>
+       </div>
+</div>
+<!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->

Index: acqui.simple/additem-nomarc.tmpl
===================================================================
RCS file: acqui.simple/additem-nomarc.tmpl
diff -N acqui.simple/additem-nomarc.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/additem-nomarc.tmpl    17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,102 @@
+<!-- TMPL_INCLUDE NAME="cat-top.inc" -->
+<div id="mainbloc">
+               <h1 class="catalogue"><!-- TMPL_VAR NAME="TITLE" --></h1>
+       <div id="bloc25">
+               <p>
+               <!-- TMPL_IF NAME="NOBARCODE" -->
+                       <p class="problem">Ви повинні надати 
одиниці штрих-код</p>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="NOBIBLIOITEM" -->
+                       <p class="problem">Ви повинні створити 
нову групу для своєї одиниці, яка є додана 
до</p>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="BARCODEINUSE" -->
+                       <p class="problem">Даруйте, але цей 
штрих-код вже використовується</p>
+               <!-- /TMPL_IF -->
+               <h2 class="catalogue">БІБЛІОТЕЧНИЙ ЗАПИС <!-- 
TMPL_VAR NAME="BIBNUM" --></h2>
+               <p><label class="label100">Автор: </label> <!-- TMPL_VAR 
NAME="AUTHOR" --></p>
+               <p><label class="label100">Авторські права: 
</label> <!-- TMPL_VAR NAME="COPYRIGHT" --></p>
+               <p><label class="label100">Заголовок 
серіального видання: </label> <!-- TMPL_VAR NAME="SERIES" 
--></p>
+               <p><label class="label100">Нотатки: </label> <!-- 
TMPL_VAR NAME="NOTES" --></p>
+               <!-- TMPL_LOOP NAME="BIBITEMS" -->
+                       <!-- TMPL_IF NAME="WEB" -->
+                               <h2 class="catalogue"><!-- TMPL_VAR 
NAME="biblioitemnumber" --> ГРУПА - <!-- TMPL_VAR NAME="itemtype" --></h2>
+                               <p><label>URL:</label><!-- TMPL_VAR NAME="url" 
--></p>
+                               <p><label>Дата:</label> <!-- TMPL_VAR 
NAME="publicationyear" --></p>
+                               <p><label>Нотатки: </label> <!-- 
TMPL_VAR NAME="notes" --></p>
+                       <!-- TMPL_ELSE -->
+                               <h2 class="catalogue"><!-- TMPL_VAR 
NAME="biblioitemnumber" --> ГРУПА - <!-- TMPL_VAR NAME="itemtype" --></h2>
+                               <p><label>ISBN: </label> <!-- TMPL_VAR 
NAME="isbn" --></p>
+                               <p><label>Індекс Дьюї (ДДК): 
</label> <!-- TMPL_VAR NAME="dewey" --></p>
+                               <p><label>Видавець: </label> <!-- 
TMPL_VAR NAME="publishercode" --></p>
+                               <p><label>Місце:</label> <!-- TMPL_VAR 
NAME="place" --></p>
+                               <p><label>Дата:</label> <!-- TMPL_VAR 
NAME="publicationyear" --></p>
+                               <!-- TMPL_LOOP NAME="ITEMS -->
+                                       <p><label 
class="label100">Одиниця:</label> <!-- TMPL_VAR NAME="barcode" --></p>
+                                       <p><label 
class="label100">Домашній підрозділ:</label> <!-- TMPL_VAR 
NAME="homebranch" --></p>
+                                       <p><label 
class="label100">Нотатки: </label> <!-- TMPL_VAR NAME="itemnotes" --></p>
+                               <!-- /TMPL_LOOP -->
+                       <!-- /TMPL_IF -->
+               <!-- /TMPL_LOOP -->
+       </div>
+       <div id="bloc25">
+               <form action="saveitem.pl" method="post">
+               <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR 
NAME="BIBNUM" -->">
+               <h2 class="catalogue">ДОДАВАННЯ НОВОЇ 
ОДИНИЦІ: </h2>
+               <p><i>Для веб-сайту додають лише 
групу</i></p>
+               <p><label>Штрих-код одиниці 
зберігання: </label><input type="text" name="barcode" size="40"></p>
+               <p>
+                       <label>Підрозділ:</label>
+                       <select name="homebranch">
+                       <!-- TMPL_LOOP NAME="BRANCHES" -->
+                               <option value="<!-- TMPL_VAR NAME="branchcode" 
-->"><!-- TMPL_VAR NAME="branchname" --></option>
+                       <!-- /TMPL_LOOP -->
+                       </select>
+               </p>
+               <p><label>Ціна заміни: </label><input type="text" 
name="replacementprice" size="40"></p>
+               <p><label>Нотатки: </label><textarea name="itemnotes" 
cols="30" rows="6"></textarea></p>
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">Додати до існуючої 
групи:</h2>
+               <p>
+                       <label>Група: </label><select 
name="biblioitemnumber">
+                       <!-- TMPL_LOOP NAME="BIBITEMS" -->
+                               <!-- TMPL_IF NAME="WEB" -->
+                               <!-- TMPL_ELSE -->
+                                       <option value="<!-- TMPL_VAR 
NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="itemtype" --></option>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       </select>
+               </p>
+               <p><input type="submit" name="existinggroup" 
value="Додати нову одиницю до існуючої 
групи"></p>
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">АБО ж додати у нову ГР
УПУ: </h2>
+               <p>
+                       <label>Формат:</label>
+                       <select name="itemtype">
+                               <!-- TMPL_LOOP NAME="ITEMTYPES" -->
+                                       <option value="<!-- TMPL_VAR 
NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
+                               <!-- /TMPL_LOOP -->
+                       </select>
+               </p>
+               <p><label>ISBN: </label><input name="isbn" size="40"></p>
+               <p><label>Видавець: </label><input name="publishercode" 
size="40"></p>
+               <p><label>Рік публікації: </label><input 
name="publicationyear" size="40"></p>
+               <p><label>Місце публікації: </label><input 
name="place" size="40"></p>
+               <p><label>Ілюстратор: </label><input name="illus" 
size="40"></p>
+               <p><label>URL веб-сайту: </label><input name="url" 
size="40"></p>
+               <p><label>Індекс Дьюї (ДДК): </label><input 
name="dewey" size="40"></p>
+               <p><label>Підклас індексу Дьюї (ДДК): 
</label><input name="subclass" size="40"></p>
+               <p><label>ISSN: </label><input name="issn" size="40"></p>
+               <p><label>LCCN: </label><input name="lccn" size="40"></p>
+               <p><label>Том: </label><input name="volume" size="40"></p>
+               <p><label>Номер: </label><input name="number" 
size="40"></p>
+               <p><label>Опис тому: </label><input name="volumeddesc" 
size="40"></p>
+               <p><label>Сторінки: </label><input name="pages" 
size="40"></p>
+               <p><label>Розмір: </label><input name="size" 
size="40"></p>
+               <p><label>Нотатки: </label><textarea name="notes" 
cols="30" rows="6"></textarea></p>
+               <p><input type="submit" name="newgroup" value="Додати 
нову одиницю у нову групу" class="button catalogue"></p>
+               </form>
+       </div>
+</div>
+<!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" -->

Index: acqui.simple/additem.tmpl
===================================================================
RCS file: acqui.simple/additem.tmpl
diff -N acqui.simple/additem.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/additem.tmpl   17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,123 @@
+<!-- TMPL_INCLUDE NAME="cat-top.inc" -->
+<div id="mainbloc">
+       <form method="post" action="additem.pl" name="f">
+       <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->">
+       <input type="hidden" name="bibid" value="<!-- TMPL_VAR NAME="bibid" 
-->">
+       <div class="tabbed">
+               <h1 class="catalogue"><!-- TMPL_VAR name="title" --> (<!-- 
TMPL_VAR name="author" --> номер бібліотечного запису 
№ <!-- TMPL_VAR NAME="biblionumber" -->)</h1>
+               <a href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR 
NAME="biblionumber" -->" class="button catalogue"> Редагувати 
бібліотечний запис </a> <a href="../MARCdetail.pl?bib=<!-- 
TMPL_VAR NAME="biblionumber" -->" class="button catalogue"> МАРК </a> <a 
href="../detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->" class="button 
catalogue"> Нормальний </a> <a href="../ISBDdetail.pl?bib=<!-- 
TMPL_VAR NAME="biblionumber" -->" class="button catalogue"> ISBD </a>
+       </div>
+       <!-- TMPL_IF name="item_loop" -->
+               <div id="bloc25">
+                       <div name="10XX" id="10XX">
+                       <h2 class="catalogue">Існуючі одиниці</h2>
+                       <table>
+                               <tr>
+                                       <!-- TMPL_LOOP NAME="item_header_loop" 
-->
+                                               <th class="catalogue">
+                                                       <TMPL_VAR 
NAME="header_value">
+                                               </th>
+                                       <!-- /TMPL_LOOP -->
+                                       <th colspan="2" 
class="catalogue">&nbsp;</th>
+                               </tr>
+                                       <!-- TMPL_LOOP NAME="item_loop" -->
+                                       <tr>
+                                               <!-- TMPL_VAR NAME="item_value" 
-->
+                                               <!-- TMPL_IF Name="nomod" -->
+                                                       <td>&nbsp;</td>
+                                                       <td>&nbsp;</td>
+                                               <!-- TMPL_ELSE -->
+                                                       <td><a 
href="additem.pl?op=edititem&amp;bibid=<!-- TMPL_VAR NAME="bibid" 
-->&amp;itemnum=<!-- TMPL_VAR NAME="itemnum" -->"><img src="<!-- TMPL_VAR 
NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" 
border="0"></a></td>
+                                                       <td><a 
href="javascript:confirm_deletion(<!-- TMPL_VAR NAME="bibid" -->,<!-- TMPL_VAR 
NAME="itemnum" -->)"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR 
NAME="theme" -->/images/edittrash.png" border="0"></a></td>
+                                               <!-- /TMPL_IF -->
+                                       </tr>
+                                       <!-- /TMPL_LOOP -->
+                       </table>
+                       </div>
+               </div>
+       <!-- /TMPL_IF -->
+       <div id="bloc25">
+       <!-- TMPL_IF name="opisadd" -->
+               <h2 class="catalogue">Нова одиниця 
зберігання</h2>
+       <!-- TMPL_ELSE -->
+               <h2 class="catalogue">Змінити одиницю</h2>
+       <!-- /TMPL_IF -->       
+               <!-- TMPL_LOOP NAME="item" -->
+                       <p>
+                                       <label><!-- TMPL_VAR NAME="subfield" 
--> - <!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF --><!-- TMPL_VAR 
NAME="marc_lib" --><!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF 
--></label>
+                                       <!-- TMPL_VAR NAME="marc_value" -->
+                                       <input type="hidden" name="tag" 
value="<!-- TMPL_VAR NAME="tag" -->">
+                                       <input type="hidden" name="subfield" 
value="<!-- TMPL_VAR NAME="subfield" -->">
+                                       <input type="hidden" name="mandatory" 
value="<!-- TMPL_VAR NAME="mandatory" -->">
+                       </p>
+               <!-- /tmpl_loop -->
+       <input type="hidden" name="itemnum" value="<!-- TMPL_VAR NAME="itemnum" 
-->">
+       <!-- TMPL_IF name="barcode_not_unique" -->
+               <div id="problem"><b>ПОМИЛКА: Штрих-код вже 
існує!<b></div>
+       <!-- /TMPL_IF -->
+       <!-- TMPL_IF name="book_on_loan" -->
+               <div id="problem"><b>ПОМИЛКА: Одиниця у 
позиці: не можна її видаляти!<b></div>
+       <!-- /TMPL_IF -->
+       <!-- TMPL_IF name="opisadd" -->
+       <input type="button" value="Додати одиницю" 
onclick="Check(this.form)" accesskey="w" class="button catalogue">
+       <!-- TMPL_ELSE -->
+       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="itemtagfield" -->">
+       <input type="hidden" name="subfield" value="<!-- TMPL_VAR 
NAME="itemtagsubfield" -->">
+       <input type="hidden" name="field_value" value="<!-- TMPL_VAR 
NAME="itemnum" -->">
+       <input type="button" value="Змінити одиницю" 
onclick="Check(this.form)" accesskey="w" class="button catalogue">
+       <!-- /TMPL_IF -->
+       </form>
+</div>
+<script LANGUAGE="JavaScript">
+function _(s) { return s } // dummy function for gettext
+function active(numlayer)
+{
+       for (i=10; i < 11 ; i++ ) {
+               ong = i+"XX";
+                       link = "link"+i;
+               if (numlayer==i) {
+                       document.getElementById(ong).style.visibility="visible";
+                       
document.getElementById(link).style.backgroundColor="#11AA11";
+                       
document.getElementById(link).style.backgroundImage="url(<!-- TMPL_VAR 
NAME="themelang" -->/images/background-mem.gif)";
+               } else {
+                       document.getElementById(ong).style.visibility="hidden";
+                       
document.getElementById(link).style.backgroundColor="#FFFFFF";
+                       document.getElementById(link).style.backgroundImage="";
+               }
+       }
+}
+function Check(f) {
+       var total_errors=0;
+//     alert(f.field_value.length);
+       for (i=0 ; i<f.field_value.length ; i++) {
+//     alert (f.field_value[i].value);
+               if (f.field_value[i].value.length==0 && 
f.mandatory[i].value==1) {
+                       
document.getElementById("error"+i).style.backgroundColor="#FF0000";
+                       total_errors++;
+               } else {
+//                     
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
+               }
+       }
+       var alertString2;
+       if (total_errors==0) {
+               document.f.submit();
+       } else {
+               alertString2  = _("Форма не відіслана 
через наступні проблеми(у)");
+               alertString2 += 
"\n------------------------------------------------------------------------------------\n";
+               alertString2 += "\n- "+ total_errors+_(" обов'язкові 
поля порожні (дивіться підполя, відмічені 
жирним шрифтом)");
+               alert(alertString2);
+       }
+}
+function Dopop(link,i) {
+       defaultvalue=document.forms['f'].field_value[i].value;
+       newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+function confirm_deletion(bibid,itemnum) {
+       var is_confirmed = confirm(_('Ви підтверджуєте 
видалення одиниці?'));
+       if (is_confirmed) {
+       window.location = 
"additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;
+       }
+}
+</script>
+</body>
+</html>

Index: acqui.simple/isbnsearch.tmpl
===================================================================
RCS file: acqui.simple/isbnsearch.tmpl
diff -N acqui.simple/isbnsearch.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/isbnsearch.tmpl        17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,161 @@
+<!-- TMPL_INCLUDE NAME="cat-top.inc" -->
+<div id="mainbloc">
+       <h1 class="catalogue">Результати пошуку за 
бібліотечними записами</h1>
+       <div id="bloc25">
+               <h2 class="catalogue">Ви шукали за </h2>
+               <!-- TMPL_IF name="isbn" -->
+                       <p>ISBN <!-- TMPL_VAR NAME="isbn" --></p>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF name="title" -->
+                       <p>заголовок <!-- TMPL_VAR NAME="title" --></p>
+               <!-- /TMPL_IF -->
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">Бібліотечні записи у 
Коха</h2>
+               <!-- TMPL_IF name="loop" -->
+                       <div id="resultnumber">
+                               <p>
+                                       <!-- TMPL_IF NAME="displayprev" --> 
+                                               <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                       
&lt;&lt;Попередні
+                                               </a>
+                                       <!-- /TMPL_IF -->
+                                       <!-- TMPL_LOOP NAME="numbers" -->
+                                               <!-- TMPL_IF NAME="highlight" 
-->
+                                                       <span 
class="highlight"><!-- TMPL_VAR NAME="number" --></span>
+                                               <!-- TMPL_ELSE -->
+                                                       <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                               <!-- TMPL_VAR 
NAME="number" -->
+                                                       </a>
+                                               <!-- /TMPL_IF -->
+                                       <!-- /TMPL_LOOP -->
+                                       <!-- TMPL_IF NAME="displaynext" -->
+                                               <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- 
TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                       Наступні&gt;&gt;
+                                               </a>
+                                       <!-- /TMPL_IF -->
+                       </p>
+                       <p class="resultcount">
+                               <!-- TMPL_IF NAME="total" -->
+                                       Результати пошуку з 
<!-- TMPL_VAR NAME="from" --> до <!-- TMPL_VAR NAME="to" --> зі <!-- 
TMPL_VAR NAME="total" -->
+                               <!-- TMPL_ELSE -->
+                                       Нічого не знайдено.
+                               <!-- /TMPL_IF -->
+                       </p>
+               </div>
+                       <table>
+                               <tr>
+                                       <th 
class="catalogue">Заголовок</th>
+                                       <th class="catalogue">Автор</th>
+                                       <th class="catalogue">&copy;</th>
+                                       <th class="catalogue">&nbsp;</th>
+                                       <!-- TMPL_UNLESS NAME="NOTMARC" -->
+                                               <th 
class="catalogue">&nbsp;</th>
+                                       <!-- /TMPL_UNLESS -->
+                               </tr>
+                               <!-- TMPL_LOOP NAME="loop" -->
+                                       <!-- TMPL_IF NAME="toggle" --><tr><!-- 
TMPL_ELSE --><tr class="hilighted"><!-- /TMPL_IF -->
+                                               <td><!-- TMPL_VAR NAME="title" 
--></a>
+                                               <td><!-- TMPL_VAR NAME="author" 
--></td>
+                                               <td><!-- TMPL_VAR 
NAME="copyrightdate" --></td>
+                                               <!-- TMPL_IF NAME="NOTMARC" -->
+                                               <td><a 
href="additem-nomarc.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" 
class="button catalogue">Додати одиниці</a></td>
+                                               <!-- TMPL_ELSE -->
+                                               <td><a 
href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" 
class="button catalogue">Редагувати...</a></td>
+                                               <!-- /TMPL_IF -->
+                                               <!-- TMPL_UNLESS NAME="NOTMARC" 
-->
+                                               <td>
+                                                       <a 
href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR NAME="biblionumber" 
-->&op=duplicate" class="button catalogue">
+                                                               
Здублювати
+                                                       </a>
+                                               </td>
+                                               <!-- /TMPL_UNLESS -->
+                                       </tr>
+                               <!-- /TMPL_LOOP -->
+                       </table>
+                       <div id="resultnumber">
+                               <p>
+                                       <!-- TMPL_IF NAME="displayprev" --> 
+                                               <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                       
&lt;&lt;Попередні
+                                               </a>
+                                       <!-- /TMPL_IF -->
+                                       <!-- TMPL_LOOP NAME="numbers" -->
+                                               <!-- TMPL_IF NAME="highlight" 
-->
+                                                       <span 
class="highlight"><!-- TMPL_VAR NAME="number" --></span>
+                                               <!-- TMPL_ELSE -->
+                                                       <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                               <!-- TMPL_VAR 
NAME="number" -->
+                                                       </a>
+                                               <!-- /TMPL_IF -->
+                                       <!-- /TMPL_LOOP -->
+                                       <!-- TMPL_IF NAME="displaynext" -->
+                                               <a class="resultnumber" 
href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- 
TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
+                                                       Наступні&gt;&gt;
+                                               </a>
+                                       <!-- /TMPL_IF -->
+                       </p>
+                       <p class="resultcount">
+                               <!-- TMPL_IF NAME="total" -->
+                                       Результати пошуку з 
<!-- TMPL_VAR NAME="from" --> до <!-- TMPL_VAR NAME="to" --> зі <!-- 
TMPL_VAR NAME="total" -->
+                               <!-- TMPL_ELSE -->
+                                       Нічого не знайдено.
+                               <!-- /TMPL_IF -->
+                       </p>
+               </div>
+               <!-- TMPL_ELSE -->
+                       <p>Немає</p>
+               <!-- /TMPL_IF -->
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">Бібліотечні записи у 
сховищі</h2>
+               <!-- TMPL_IF name="breeding_loop" -->
+                       <table>
+                               <tr>
+                                       <th 
class="catalogue">Заголовок</th>
+                                       <th class="catalogue">Автор</th>
+                                       <th class="catalogue">ISBN</th>
+                                       <th class="catalogue">прибуття 
зі</th>
+                                       <th class="catalogue">&nbsp;</th>
+                                       <th class="catalogue">&nbsp;</th>
+                               </tr>
+                                       <!-- TMPL_LOOP NAME="breeding_loop" -->
+                                               <!-- TMPL_IF NAME="toggle" 
--><tr><!-- TMPL_ELSE --><tr class="hilighted"><!-- /TMPL_IF -->
+                                                       <td><!-- TMPL_VAR 
NAME="title" --></a>
+                                                       <td><!-- TMPL_VAR 
NAME="author" --></td>
+                                                       <td><!-- TMPL_VAR 
NAME="isbn" --></td>
+                                                       <td><!-- TMPL_VAR 
NAME="file" --></td>
+                                                       <!-- TMPL_IF 
NAME="NOTMARC" -->
+                                                       
+                                                       <!-- TMPL_ELSE -->
+                                                       <td><a 
href="addbiblio.pl?breedingid=<!-- TMPL_VAR NAME="id" -->" class="button 
catalogue">Додати бібліотечний запис</a></td>
+                                                       <!-- /TMPL_IF -->
+                                               </tr>
+                                       <!-- /TMPL_LOOP -->
+                       </table>
+               <!-- TMPL_ELSE -->
+                       <p>Немає</p>
+               <!-- /TMPL_IF -->
+       </div>
+       <div id="bloc25">
+               <h2 class="catalogue">Додати бібліотечний 
запис</h2>
+               <p class="center">
+               <!-- TMPL_IF NAME="NOTMARC" -->
+                       <a href="addbiblio-nomarc.pl?isbn=<!-- TMPL_VAR 
NAME="isbn" -->" class="button catalogue">Додати новий 
бібліотечний запис</a>
+               <!-- TMPL_ELSE -->
+               <p>
+               <form action="addbiblio.pl" method="post">
+                       <select name="frameworkcode">
+                               <option value="">По 
умовчанню</option>
+                               <!-- TMPL_LOOP NAME="frameworkcodeloop" -->
+                                       <option value="<!-- TMPL_VAR 
NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
+                               <!-- /TMPL_LOOP -->
+                       </select>
+                       <input type="submit" value="Створити 
порожній бібліотечний запис" class="button catalogue">
+               </form>
+               <!-- /TMPL_IF -->
+               </p>
+       </div>
+       
+</div>
+<!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->

Index: acqui.simple/marcimport.tmpl
===================================================================
RCS file: acqui.simple/marcimport.tmpl
diff -N acqui.simple/marcimport.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ acqui.simple/marcimport.tmpl        17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,60 @@
+<!-- TMPL_INCLUDE NAME="acquisitions-top.inc" -->
+<h1>Система МАРК-надходжень</h1>
+
+<table bgcolor="#ffcc00" width="80%" cellpadding="3">
+       <tr valign="center">
+       <td><font size="4">Імпорт до сховища</font></td>
+       </tr>
+</table>
+
+<!-- TMPL_IF name="uploadmarc" -->
+<p>Результати імпорту: </p>
+<ul>
+       <p><!-- TMPL_VAR NAME="imported" --> імпортовано 
записів</p>
+       <p><!-- TMPL_VAR NAME="alreadyindb" --> не імпортовано, 
тому що вже є у БД</p>
+       <p><!-- TMPL_VAR NAME="alreadyinfarm" --> не імпортовано, 
тому що вже є у 'фермі' записів</p>
+       <p><!-- TMPL_VAR NAME="notmarcrecord" --> не імпортовано, 
тому що вони, здається, не є у МАРК-форматі 
(або відсутні ISBN/ISSN)!</p>
+       <p><!-- TMPL_VAR NAME="total" --> проаналізовано 
записів</p>
+       <p><a href="addbooks.pl">Назад до надходжень</a>
+</ul>
+<!-- TMPL_ELSE -->
+<ul>
+       <li>Виберіть файл для імпорту до сх
овища. Він буде проаналізований, і для 
кожного знайденого ISBN, новий малюк-запис 
буде створений у сховищі.</li>
+       <li>Якщо ISBN вже існує у сховищі, Ви 
можете вибрати, чи нехтувати новим записом 
чи записати поверх старого.</li>
+       <li>Ви можете ввести ім'я цього імпорту. 
Воно може бути корисно при створенні 
бібліотечного запису, щоб пам'ятати, звідки 
прийшли запропоновані МАРК-дані!</li>
+       <li>Звичайно, якщо ISBN вже існує у 
активній БД, бібліотечний запис буде 
проігноровано.</li>
+</ul>
+<form method="post" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" 
enctype="multipart/form-data">
+<table cellpadding="3" border="0">
+       <tr valign="top">
+               <td>Виберіть файл для імпорту: </td>
+               <td>
+                       <input type="file" name="uploadmarc" /><br/>
+               </td>
+       </tr>
+       <tr valign="top">
+               <td>Назва для цього імпортування: </td>
+               <td>
+                       <input type="text" name="filename" /><br/>
+               </td>
+       </tr>
+       <tr valign="top">
+               <td>Кодування символів (MARC21 або 
UNIMARC)</td>
+               <td>
+                       <select name="syntax" /><option 
value="MARC21">MARC21</option><option 
value="UNIMARC">UNIMARC</option></select><br/>
+               </td>
+       </tr>
+       <tr valign="top">
+               <td>Якщо ISBN вже є у сховищі:  </td>
+               <td><input type="radio" name="overwrite_biblio" value="0" 
checked> Ігнорувати його, зберігши існуючий<br/>
+                       <input type="radio" name="overwrite_biblio" value="1"> 
Цей записати поверха існуючого</td>
+       </tr>
+       <tr valign="top">
+               <td>&nbsp; </td>
+               <td><input type="submit" value="Імпортувати"></td>
+       </tr>
+
+</table>
+</form>
+<!-- /TMPL_IF -->
+<!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" -->

Index: authorities/auth_finder.tmpl
===================================================================
RCS file: authorities/auth_finder.tmpl
diff -N authorities/auth_finder.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/auth_finder.tmpl        17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,60 @@
+<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
+<div id="mainbloc">
+
+<h1 class="authority">Пошук за авторитетним 
джерелом</h1>
+
+<form name="f" action="/cgi-bin/koha/authorities/auth_finder.pl" method="post">
+       <input type="hidden" name="op" value="do_search">
+       <input type="hidden" name="type" value="intranet">
+       <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR 
NAME="nbstatements" -->">
+       <div id="bloc25">
+               <h2 class="authority">Пошук за</h2>
+               <p>
+                       <label class="label100">Тип 
авторитетного джерела </label>
+                       <!-- TMPL_VAR NAME="authtypecode" -->
+                       <input type="hidden" name="authtypecode" value="<!-- 
TMPL_VAR NAME="authtypecode" -->">
+               </p>
+               <p>
+                       <label class="label100">Основне вх
одження ($a тільки)</label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value" value="<!-- TMPL_VAR 
NAME="resultstring" -->">
+                       <input type="hidden" name="marclist" value="$a">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+               </p>
+               <p>
+                       <label class="label100">Основне вх
одження </label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value">
+                       <input type="hidden" name="marclist" value="mainentry">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+               </p>
+               <p>
+                       <label class="label100">Де-небудь </label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value">
+                       <input type="hidden" name="marclist" value="">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+                       <input type="hidden" name="index" value="<!-- TMPL_VAR 
NAME="index" -->">
+                       <input type="hidden" name="tagid" value="<!-- TMPL_VAR 
NAME="tagid" -->">
+               </p>
+        <p>(додавайте символ % в кінці Вашого 
слова, якщо Ви хочете використовувати 
усікання справа: при введені теор% буде 
знайдено теорія та теорії)</p>
+               <p>
+                       <input type="submit" value="Почати пошук" 
class="button authority">
+               </p>
+       </div>
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
+

Index: authorities/authorities-home.tmpl
===================================================================
RCS file: authorities/authorities-home.tmpl
diff -N authorities/authorities-home.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/authorities-home.tmpl   17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,77 @@
+    <!-- TMPL_INCLUDE NAME="auth-top.inc" -->
+<div id="mainbloc">
+
+<h1 class="authority">Пошук за авторитетним 
джерелом</h1>
+
+<form name="f" action="/cgi-bin/koha/authorities/authorities-home.pl" 
method="post">
+       <input type="hidden" name="op" value="do_search">
+       <input type="hidden" name="type" value="intranet">
+       <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR 
NAME="nbstatements" -->">
+       <div id="bloc25">
+               <h2 class="authority">Пошук за
+                       <select name="authtypecode">
+                       <!-- TMPL_LOOP NAME="authtypesloop" -->
+                               <option value="<!-- TMPL_VAR NAME="value" -->" 
<!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->>
+                                       <!-- TMPL_VAR NAME="authtypetext" -->
+                               </option>
+                       <!-- /TMPL_LOOP -->
+                       </select>
+               </h2>
+               <p>
+                       <label class="label100">Основне вх
одження ($a тільки)</label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value" value="<!-- TMPL_VAR 
NAME="value" -->">
+                       <input type="hidden" name="marclist" value="$a">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+               </p>
+               <p>
+                       <label class="label100">Основне вх
одження </label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value" value="<!-- TMPL_VAR 
NAME="value" -->">
+                       <input type="hidden" name="marclist" value="mainentry">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+               </p>
+               <p>
+                       <label class="label100">Де-небудь </label>
+                       <select name="operator">
+                               <option value="contains">містить</option>
+                               <option 
value="start">починається</option>
+                       </select>
+                       <input type="text" name="value" value="<!-- TMPL_VAR 
NAME="value" -->">
+                       <input type="hidden" name="marclist" value="">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+               </p>
+        <p>(додавайте символ % в кінці Вашого 
слова, якщо Ви хочете використовувати 
усікання справа: при введені <b>теор%</b> буде 
знайдено теорія та теорії)</p>
+               <p>
+                       <input type="submit" value="Почати пошук" 
class="button authority">
+               </p>
+       </div>
+</form>
+<div id="bloc25">
+<h2 class="authority">Додати авторитетне джерело</h2>
+<form name="f2" method="post" action="authorities.pl">
+       <p>Тип авторитетного джерела 
+       <select name="authtypecode">
+               <!-- TMPL_LOOP name="authtypesloop" -->
+                       <option value="<!-- TMPL_VAR name="value" -->" <!-- 
TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->>
+                               <!-- TMPL_VAR name="authtypetext" -->
+                       </option>
+               <!-- /TMPL_LOOP -->
+       </select>
+       <input type="submit" value="Додати" class="button authority">
+       </p>
+</form>
+</div>
+
+</div>
+<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
+

Index: authorities/authorities.tmpl
===================================================================
RCS file: authorities/authorities.tmpl
diff -N authorities/authorities.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/authorities.tmpl        17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,207 @@
+<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" 
-->/includes/marc-editor.css">
+
+<div class="tabbed">
+       <form method="post" name="f">
+       <!-- TMPL_IF name="authid" -->
+               <h1 class="authority">Модифікація 
авторитетного джерела № <!-- TMPL_VAR NAME="authid" --> 
(<!-- TMPL_VAR name="authtypetext" -->)</h1>
+       <!-- TMPL_ELSE -->
+               <h1 class="authority">Додавання 
авторитетного джерела (<!-- TMPL_VAR name="authtypetext" 
-->)</h1>
+       <!-- /TMPL_IF -->
+       <p>
+               <input type="hidden" name="op" value="add">
+               <input type="hidden" name="addfield_field">
+               <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR 
NAME="authtypecode" -->">
+               <input type="hidden" name="authid" value="<!-- TMPL_VAR 
NAME="authid" -->">
+               <!-- TMPL_IF name="authid" -->
+                       <input type="button" value="Зберегти" 
onclick="Check(this.form)" accesskey="w" class="button authority">
+               <!-- TMPL_ELSE -->
+                       <input type="button" value="Додати 
авторитетне джерело" onclick="Check(this.form)" accesskey="w" 
class="button authority">
+               <!-- /TMPL_IF -->
+       </p>
+</div>
+
+<br><br><br><br><br><br><br><br><br><br><br>
+<!-- TMPL_IF name="duplicateauthid" -->
+       <div class="problem">
+               <p>Є підозра на дублювання з <a 
href='javascript:openWindow("detail.pl?authid=<!-- TMPL_VAR 
name="duplicateauthid" -->&popup=1", "Duplicate Authority")' class="button 
authority"><!-- TMPL_VAR name="duplicateauthvalue" --></a></p>
+               <p>Виберіть той чи інший: </p>
+               <ul>
+                       <p><input type="checkbox" value=1 
name="confirm_not_duplicate">підтвердіть, що це не 
дублікат (і клацніть на  <input type="button" 
value="Додати авторитетне джерело" 
onclick="Check(this.form)" accesskey="w" class="button authority">  
знову)</p>
+                       <p>Перейти до <a 
href="authorities.pl?authid=<!-- TMPL_VAR name="duplicateauthid" -->" 
>первісного авторитетного джерела</a></p>
+               </ul>
+       </div>
+<!-- /TMPL_IF -->
+
+<!-- TMPL_LOOP NAME="0XX" -->
+       <!-- TMPL_IF name="tag" -->
+               <p class="MARCtag">
+               <!-- TMPL_VAR NAME="tag" -->
+               <input type="hidden" name="ind_tag" value="<!-- TMPL_VAR 
NAME="tag" -->">
+               <input type="text" name="indicator" size="3" maxlength="2" 
value="<!-- TMPL_VAR NAME="indicator" -->"> - <TMPL_VAR NAME="tag_lib">
+               <!-- TMPL_IF name="repeatable" -->
+                       <a href="javascript:AddField(<!-- TMPL_VAR NAME="tag" 
-->)">+</a>
+               <!-- /TMPL_IF -->
+               </p>
+       <!-- /TMPL_IF -->
+       <!-- TMPL_LOOP NAME="subfield_loop" -->
+               <p>
+                       <label class="labelsubfield">
+                               <!-- TMPL_UNLESS name="hide_marc" -->
+                                       <img src="<!-- TMPL_VAR 
NAME="themelang" -->/images/prev.gif" onClick="javascript:upSubfield('<!-- 
TMPL_VAR name="index" -->')">
+                                               <input type="text" 
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" size="1" 
maxlength="1">
+                               <!-- TMPL_ELSE -->
+                                               <input type="hidden" 
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->">
+                               <!-- /TMPL_UNLESS -->
+                               <!-- TMPL_IF name="mandatory" --><b><!-- 
/TMPL_IF -->
+                               <!-- TMPL_VAR NAME="marc_lib" -->
+                               <!-- TMPL_IF name="mandatory" --> *</b><!-- 
/TMPL_IF -->
+                       </label>
+                       <!-- TMPL_VAR NAME="marc_value" -->
+                       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="tag" -->">
+                       <input type="hidden" name="mandatory" value="<!-- 
TMPL_VAR NAME="mandatory" -->">
+                       <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
+                       <input type="hidden" name="tag_mandatory" value="<!-- 
TMPL_VAR NAME="tag_mandatory" -->">
+               </p>
+       <!-- /tmpl_loop -->
+<!-- /tmpl_loop -->
+               
+               <div name="hidden" id="hidden" class="tab">
+               <!-- TMPL_LOOP NAME="hidden_loop" -->
+                               <input type="hidden" name="tag" value="<!-- 
TMPL_VAR NAME="tag" -->">
+                               <input type="hidden" name="subfield" 
value="<!-- TMPL_VAR NAME="subfield" -->">
+                               <input type="hidden" name="mandatory" 
value="<!-- TMPL_VAR NAME="mandatory" -->">
+                               <input type="hidden" name="kohafield" 
value="<!-- TMPL_VAR NAME="kohafield" -->">
+                               <input type="hidden" name="tag_mandatory" 
value="<!-- TMPL_VAR NAME="tag_mandatory" -->">
+               <!-- /TMPL_LOOP -->
+               </div>
+               <!-- TMPL_IF name="oldbiblionumtagfield" -->
+                       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="oldbiblionumtagfield" -->">
+                       <input type="hidden" name="subfield" value="<!-- 
TMPL_VAR NAME="oldbiblionumtagsubfield" -->">
+                       <input type="hidden" name="field_value" value="<!-- 
TMPL_VAR NAME="oldbiblionumber" -->">
+                       <input type="hidden" name="mandatory" value="0">
+                       <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
+                       <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="oldbiblioitemnumtagfield" -->">
+                       <input type="hidden" name="subfield" value="<!-- 
TMPL_VAR NAME="oldbiblioitemnumtagsubfield" -->">
+                       <input type="hidden" name="field_value" value="<!-- 
TMPL_VAR NAME="oldbiblioitemnumber" -->">
+                       <input type="hidden" name="mandatory" value="0">
+                       <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
+                       <input type="hidden" name="tag_mandatory" value="<!-- 
TMPL_VAR NAME="tag_mandatory" -->">
+               <!-- /TMPL_IF -->
+       </form>
+<script language="JavaScript" type="text/javascript">
+function _(s) { return s } // dummy function for gettext
+function active(numlayer)
+{
+       for (i=0; i < 10 ; i++ ) {
+               ong = i+"XX";
+               link = "link"+i;
+               if (numlayer==i) {
+                       document.getElementById(ong).style.visibility="visible";
+               } else {
+                       document.getElementById(ong).style.visibility="hidden";
+               }
+       }
+}
+function Check(f) {
+       // Scan for nonempty fields
+       var field_is_nonempty_p = new Array();
+       for (i=0 ; i<f.field_value.length ; i++) {
+           field_is_nonempty_p[f.tag[i].value] = 0;
+       }
+       for (i=0 ; i<f.field_value.length ; i++) {
+           if (f.field_value[i].value.length != 0) {
+               field_is_nonempty_p[f.tag[i].value] += 1;
+           }
+       }
+
+       // Scan for missing mandatory subfields
+       var total_missing_mandatory_subfields = 0;
+       for (i=0 ; i<f.field_value.length-2 ; i++) {
+               if (f.field_value[i].value.length==0 && 
f.mandatory[i].value==1) {
+                   // We should not flag an error unless the tag is also
+                   // mandatory, or if something else in the tag is entered
+
+                   if (f.tag_mandatory[i].value == 1 || 
field_is_nonempty_p[f.tag[i].value]) {
+                       
document.getElementById("error"+i).style.backgroundColor="#FF0000";
+                       total_missing_mandatory_subfields++;
+                   }
+               } else {
+                       
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
+               }
+       }
+
+       // Scan for missing mandatory tags
+       var total_missing_mandatory_tags = 0;
+       var seen_mandatory_tag_p = new Array();
+       for (i=0 ; i<f.field_value.length ; i++) {
+           var j = f.tag[i].value;
+           if (!field_is_nonempty_p[j] && f.tag_mandatory[i].value == 1) {
+               if (seen_mandatory_tag_p[j] != 1) {
+                   seen_mandatory_tag_p[j] = 1;
+                   total_missing_mandatory_tags++;
+               }
+               
document.getElementById("error"+i).style.backgroundColor="#ffff00";
+           }
+       }
+
+       var total_errors = total_missing_mandatory_tags + 
total_missing_mandatory_subfields;
+       var alertString2;
+       if (total_errors!=0) {
+               alertString2  = _("Форма не відіслана 
через наступні проблеми(у)");
+               alertString2 += 
"\n------------------------------------------------------------------------------------\n";
+               alertString2 += "\n- "+ total_missing_mandatory_tags +_(" 
обов'язкові ознаки порожні");
+               alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" 
обов'язкові поля порожні (дивіться підполя, 
відмічені жирним шрифтом)");
+               alert(alertString2);
+       } else {
+               document.forms['f'].submit();
+       }
+}
+function Dopop(link,i) {
+       defaultvalue=document.forms['f'].field_value[i].value;
+       newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
+}
+
+function PopupZ3950() {
+    var strQuery="";
+       for (i=0 ; i<document.forms['f'].field_value.length ; i++) {
+               if (document.forms['f'].kohafield[i].value == 
"biblioitems.isbn" && document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&isbn="+document.forms['f'].field_value[i].value;
+               }
+               if (document.forms['f'].kohafield[i].value == "biblio.title" && 
document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&title="+document.forms['f'].field_value[i].value;
+               }
+               if (document.forms['f'].kohafield[i].value == "biblio.author" 
&&document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&author="+document.forms['f'].field_value[i].value;
+               }
+               if (document.forms['f'].kohafield[i].value == 
"biblioitems.issn" && document.forms['f'].field_value[i].value.length>0) {
+                   strQuery += 
"&issn="+document.forms['f'].field_value[i].value;
+               }
+       }
+       newin=window.open("../z3950/search.pl?bibid=<!-- TMPL_VAR NAME="bibid" 
-->"+strQuery,"z3950search",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+function AddField(field) {
+       document.forms['f'].op.value = "addfield";
+       document.forms['f'].addfield_field.value=field;
+       document.f.submit();
+}
+
+function upSubfield(index) {
+       temp = document.forms['f'].field_value[index-1].value;
+       
document.forms['f'].field_value[index-1].value=document.forms['f'].field_value[index].value;
+       document.forms['f'].field_value[index].value= temp;
+       temp = document.forms['f'].subfield[index-1].value;
+       
document.forms['f'].subfield[index-1].value=document.forms['f'].subfield[index].value;
+       document.forms['f'].subfield[index].value = temp;
+       temp = document.forms['f'].mandatory[index-1].value;
+       
document.forms['f'].mandatory[index-1].value=document.forms['f'].mandatory[index].value;
+       document.forms['f'].mandatory[index].value = temp;
+       temp = document.forms['f'].kohafield[index-1].value;
+       
document.forms['f'].kohafield[index-1].value=document.forms['f'].kohafield[index].value;
+       document.forms['f'].kohafield[index].value = temp;
+}
+
+</script>
+</body>
+</html>

Index: authorities/blinddetail-biblio-search.tmpl
===================================================================
RCS file: authorities/blinddetail-biblio-search.tmpl
diff -N authorities/blinddetail-biblio-search.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/blinddetail-biblio-search.tmpl  17 Oct 2006 07:32:07 -0000      
1.1.2.1
@@ -0,0 +1,61 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<!-- TMPL_IF NAME="TemplateEncoding" --><meta http-equiv="Content-Type" 
content="text/html; charset=utf-8"><!-- TMPL_ELSE --><meta 
http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- /TMPL_IF -->
+
+<body>
+<script language="JavaScript" type="text/javascript">
+
+function go()
+{
+var index_start = <!-- TMPL_VAR NAME="index" -->;
+var whichfield = opener.opener.document.f.tag[index_start].value;
+i=index_start
+// go forward, until reaching the end of the field.
+while (i<opener.opener.document.f.field_value.length) {
+       if (opener.opener.document.f.tag[i].value == whichfield && 
opener.opener.document.f.subfield[i].value == '9') {
+               opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR 
NAME="authid" -->";
+       }
+       <!-- TMPL_LOOP NAME="0XX" -->
+               <!-- TMPL_LOOP NAME="subfield" -->
+                       if (opener.opener.document.f.tag[i].value == whichfield 
&& opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR 
NAME="marc_subfield" -->') 
+                       {
+                               opener.opener.document.f.field_value[i].value = 
"<!-- TMPL_VAR NAME="marc_value" -->";
+                       }
+               <!-- /TMPL_LOOP -->
+       <!-- /TMPL_LOOP -->
+       if (opener.opener.document.f.tag[i].value != whichfield) {
+               i=opener.opener.document.f.field_value.length;
+       }
+       i++;
+}
+// go backward until the beginning of the field
+i=index_start
+while (i>=0) {
+       if (opener.opener.document.f.tag[i].value == whichfield && 
opener.opener.document.f.subfield[i].value == '9') {
+               opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR 
NAME="authid">";
+       }
+       <!-- TMPL_LOOP NAME="0XX" -->
+               <!-- TMPL_LOOP NAME="subfield" -->
+                       if (opener.opener.document.f.tag[i].value == whichfield 
&& opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR 
NAME="marc_subfield" -->') 
+                       {
+                               opener.opener.document.f.field_value[i].value = 
"<!-- TMPL_VAR NAME="marc_value" -->";
+                       }
+               <!-- /TMPL_LOOP -->
+       <!-- /TMPL_LOOP -->
+       if (opener.opener.document.f.tag[i].value != whichfield) {
+               i=0;
+       }
+       i--;
+}
+       opener.close();
+       self.close();
+       return false;
+
+
+}
+</script>
+<script language="javascript" type="text/javascript">
+window.onload = go();
+</script>
+</body>
+</html>

Index: authorities/detail-biblio-search.tmpl
===================================================================
RCS file: authorities/detail-biblio-search.tmpl
diff -N authorities/detail-biblio-search.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/detail-biblio-search.tmpl       17 Oct 2006 07:32:07 -0000      
1.1.2.1
@@ -0,0 +1,86 @@
+<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" 
-->/includes/marc-editor.css">
+<div class="tabbed">
+       <h1 class="authority">Номер авторитетного 
джерела: <!-- TMPL_VAR NAME="authid" --></h1>
+       <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
+               <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- 
TMPL_VAR NAME="theme" -->/images/fileopen.png">
+       </a>
+       <a href="javascript:confirm_deletion()">
+               <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- 
TMPL_VAR NAME="theme" -->/images/edittrash.png">
+       </a>
+       <a href="javascript:Dopop('detailprint.pl?authid=<!-- TMPL_VAR 
NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')" class="button 
authority">
+               Друк
+       </a>
+       <a href="javascript:CopyValues()">      <img border="0" src="<!-- 
TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" 
height="45" width="45">
+
+       </a>
+</div>
+<br><br><br>
+<div name="0XX" id="0XX" class="tab" style="visibility:visible">
+       <!-- TMPL_LOOP NAME="0XX" -->
+                       <p class="MARCtag">
+                               <!-- TMPL_VAR NAME="tag" -->
+                       </p>
+               <!-- TMPL_LOOP NAME="subfield" -->
+                       <p>
+                               <label class="labelsubfield">
+                               <a 
href="search.marc/search.pl?op=do_search&amp;marclist=<!-- TMPL_VAR 
NAME="marc_tag" --><!-- TMPL_VAR NAME="marc_subfield" 
-->&amp;operator=&#x003D&amp;type=intranet&amp;value=<!-- TMPL_VAR 
NAME="marc_value" ESCAPE=URL -->">
+                                       <img border="0" src="<!-- TMPL_VAR 
NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/filefind.png" 
height="15">
+                               </a>
+                               <!-- TMPL_VAR NAME="marc_subfield" -->
+                               <!-- TMPL_VAR NAME="marc_lib" --></label>
+                               <!-- TMPL_VAR NAME="marc_value" -->
+                       </p>
+               <!-- /TMPL_LOOP -->
+       <!-- /TMPL_LOOP -->
+</div>
+       
+<script language="JavaScript" type="text/javascript">
+
+function confirm_deletion() {
+       var is_confirmed = confirm('Are you sure you want to delete this 
biblio?');
+       if (is_confirmed) {
+               
window.location="acqui.simple/addbiblio.pl?op=delete&amp;bibid=<!-- TMPL_VAR 
NAME="bibid" -->";
+       }
+}
+function Dopop(link) {
+       
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+function CopyValues()
+{
+var index_start = <!-- TMPL_VAR NAME="index" -->;
+opener.opener.document.f.field_value[index_start].value = '<!-- TMPL_VAR 
NAME="authid">';
+var whichfield = opener.opener.document.f.tag[index_start].value;
+for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
+
+if (opener.opener.document.f.tag[i].value == whichfield && 
opener.opener.document.f.subfield[i].value == '9') 
+       {
+               opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR 
NAME="authid">';
+       }
+
+}
+
+
+<!-- TMPL_LOOP NAME="0XX" -->
+   <!-- TMPL_LOOP NAME="subfield" -->
+for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
+
+if (opener.opener.document.f.tag[i].value == whichfield && 
opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR 
NAME="marc_subfield" -->') 
+       {
+               opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR 
NAME="marc_value" -->';
+       }
+
+}
+       
+   <!-- /TMPL_LOOP -->
+<!-- /TMPL_LOOP -->
+       opener.close();
+       self.close();
+       return false;
+       
+}
+
+</script>
+</body>
+</html>

Index: authorities/detail.tmpl
===================================================================
RCS file: authorities/detail.tmpl
diff -N authorities/detail.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/detail.tmpl     17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,98 @@
+<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" 
-->/includes/marc-editor.css">
+<!-- TMPL_IF Name="displayhierarchy"-->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" 
-->/includes/hierarchy.css">
+<script language="JavaScript" type="text/javascript">
+function showParents(mynumber) {
+  var parents=document.getElementsByName(mynumber+'p')
+  for(i=0;i<parents.length;i++){
+    if (parents[i].style.display == "none") {
+      parents[i].style.display ="block";
+    } else {
+      parents[i].style.display ="none";
+    }
+  } 
+}
+function showChildren(mynumber) {
+  var children=document.getElementsByName(mynumber+'c')
+  for(i=0;i<children.length;i++){
+    if (children[i].style.display == "none") {
+      children[i].style.display = "block";
+    } else {
+      children[i].style.display = "none";
+    }
+  }
+}
+</script>
+
+<div class="hierarchies">
+<!--TMPL_LOOP Name="loophierarchies" -->
+  <div class="hierarchy">
+  <!--TMPL_LOOP Name="loopelement" -->
+    <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR 
Name="class" -->">
+    <!--TMPL_IF Name="ifparents" -->
+      <!--TMPL_LOOP Name="loopparents" -->
+        <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a 
href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR 
Name="parentvalue" --></a></div>
+      <!--/TMPL_LOOP-->
+    <!--/TMPL_IF -->
+    <!-- TMPL_IF name="current_value" -->
+        <!--TMPL_VAR Name="value" -->
+    <!-- TMPL_ELSE -->
+        <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" 
title="Термін"><!--TMPL_VAR Name="value" --></a>
+    <!-- /TMPL_IF -->
+    <!--TMPL_IF Name="ifchildren" -->
+      <sub><a class="parents" title="Вужчі терміни" 
href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" 
-->');">+</a></sub><br/>
+      <!--TMPL_LOOP Name="loopchildren" -->
+        <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a 
href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR 
Name="childvalue" --></a></div>
+      <!--/TMPL_LOOP-->
+    <!-- /TMPL_IF -->
+    </div>
+  <!--/TMPL_LOOP-->
+    
+  </div>
+<!--/TMPL_LOOP-->
+</div>
+<!-- /TMPL_IF -->
+<div class="tabbed">
+       <h1 class="authority">Авторитетне джерело № <!-- 
TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
+       <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
+               <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- 
TMPL_VAR NAME="theme" -->/images/fileopen.png">
+       </a>
+       <!-- TMPL_UNLESS name="count" -->
+               <a href="javascript:confirm_deletion()">
+                       <img border="0" src="<!-- TMPL_VAR NAME="interface" 
-->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png">
+               </a>
+       <!-- /TMPL_UNLESS -->
+       <a 
href="../search.marc/search.pl?type=intranet&amp;op=do_search&amp;marclist=<!-- 
TMPL_VAR NAME="biblio_fields" -->&amp;operator==&amp;value=<!-- TMPL_VAR 
NAME="authid" -->&amp;and_or=and&amp;excluding=" class="button authority"><!-- 
TMPL_VAR name="count" --> бібліотечних записів</a>
+</div>
+
+<div name="0XX" id="0XX" class="tab" style="visibility:visible">
+       <!-- TMPL_LOOP NAME="0XX" -->
+                       <p class="MARCtag">
+                               <!-- TMPL_VAR NAME="tag" -->
+                       </p>
+               <!-- TMPL_LOOP NAME="subfield" -->
+                       <p>
+                               <label class="labelsubfield">
+                               <!-- TMPL_VAR NAME="marc_subfield" -->
+                               <!-- TMPL_VAR NAME="marc_lib" --></label>
+                               <!-- TMPL_VAR NAME="marc_value" -->
+                       </p>
+               <!-- /TMPL_LOOP -->
+       <!-- /TMPL_LOOP -->
+</div>
+       
+<script language="JavaScript" type="text/javascript">
+
+function confirm_deletion() {
+       var is_confirmed = confirm('Are you sure you want to delete this 
authority?');
+       if (is_confirmed) {
+               window.location="authorities-home.pl?op=delete&amp;authid=<!-- 
TMPL_VAR NAME="authid" -->";
+       }
+}
+function Dopop(link) {
+       
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+</script>
+</body>
+</html>

Index: authorities/searchresultlist-auth.tmpl
===================================================================
RCS file: authorities/searchresultlist-auth.tmpl
diff -N authorities/searchresultlist-auth.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/searchresultlist-auth.tmpl      17 Oct 2006 07:32:07 -0000      
1.1.2.1
@@ -0,0 +1,133 @@
+<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
+<div id="mainbloc">
+       <h1 class="authority">Результати пошуку за 
авторитетним джерелом</h1>
+       <div id="bloc25">
+               <form name="f" method="post" action="auth_finder.pl">
+                       <input type="hidden" name="op" value="do_search">
+                       <input type="hidden" name="type" value="intranet">
+                       <input type="hidden" name="nbstatements" value="<!-- 
TMPL_VAR NAME="nbstatements" -->">
+                       <div id="bloc25">
+                               <h2 class="authority">Пошук за</h2>
+                               <p>
+                                       <label class="label100">Тип 
авторитетного джерела </label>
+                                       <!-- TMPL_VAR NAME="authtypecode" -->
+                                       <input type="hidden" 
name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
+                               </p>
+                               <p>
+                                       <label class="label100">Основне 
входження </label><input type="text" name="value" value="<!-- TMPL_VAR 
name="resultstring" -->">
+                                       <input type="hidden" name="marclist" 
value="mainentry">
+                                       <input type="hidden" name="and_or" 
value="and">
+                                       <input type="hidden" name="excluding" 
value="">
+                                       <select name="operator">
+                                               <option 
value="start">починається</option>
+                                               <option 
value="contains">містить</option>
+                                       </select>
+                                       <input type="hidden" name="index" 
value="<!-- TMPL_VAR NAME="index" -->">
+                                       <input type="hidden" name="tagid" 
value="<!-- TMPL_VAR NAME="tagid" -->">
+                               </p>
+                               <p>
+                                       <label 
class="label100">Де-небудь </label><input type="text" name="value">
+                                       <input type="hidden" name="marclist" 
value="">
+                                       <input type="hidden" name="and_or" 
value="and">
+                                       <input type="hidden" name="excluding" 
value="">
+                                       <select name="operator">
+                                               <option 
value="contains">містить</option>
+                                               <option 
value="start">починається</option>
+                                       </select>
+                                       <input type="hidden" name="index" 
value="<!-- TMPL_VAR NAME="index" -->">
+                                       <input type="hidden" name="tagid" 
value="<!-- TMPL_VAR NAME="tagid" -->">
+                               </p>
+                               <p>
+                               <input type="submit" value="Почати 
пошук" class="button authority">
+                               </p>
+                       </div>
+               </form>
+       </div>
+       <div id="bloc25">
+               <div id="resultnumber">
+                       <p>
+                               <!-- TMPL_IF name="displayprev" -->
+                                       <a href="auth_finder.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromprev" -->&amp;&amp;authtypecode=<!-- TMPL_VAR 
name="authtypecode" --><!-- TMPL_LOOP name="searchdata"-->&<!-- TMPL_VAR 
name="term" -->=<!-- TMPL_VAR name="val"--><!-- /TMPL_LOOP 
-->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->&tagid=<!-- 
TMPL_VAR name="tagid" -->">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
+                                       </a>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_LOOP NAME="numbers" -->
+                                       <!-- TMPL_IF name="highlight" -->
+                                               <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" 
-->-highlight.gif">
+                                       <!-- TMPL_ELSE -->
+                                               <a 
href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" 
-->&amp;authtypecode=<!-- TMPL_VAR name="authtypecode" --><!-- TMPL_LOOP 
name="searchdata"-->&<!-- TMPL_VAR name="term" -->=<!-- TMPL_VAR 
name="val"--><!-- /TMPL_LOOP -->&op=do_search&type=intranet&index=<!-- TMPL_VAR 
name="index" -->&tagid=<!-- TMPL_VAR name="tagid" -->">
+                                                       <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" 
border="0"></a>
+                                       <!-- /TMPL_IF -->
+                               <!-- /TMPL_LOOP -->
+                               <!-- TMPL_IF name="displaynext" -->
+                                       <a href="auth_finder.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromnext" -->&amp;&amp;authtypecode=<!-- TMPL_VAR 
name="authtypecode" --><!-- TMPL_LOOP name="searchdata"-->&<!-- TMPL_VAR 
name="term" -->=<!-- TMPL_VAR name="val"--><!-- /TMPL_LOOP 
-->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->&tagid=<!-- 
TMPL_VAR name="tagid" -->">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
+                               <!-- /TMPL_IF -->
+                       </p>
+                       <p>
+                               <!-- TMPL_IF name="total" -->
+                                       &nbsp;<b>Результати 
пошуку з <!-- TMPL_VAR NAME="from" --> до <!-- TMPL_VAR NAME="to" --> 
зі <!-- TMPL_VAR NAME="total" --></b><br><br>
+                               <!-- TMPL_ELSE -->
+                                       &nbsp; Нічого не 
знайдено.<br>
+                               <!-- /TMPL_IF -->
+                       </p>
+               </div>
+               <div id="resultlist">
+                       <table>
+                               <tr>
+                                       <th 
class="authority">Зведення</th>
+                                       <th 
class="authority">Використано</th>
+                                       <th class="authority">Отримати 
це!</th>
+                               </tr>
+                               <tr>
+                                       <td>&nbsp;</td>
+                                       <td>&nbsp;</td>
+                                       <td>
+                                               <a 
href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=0&amp;index=<!-- 
TMPL_VAR NAME="index" -->&amp;tagid=<!-- TMPL_VAR NAME="tagid" -->')" 
class="button authority">
+                                                       Очистити
+                                               </a>
+                                       </td>
+                               <!-- TMPL_LOOP NAME="result" -->
+                                       <tr>
+                                               <td><!-- TMPL_VAR 
NAME="summary" --></td>
+                                               <td><!-- TMPL_VAR NAME="used" 
--> раз(и/ів)</td>
+                                               <td>
+                                                       <a 
href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=<!-- TMPL_VAR 
NAME="authid" -->&amp;index=<!-- TMPL_VAR NAME="index" -->&amp;tagid=<!-- 
TMPL_VAR NAME="tagid" -->')"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- 
TMPL_VAR NAME="theme" -->/images/arrow.gif" width="32" hspace="0" vspace="0" 
border="0"></a>
+                                               </td>
+                                       </tr>
+                               <!-- /TMPL_LOOP -->
+                       </table>
+       
+               </div>
+               <div id="resultnumber">
+                       <p>
+                               <!-- TMPL_IF name="displayprev" -->
+                                       <a href="auth_finder.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;authtypecode=<!-- TMPL_VAR name="authtypecode" 
-->&op=do_search&type=intranet">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
+                                       </a>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_LOOP NAME="numbers" -->
+                                       <!-- TMPL_IF name="highlight" -->
+                                               <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" 
-->-highlight.gif">
+                                       <!-- TMPL_ELSE -->
+                                               <a 
href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;authtypecode=<!-- TMPL_VAR name="authtypecode" 
-->&op=do_search&type=intranet">
+                                                       <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" 
border="0"></a>
+                                       <!-- /TMPL_IF -->
+                               <!-- /TMPL_LOOP -->
+                               <!-- TMPL_IF name="displaynext" -->
+                                       <a href="auth_finder.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;authtypecode=<!-- TMPL_VAR name="authtypecode" 
-->&op=do_search&type=intranet">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
+                               <!-- /TMPL_IF -->
+                       </p>
+               </div>  
+       </div>
+</div>
+
+<script language="JavaScript" type="text/javascript">
+
+function jumpfull(page)
+{      
+       window.open(page,'','width=10,height=10');
+}
+</script>
+<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->

Index: authorities/searchresultlist.tmpl
===================================================================
RCS file: authorities/searchresultlist.tmpl
diff -N authorities/searchresultlist.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ authorities/searchresultlist.tmpl   17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,103 @@
+<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
+<div id="mainbloc">
+       <h1 class="authority">Результати пошуку за 
авторитетним джерелом</h1>
+       <div id="resultnumber">
+               <p>
+                       <!-- TMPL_IF name="displayprev" -->
+                               <a href="authorities-home.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- TMPL_VAR 
name="authtypecode" -->">
+                                       <img 
src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
+                               </a>
+                       <!-- /TMPL_IF -->
+                       <!-- TMPL_LOOP NAME="numbers" -->
+                               <!-- TMPL_IF name="highlight" -->
+                                       <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" 
-->-highlight.gif">
+                               <!-- TMPL_ELSE -->
+                                       <a 
href="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- 
TMPL_VAR name="authtypecode" -->">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" 
border="0">
+                                       </a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF name="displaynext" -->
+                               <a href="authorities-home.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- TMPL_VAR 
name="authtypecode" -->">
+                                       <img 
src="/intranet-tmpl/default/images/numbers/next.gif" border="0">
+                               </a>
+                               <!-- /TMPL_IF -->
+               </p>
+               <p>
+                       <!-- TMPL_IF name="total" -->
+                       &nbsp;<b>Результати пошуку з <!-- 
TMPL_VAR NAME="from" --> до <!-- TMPL_VAR NAME="to" --> зі <!-- TMPL_VAR 
NAME="total" --></b><br><br>
+                       <!-- TMPL_ELSE -->
+                       &nbsp; Нічого не знайдено.<br>
+                       <!-- /TMPL_IF -->
+               </p>
+       </div>
+       <div id="resultlist">
+               <table>
+                       <tr>
+                               <th class="authority">Зведення</th>
+                               <!-- TMPL_UNLESS name="isEDITORS" -->
+                                       <th 
class="authority">Використано</th>
+                               <!-- /TMPL_UNLESS -->
+                               <th class="authority">Перегляд</th>
+                               <th class="authority">Видалити</th>
+                       </tr>
+                       <!-- TMPL_LOOP NAME="result" -->
+                               <tr>
+                                       <td><!-- TMPL_VAR NAME="summary" 
--></td>
+                                       <!-- TMPL_UNLESS name="isEDITORS" -->
+                                               <td>
+                                                       <a 
href="../search.marc/search.pl?type=intranet&amp;op=do_search&amp;marclist=<!-- 
TMPL_VAR NAME="biblio_fields" -->&amp;operator==&amp;value=<!-- TMPL_VAR 
NAME="authid" -->&amp;and_or=and&amp;excluding=" class="button authority"><!-- 
TMPL_VAR NAME="used" --> бібліотечних записів</a>
+                                               </td>
+                                       <!-- /TMPL_UNLESS -->
+                                       <td>
+                                               <a href="detail.pl?authid=<!-- 
TMPL_VAR NAME="authid" -->">
+                                                       <img src="<!-- TMPL_VAR 
NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" 
width="32" hspace="0" vspace="0" border="0" alt='Номер 
авторитетного джерела <!-- TMPL_VAR NAME="authid" -->' 
title='Номер авторитетного джерела<!-- TMPL_VAR 
NAME="authid" -->'>
+                                               </a>
+                                       </td>
+                                               <td>
+                                                       <!-- TMPL_UNLESS 
name="used" -->
+                                                       <a 
href="javascript:confirm_deletion(<!-- TMPL_VAR NAME="authid" -->)">
+                                                               <img src="<!-- 
TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" 
-->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
+                                                       </a>
+                                                       <!-- /TMPL_UNLESS -->
+                                               </td>
+                               </tr>
+                       <!-- /TMPL_LOOP -->
+               </table>
+       </div>
+       <div id="resultnumber">
+               <p>
+                       <!-- TMPL_IF name="displayprev" -->
+                               <a href="authorities-home.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- TMPL_VAR 
name="authtypecode" -->">
+                                       <img 
src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
+                               </a>
+                       <!-- /TMPL_IF -->
+                       <!-- TMPL_LOOP NAME="numbers" -->
+                               <!-- TMPL_IF name="highlight" -->
+                                       <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" 
-->-highlight.gif">
+                               <!-- TMPL_ELSE -->
+                                       <a 
href="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- 
TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR 
NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR 
NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- 
TMPL_VAR name="authtypecode" -->">
+                                               <img 
src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" 
border="0">
+                                       </a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF name="displaynext" -->
+                               <a href="authorities-home.pl?startfrom=<!-- 
TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- 
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- 
/TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" 
-->&amp;type=intranet&amp;op=do_search&authtypecode=<!-- TMPL_VAR 
name="authtypecode" -->">
+                                       <img 
src="/intranet-tmpl/default/images/numbers/next.gif" border="0">
+                               </a>
+                               <!-- /TMPL_IF -->
+               </p>
+       </div>  
+</div>
+<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
+
+
+<script language="JavaScript" type="text/javascript" >
+function confirm_deletion(id) {
+       
+       var is_confirmed = confirm('Are you sure you want to delete this 
authority?');
+       if (is_confirmed) {
+               window.location="authorities-home.pl?op=delete&amp;authid="+id;
+       }
+}
+</script>
\ No newline at end of file

Index: barcodes/barcodes-bottom.inc
===================================================================
RCS file: barcodes/barcodes-bottom.inc
diff -N barcodes/barcodes-bottom.inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ barcodes/barcodes-bottom.inc        17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,17 @@
+<br clear="all">
+<p> &nbsp; </p>
+
+<div class="center">
+<a href="/cgi-bin/koha/mainpage.pl">На початок</a> ||
+<a 
href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Каталог</a>
 ||
+<a href="/cgi-bin/koha/members/members-home.pl">Відвідувачі</a> ||
+<a href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Надх
одження</a> ||
+<a href="/cgi-bin/koha/circ/circulation.pl">Обіг</a> ||
+<a href="/cgi-bin/koha/reports-home.pl">Звіти</a> ||
+<a href="/cgi-bin/koha/admin-home.pl">Параметри</a> ||
+<a href="/cgi-bin/koha/about.pl">Про систему</a> || 
+Допомога
+</div>
+
+</body>
+</html>
\ No newline at end of file

Index: barcodes/barcodes-top.inc
===================================================================
RCS file: barcodes/barcodes-top.inc
diff -N barcodes/barcodes-top.inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ barcodes/barcodes-top.inc   17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,216 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+<title>КОХА: ІНТЕРФЕЙС БІБЛІОТЕКАРЯ: 
Параметри</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/common-style.css">
+<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'))">
+<!-- MENUS -->
+<div id="menubar">
+       <span class="koha">КОХА</span>
+       <a class="home" href="/cgi-bin/koha/mainpage.pl">На 
початок</a> <a class="catalogue" 
href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Каталог</a>
 <a class="members" 
href="/cgi-bin/koha/members/members-home.pl">Відвідувачі</a> <a 
class="acquisition" 
href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Надх
одження</a> <a class="circulation"  
href="/cgi-bin/koha/circ/circulation.pl">Обіг</a> <a class="authority" 
href="/cgi-bin/koha/authorities/authorities-home.pl">Авторитетні 
джерела</a> <a class="reports" 
href="/cgi-bin/koha/reports-home.pl">Звіти</a> <a class="parameters" 
href="/cgi-bin/koha/admin-home.pl">Параметри</a> <a class="about" 
href="/cgi-bin/koha/about.pl">Про систему</a> <a class="catalogue" 
href="/cgi-bin/koha/help.pl" onclick="Help(); return 
false;">Допомога</a>
+</div>
+<div id="submenu">
+       <span class="koha">можливості &gt;&gt;&nbsp;&nbsp;</span>
+       <a href="/cgi-bin/koha/admin/aqbookfund.pl" 
class="submenu">Фонди</a> <a 
href="/cgi-bin/koha/admin/authorised_values.pl" 
class="submenu2">Авторитетне джерело</a> <a 
href="/cgi-bin/koha/admin/thesaurus.pl" class="submenu">Тезаурус</a> <a 
href="/cgi-bin/koha/admin/currency.pl" class="submenu2">Грошові 
одиниці</a> <a href="/cgi-bin/koha/admin/printers.pl" 
class="submenu">Друкарки</a>
+</div>
+<!-- TMPL_IF NAME="loggedinusername" -->
+    <p align="left">Зайдено у систему як: <!-- TMPL_VAR 
NAME="loggedinusername" --> [<a 
href="/cgi-bin/koha/mainpage.pl?logout.x=1">Вихід</a>]</p>
+<!-- TMPL_ELSE -->
+    <p align="left"><a href="/cgi-bin/koha/opac-user.pl">Р
еєструватися</a> у Коха</p>
+<!-- /TMPL_IF -->

Index: barcodes/barcodes.tmpl
===================================================================
RCS file: barcodes/barcodes.tmpl
diff -N barcodes/barcodes.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ barcodes/barcodes.tmpl      17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,177 @@
+<!-- TMPL_INCLUDE NAME="barcodes-top.inc" -->
+
+<!-- 
********************************************************************************************************
 -->
+<!-- ******                             START OF ADD COUNTRY CODE PANEL        
                        ****** -->
+<!-- 
********************************************************************************************************
 -->
+
+<div class="countryPanel" style="position:absolute" id="addCountryCode">
+       <form action="/cgi-bin/koha/barcodes/barcodes.pl" method="post" 
style="display:inline">
+               <input type="hidden" name="addCode" value="1">
+               <table style="background-color:#EFEFEF;border:1px" 
align="center">
+                       <tr>
+                               <th colspan="2">
+                                       Додати код нової 
країни
+                               </th>
+                       </tr>
+                       <tr>
+                               <td>
+                                       Назва країни &nbsp;<input 
type="text" size="10" id="countryName" name="countryName"  
+                                                               
style="background-color:#FFFFFF;color:Black"/>
+                               </td>
+                               <td>
+                                       Код країни &nbsp;<input 
type="text" size="3" id="countryCode" name="countryCode"  
+                                                               
style="background-color:#FFFFFF;color:Black"/>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td align="right">
+                                       <input type="submit" name="submit" 
id="submit" value="Зберегти код">
+                               </td>
+                               <td align="left">
+                                       <input type="button" name="cancel" 
id="cancel" value="Відміна" 
onclick="document.getElementById('addCountryCode').style.display = 'none'">
+                               </td>
+                       </tr>
+               </table>
+       </form>
+</div>
+
+<!-- 
********************************************************************************************************
 -->
+<!-- ******                              END OF ADD COUNTRY CODE PANEL         
                        ****** -->
+<!-- 
********************************************************************************************************
 -->
+
+<div id="mainbloc">
+       <h1>Утворення штрих-кодів</h1>
+       <table bgcolor="#ffcc00" width="80%" cellpadding="3">
+               <tr valign="center">
+                       <td><font size="4">Утворення штрих
-кодів з інвентарних шифрів</font></td>
+               </tr>
+       </table>
+       <ul>
+               <li>Виберіть діапазон інвентарних 
шифрів. Ви можете вибрати безперервний 
діапазон або індивідуальні інвентарні 
шифри</li>
+               <li>Виберіть варіант(тип) утворення 
штрих-кодів.</li>
+               <li>Визначте розмір сторінки для 
виведення у PDF.</li>
+               <li>Залежно від розміру сторінки, 
Коха покаже Вам, як впорядкована сторінка 
для кожного штрих-коду. Ви можете визначити 
звідки запускати друк сторінки.
+               </li>
+       </ul>
+       <br>
+       <form id="formulario" method="POST" action="<!-- TMPL_VAR 
NAME="SCRIPT_NAME" -->" name="form1" onsubmit="return checkFields(this);" 
target="_blank">
+               
+               <table cellpadding="3" border=0 class="myTable">
+                       <!-- TMPL_IF NAME="ERROR" -->
+                       <tr align="center">
+                               <td colspan="2" >
+                                       <p 
style="font-size:13pt;color:red">Не вдається знайти 
інвентарні шифри у цьому діапазоні. Будь 
ласка спробуйте по іншому.</p>
+                               </td>
+                       </tr>
+                       <!-- /TMPL_IF -->
+                       <tr valign="top">
+                               <td align="right" 
style="width:50%;padding-right:20px"> 
+                                       <table style="border:0px">
+                                               <tr align="right">
+                                                       <td>Тип 
інтервалу</td>
+                                               </tr>
+                                               <tr align="right">
+                                                       <td><!-- TMPL_VAR 
NAME="RANGE_TYPE" --></td>
+                                               </tr>
+                                       </table>
+                               </td>
+                               <td style="width:50%;padding-left:20px"> 
+                                       <div id="continuous" class="panel" 
style="display:inline">
+                                               <table class="ranges">
+                                                       <tr>
+                                                               
<td>від:</td> 
+                                                               <td><input 
id="from" type="text" name="from" size="20"></td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>до:</td>
+                                                               <td><input 
id="to" type="text" name="to" size="20"></td>
+                                                       </tr>
+                                               </table>
+                                       </div> 
+                                   <div id="individuals" class="panel" 
style="display:none">
+                                               <table class="ranges">
+                                                       <tr valign="top">
+                                                               <td width="5%">
+                                                                       
Інвентарний шифр <BR>
+                                                                       <input 
id="inventaryCode" type="text" name="inventaryCode" size="20">
+                                                               <td>
+                                                               <td 
align="center">     
+                                                                       <img 
src="<!-- TMPL_VAR NAME="themelang" -->/images/rightarrow.png" 
onclick="addItem()"
+                                                                            
border="0" onclick="javascript: addItem();" style="cursor:pointer" 
style="display:table-cell">
+                                                                       <img 
src="<!-- TMPL_VAR NAME="themelang" -->/images/leftarrow.png" 
onclick="javascript: removeItem();" border="0" style="cursor:pointer" 
style="display:table-cell">
+                                                               </td>
+                                                               <td 
width="95%">                   
+                                                                       <select 
id="inventaryList" size="5" style="width:150px">
+                                                                       
</select>
+                                                                       <input 
type="hidden" id="individualCodes" name="individualCodes">                      
                                                                                
                                                                         
+                                                               </td>
+                                                       </tr>
+                                               </table>        
+                                       </div>                                  
        
+                               </td> <!-- Fin Rangos -->
+                       </tr>
+                       <tr> 
+                               <td align="right" style="padding-right:20px">
+                                       <table style="border:0px">
+                                               <tr align="right">
+                                                       <td>Код 
країни</td>
+                                               </tr>
+                                               <tr align="right">
+                                                       <td>
+                                                               <div 
style="display:inline">
+                                                                       <img 
src="<!-- TMPL_VAR NAME="themelang" -->/images/more.gif" hspace="0" vspace="0" 
border="0" style="vertical-align:bottom;cursor:pointer" 
onclick="addCountryCode();">
+                                                                       <!-- 
TMPL_VAR NAME="NUMBER_SYSTEM" -->
+                                                               </div>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </td>
+                               <td style="padding-left:20px"> 
+                                       <table style="border:0px">
+                                               <tr>
+                                                       <td>Розмір 
cторінки</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>
+                                                               <input 
type="text" name="pageType" readonly value="<!-- TMPL_VAR NAME="PAGES" -->"
+                                                                      
size="10"> <a href="/cgi-bin/koha/barcodes/printerConfig.pl">[перейти 
до налаштування друкарки]</a>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </td>
+                       </tr>
+                       <tr> 
+                               <td align="right" 
style="padding-left:20px">Текст під міткою</td>
+                               <td>
+                                       <input type="text" 
name="text_under_label" size="40" value="<!-- TMPL_VAR name="text_under_label 
-->">, якщо це поле порожнє, 
використовуватимуться автор та заголовок
+                               </td>
+                       </tr>
+                       <tr valign="top">
+                           <td colspan="2" align="center">
+                               <table style="width:50%">
+                                               <tr 
style="border-color:#000FCD">
+                                                       <th colspan="<!-- 
TMPL_VAR NAME="COL_SPAN" -->">Номер мітки, щоб запустити 
друк</th>
+                                               </tr>
+                                               <!-- TMPL_LOOP 
NAME="LABEL_TABLE" -->
+                                                       <tr style="align:left">
+                                                               <!-- TMPL_LOOP 
NAME="columns" -->
+                                                                       <td 
style="border:1px solid #000000">
+                                                                               
<input type="radio" id="label" value="<!-- TMPL_VAR NAME="tagname" -->" 
name="label" <!-- TMPL_VAR NAME="check" -->> Мітка <!-- TMPL_VAR 
NAME="labelname" --></td>
+                                                               <!-- /TMPL_LOOP 
-->
+                                                       </tr>
+                                               <!-- /TMPL_LOOP -->             
            
+                                       </table>
+                               </td>
+                       </tr>
+                       <tr valign="top">
+                           <td align="right">
+                                       <input type="submit" 
value="Утворити штрих-коди" name="B1" class="button">
+                               </td>
+                           <td align="left">
+                               <input type="reset" value="Очистити 
поля" name="B2" class="button">
+                               </td>
+                       </tr>
+               </table>                
+       </form>
+</div>
+<!-- TMPL_INCLUDE NAME="barcodes-bottom.inc" -->

Index: barcodes/printerConfig.tmpl
===================================================================
RCS file: barcodes/printerConfig.tmpl
diff -N barcodes/printerConfig.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ barcodes/printerConfig.tmpl 17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,103 @@
+<!-- TMPL_INCLUDE NAME="barcodes-top.inc" -->
+<div id="mainbloc">
+       <h1>Налаштування друкарки</h1>
+       <table bgcolor="#ffcc00" width="80%" cellpadding="3">
+               <tr valign="center">
+                       <td><font size="4">Встановлення 
конфіґурації друкарки відповідно Вашому 
системному оточенню</font></td>
+               </tr>
+       </table>
+       <ul>
+               <li>Встановити ширину і висоту 
мітки з якою Ви працюєте.</li>
+               <li>Встановити Вашу системну 
роздільну здатність (DPI) по умовчанню.</li>
+               <li>Встановити тип сторінки.</li>
+               <li>Вибрати, скільки стовпців та 
рядків розміститься на Вашому типі 
сторінки.</li>
+               <li>Встановити ліве та нижнє поля 
для сторінки, яку збираєтеся 
використовувати. Ці параметри допоможуть 
вирівняти по центру штрих-коди у мітках.</li>
+       </ul>
+       <br>
+       <form id="formulario" method="POST" action='<!-- TMPL_VAR 
NAME="SCRIPT_NAME" -->' name="form1">
+               <input type="hidden" name="saveSettings" value="1">
+               <table cellpadding="3" border=0 class="myTable">
+                       <tr>
+                               <td>
+                                       Ширина мітки (в мм)
+                               </td>
+                               <td>
+                                       Висота мітки (у мм)
+                               </td>
+                               <td>
+                                       Системна роздільна 
здатність (DPI)
+                               </td>
+                               <td>
+                                       Тип cторінки
+                               </td>
+                               <td>
+                                       Стовпці
+                               </td>
+                               <td>
+                                       Рядки
+                               </td>
+                               <td>
+                                       Поле знизу (у мм)
+                               </td>
+                               <td>
+                                       Поле зліва (у мм)
+                               </td>
+                       <tr>
+                       <tr valign="top">
+                               <td align="left"> 
+                                       <input id="labelWidth" type="text" 
name="labelWidth" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="LABEL_WIDTH" -->">
+                               </td>
+                               <td align="left"> 
+                                       <input id="labelHeigth" type="text" 
name="labelHeigth" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="LABEL_HEIGTH" -->">
+                               </td>
+                               <td align="left">
+                                       <input id="systemDpi" type="text" 
name="systemDpi" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="SYSTEM_DPI" -->">
+                               </td>
+                               <td align="left">
+                                       <select name="pageType" id="pageType" 
size="1">
+                                               <!-- TMPL_IF name="A4" -->
+                                                       <option value="A4" 
selected>A4 (21 х 29,7 см)</option>
+                                       <!-- TMPL_ELSE -->
+                                                       <option value="A4">A4 
(21 х 29,7 см)</option>
+                                               <!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="Letter" -->
+                                                       <option value="Letter" 
selected>Лист (21,59 х 27,94 см)</option>
+                                       <!-- TMPL_ELSE -->
+                                                       <option 
value="Letter">Лист (21,59 х 27,94 см)</option>
+                                               <!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="Legal" -->
+                                                       <option value="Legal" 
selected>Legal (21,59 х 35,56 см)</option>
+                                       <!-- TMPL_ELSE -->
+                                                       <option 
value="Legal">Legal (21,59 х 35,56 см)</option>
+                                               <!-- /TMPL_IF -->
+                           </select>
+                               </td>
+                           <td align="left">
+                                       <input id="columns" type="text" 
name="columns" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="COLUMNS" -->">
+                               </td>
+                           <td align="left">
+                                       <input id="rows" type="text" 
name="rows" size="5"
+                                              value="<!-- TMPL_VAR NAME="ROWS" 
-->">
+                               </td>
+                           <td align="left">
+                                       <input id="marginBottom" type="text" 
name="marginBottom" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="MARGIN_TOP" -->">
+                               </td>
+                           <td align="left">
+                                       <input id="marginLeft" type="text" 
name="marginLeft" size="5"
+                                              value="<!-- TMPL_VAR 
NAME="MARGIN_LEFT" -->">
+                               </td>
+                       </tr>
+                       <tr valign="top">
+                           <td colspan="8" align="center">
+                                       <input type="submit" 
value="Зберегти встановлення">
+                               </td>
+                       </tr>
+               </table>                
+       </form>
+</div>
+<!-- TMPL_INCLUDE NAME="barcodes-bottom.inc" -->

Index: bookshelves/addbookbybiblionumber.tmpl
===================================================================
RCS file: bookshelves/addbookbybiblionumber.tmpl
diff -N bookshelves/addbookbybiblionumber.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ bookshelves/addbookbybiblionumber.tmpl      17 Oct 2006 07:32:07 -0000      
1.1.2.1
@@ -0,0 +1,19 @@
+<!-- TMPL_INCLUDE Name="popup-top.inc" -->
+<div id="mainbloc">
+<h2 class="catalogue">Виберіть книжкову полицю</h2>
+<form action="/cgi-bin/koha/bookshelves/addbookbybiblionumber.pl" method="get">
+       <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR 
NAME="biblionumber" -->">
+       <p><label>Заголовок</label><!-- TMPL_VAR NAME="title" --></p>
+       <p><label>Автор</label><!-- TMPL_VAR NAME="author" --></p>
+       <p><label>Покласти на віртуальну 
полицю</label><!-- TMPL_VAR NAME="CGIbookshelves" --></p>
+       <p>або покласти на нову книжкову полицю 
</p>
+       <p><input type="text" name="newbookshelf" maxlength=40 size=40>
+               <select name="category">
+                       <option value="1">Приватна</option>
+                       <option value="2">Спільна</option>
+                       <option value="3">Вільна</option>
+               </select>
+       </p>
+       <input type="submit" value="Покласти на віртуальну 
полицю" class="button catalogue">
+</form>
+<!-- TMPL_INCLUDE Name="popup-bottom.inc" -->

Index: bookshelves/shelves.tmpl
===================================================================
RCS file: bookshelves/shelves.tmpl
diff -N bookshelves/shelves.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ bookshelves/shelves.tmpl    17 Oct 2006 07:32:07 -0000      1.1.2.1
@@ -0,0 +1,193 @@
+<!-- TMPL_INCLUDE Name="cat-top.inc" -->
+
+<div id="mainbloc">
+<!-- TMPL_IF Name="viewshelf" -->
+       <form action="/cgi-bin/koha/bookshelves/shelves.pl" method="post">
+               <h1 class="catalogue"><!-- TMPL_VAR NAME="shelfname" --></h1>
+
+               <div id="bloc25">
+               <h2 class="catalogue">Вміст полиці</h2>
+                       <table class="small">
+                               <tr colspan="4">
+                                       <th class="catalogue"><!-- TMPL_IF 
name="manageshelf" -->Видалити<!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF 
--></th>
+                                       <th class="catalogue">Штрих
-код</th>
+                                       <th 
class="catalogue">Заголовок</th>
+                                       <th class="catalogue">Автор</th>
+                               </tr>
+                               <!-- TMPL_LOOP Name="itemsloop" -->
+                                       <!-- TMPL_IF NAME="toggle" --><tr 
class="hilighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
+                                               <td><!-- TMPL_IF 
name="manageshelf" --><input type="checkbox" name="REM-<!-- TMPL_VAR 
NAME="itemnumber" -->"><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
+                                               <td><!-- TMPL_VAR 
NAME="barcode" --></td>
+                                               <td><a 
href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" 
-->"><!-- TMPL_VAR NAME="title" --></a></td>
+                                               <td><!-- TMPL_VAR NAME="author" 
--></td>
+                                       </tr>
+                               <!-- /TMPL_LOOP -->
+                       </table>
+                       <input type="hidden" name="shelfnumber" value="<!-- 
TMPL_VAR NAME="shelfnumber" -->">
+                       <input type="hidden" name="modifyshelfcontents" 
value="1">
+                       <input type="hidden" name="viewshelf" value="<!-- 
TMPL_VAR NAME="shelfnumber" -->">
+                       <!-- TMPL_IF name="manageshelf" -->
+                               <input type="submit" value="Видалити 
помічені елементи" class="button catalogue">
+                       <!-- /TMPL_IF -->
+               </div>
+       </form>
+
+       <!-- TMPL_IF name="manageshelf" -->
+       <div id="bloc25">
+               <form action="/cgi-bin/koha/bookshelves/shelves.pl" 
method="post">
+               <h2 class="catalogue">Додати книгу штрих
овим кодом</h2>
+                       <input type="hidden" name="shelfnumber" value="<!-- 
TMPL_VAR NAME="shelfnumber" -->">
+                       <input type="hidden" name="modifyshelfcontents" 
value="1">
+                       <input type="hidden" name="viewshelf" value="<!-- 
TMPL_VAR NAME="shelfnumber" -->">
+                       <input name="addbarcode">
+                       <input type="hidden" name="modifyshelfcontents" 
value="1">
+                       <input type="hidden" name="shelfnumber" value="<!-- 
TMPL_VAR NAME="shelfnumber" -->">
+                       <input type="submit" value="Зберегти" 
class="button catalogue">
+               </form>
+       </div>
+       <!-- /TMPL_IF -->
+       <div id="bloc25">
+               <a href="/cgi-bin/koha/bookshelves/shelves.pl" class="button 
catalogue">Список полиць</a>
+       </div>
+<!-- TMPL_ELSE -->
+       <!-- TMPL_IF Name="shelves" -->
+               <h1 class="catalogue">Книжкові полиці</h1>
+               <!-- TMPL_IF Name="status1" -->
+                       <p class="problem"><!-- TMPL_VAR NAME="string1" --><p>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_LOOP Name="paramsloop" -->
+                       <!-- TMPL_IF Name="status" -->
+                               <p class="problem"><!-- TMPL_VAR NAME="string" 
--><p>
+                       <!-- /TMPL_IF -->
+               <!-- /TMPL_LOOP -->
+               <div id="bloc25">
+                                       <h2 class="catalogue">Виберіть 
полицю для видалення</h2>
+                                       <form 
action="/cgi-bin/koha/bookshelves/shelves.pl" method="post">
+                                       <input type="hidden" name="shelves" 
value="1">
+                                               <!-- TMPL_LOOP 
Name="shelvesloop" -->
+                                               <!-- TMPL_IF name="canmanage" 
-->
+                                               <p>
+                                                       <label>
+                                                               <input 
type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->">
+                                                       </label>
+                                                               <a 
href="shelves.pl?viewshelf=<!-- TMPL_VAR name="shelf" -->"><!-- TMPL_VAR 
NAME="shelfname" --></a> (<!-- TMPL_VAR NAME="shelfbookcount" --> 
одиниц(я/і))
+                                               </p>
+                                               <!-- /TMPL_IF -->
+                                               <!-- /TMPL_LOOP -->
+                                       <p>
+                                               <input type="submit" 
value="Видалити полиці" class="button catalogue">
+                                       </p>
+                                       </form>
+               </div>
+               <div id="bloc25">
+                       <form action="/cgi-bin/koha/bookshelves/shelves.pl" 
method="post">
+                               <input type="hidden" name="shelves" value="1">
+                               <h2 class="catalogue">Додати 
полицю</h2>
+                               <p><label>Найменування 
</label><input type="text" name="addshelf" size="25"></p>
+                               <p><label>Власник </label><input 
type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- 
TMPL_VAR NAME="loggedinusername" --></p>
+                               <p><label>Категорія</label>
+                                       <select name="category">
+                                               <option 
value="1">Приватна</option>
+                                               <option 
value="2">Спільна</option>
+                                               <option 
value="3">Вільна</option>
+                                       </select>
+                               </p>
+                               <p> <li>приватною книжковою 
полицею керуєте Ви &amp; можете бачити лише 
Ви.</li>
+                                       <li> Спільну може 
бачити кожен, але складаєте тільки Ви.</li>
+                                       <li> Вільною керує 
будь-який користувач.</li>
+                               </p>
+                               <p>
+                                       <input type="submit" 
value="Додати нову полицю" class="button catalogue">
+                                       <a 
href="/cgi-bin/koha/bookshelves/shelves.pl" class="button 
catalogue">повернутись до списку полиць</a>
+                               </p>
+
+                       </form>
+               </div>
+       <!-- TMPL_ELSE -->
+               <div id="bloc25">
+                       <h2 class="catalogue">Список полиць</h2>
+                       <table class="small">
+                               <tr>
+                                       <th class="catalogue">Назва 
полиці</th>
+                                       <th 
class="catalogue">Категорія</th>
+                                       <th class="catalogue">Обсяг</th>
+                                       <th 
class="catalogue">Змінити</th>
+                               </tr>
+                               <!-- TMPL_LOOP Name="shelvesloop" -->
+                               <!-- TMPL_IF NAME="toggle" --><tr 
class="hilighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
+                                       <td>
+                                               <a 
href="/cgi-bin/koha/bookshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" 
-->">
+                                                       <!-- TMPL_VAR 
NAME="shelfname" -->
+                                               </a>
+                                       </td>
+                                       <td>
+                                               <!-- TMPL_IF NAME="category1" 
-->
+                                                       Приватна
+                                               <!-- /TMPL_IF -->
+                                               <!-- TMPL_IF NAME="category2" 
-->
+                                                       Спільна
+                                               <!-- /TMPL_IF -->
+                                               <!-- TMPL_IF NAME="category3" 
-->
+                                                       Вільна
+                                               <!-- /TMPL_IF -->
+                                       </td>
+                                       <td>
+                                               <!-- TMPL_VAR 
NAME="shelfbookcount" --> одиниц(я/і)
+                                       </td>
+                                       <!-- TMPL_IF name="mine" -->
+                                               <td>
+                                                       <a 
href="/cgi-bin/koha/bookshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR 
NAME="shelf" -->" class="button catalogue">Змінити</a> <!-- TMPL_VAR 
name="surname" --><!-- TMPL_VAR name="firstname" -->
+                                               </td>
+                                               <!-- TMPL_ELSE -->
+                                               <td>&nbsp;</td>
+                                       <!-- /TMPL_IF -->
+                               </tr>
+                               <!-- /TMPL_LOOP -->
+                       </table>
+               </div>
+               <div id="bloc25">
+                       <a 
href="/cgi-bin/koha/bookshelves/shelves.pl?shelves=1" class="button 
catalogue">Додавання чи видалення книжкових 
полиць</a>
+               </div>
+       <!-- /TMPL_IF -->
+<!-- /TMPL_IF -->
+
+<!-- TMPL_IF name="edit" -->
+       <div id="bloc25">
+               <form method="post" 
action="/cgi-bin/koha/bookshelves/shelves.pl">
+                       <input type="hidden" name="op" value="modifsave">
+                       <h2 class="catalogue">Видозміна 
полиці</h2>
+                       <input type="hidden" name="shelfnumber" value="<!-- 
TMPL_VAR name="shelfnumber" -->">
+                       <p><label>Найменування </label><input 
type="text" name="shelfname" size="25" value="<!-- TMPL_VAR 
name="shelfname"-->"></p>
+                       <p><label>Власник </label><input type="hidden" 
name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR 
NAME="loggedinusername" --></p>
+                       <p><label>Категорія</label>
+                               <select name="category">
+                                       <!-- TMPL_IF name="category1" -->
+                                               <option value="1" 
selected>Приватна</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option 
value="1">Приватна</option>
+                                       <!-- /TMPL_IF -->
+                                       <!-- TMPL_IF name="category2" -->
+                                               <option value="2" 
selected>Спільна</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option 
value="2">Спільна</option>
+                                       <!-- /TMPL_IF -->
+                                       <!-- TMPL_IF name="category3" -->
+                                               <option value="3" 
selected>Вільна</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option 
value="3">Вільна</option>
+                                       <!-- /TMPL_IF -->
+                               </select>
+                       </p>
+                       <p> <li>приватною книжковою 
полицею керуєте Ви &amp; можете бачити лише 
Ви.</li>
+                               <li> Спільну може бачити 
кожен, але складаєте тільки Ви.</li>
+                               <li> Вільною керує 
будь-який користувач.</li>
+                       </p>
+                       <p>
+                               <input type="submit" value="Зберегти" 
class="button catalogue">
+                       </p>
+
+               </form>
+       </div>
+<!-- /TMPL_IF -->
+</div>
+<!-- TMPL_INCLUDE Name="cat-bottom.inc" -->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]