[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha acqui.simpleaddbiblio.pl koha-tmpl/intrane... [rel_2_2]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha acqui.simpleaddbiblio.pl koha-tmpl/intrane... [rel_2_2] |
Date: |
Fri, 09 Jun 2006 14:29:05 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_2_2
Changes by: paul poulain <tipaul> 06/06/09 14:29:05
Modified files:
acqui.simple : addbiblio.pl
koha-tmpl/intranet-tmpl/default/en/acqui.simple: addbiblio.tmpl
koha-tmpl/intranet-tmpl/npl/en/acqui.simple: addbiblio.tmpl
Log message:
[IMPORTANT]
2 things in this commit
- npl templates worked well for cloneSubfield, default one didn't. I
couldn't understand why, so I ported npl template to default & just updated the
stylesheet
- npl templates were awfully indented, so I indented them a little bit
- I thought for months that the idea of 10 tabs passed separately was
crazy. So I fixed it : now there is just 1 (ONE) tab described in templates,
that is looped by BIG_LOOP. The BIG_LOOP is filled by the build_tabs.
Works the same way as previously, except there is just 1 tab described
in templates !!!
Things still to do :
- making cloneTag work correctly
- handle authorities popup, that is broken
- handle authorities reporting, that is broken too.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui.simple/addbiblio.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.52.2.41&r2=1.52.2.42
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.33.2.20&r2=1.33.2.21
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.4.2.15&r2=1.4.2.16
Patches:
Index: acqui.simple/addbiblio.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/Attic/addbiblio.pl,v
retrieving revision 1.52.2.41
retrieving revision 1.52.2.42
diff -u -b -r1.52.2.41 -r1.52.2.42
--- acqui.simple/addbiblio.pl 2 Jun 2006 15:32:52 -0000 1.52.2.41
+++ acqui.simple/addbiblio.pl 9 Jun 2006 14:29:05 -0000 1.52.2.42
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: addbiblio.pl,v 1.52.2.41 2006/06/02 15:32:52 tipaul Exp $
+# $Id: addbiblio.pl,v 1.52.2.42 2006/06/09 14:29:05 tipaul Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -264,6 +264,10 @@
from authorised_values
where category=? order by lib");
+ # in this array, we will push all the 10 tabs
+ # to avoid having 10 tabs in the template : they will all be in the same
BIG_LOOP
+ my @BIG_LOOP;
+
# loop through each tab 0 through 9
for (my $tabloop = 0; $tabloop <= 9; $tabloop++) {
my @loop_data = ();
@@ -368,8 +372,15 @@
}
}
}
- $template->param($tabloop."XX" =>address@hidden);
+ if ($#loop_data >=0) {
+ my %big_loop_line;
+ $big_loop_line{number}=$tabloop;
+ address@hidden;
+ push @BIG_LOOP,\%big_loop_line;
+ }
+# $template->param($tabloop."XX" =>address@hidden);
}
+ $template->param(BIG_LOOP => address@hidden);
}
@@ -482,6 +493,8 @@
my @tags = $input->param('tag');
my @subfields = $input->param('subfield');
my @values = $input->param('field_value');
+ use Data::Dumper;
+ warn "DUMP : ".Dumper(@values);
# build indicator hash.
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
Index: koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.33.2.20
retrieving revision 1.33.2.21
diff -u -b -r1.33.2.20 -r1.33.2.21
--- koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl 2 Jun
2006 15:26:57 -0000 1.33.2.20
+++ koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl 9 Jun
2006 14:29:05 -0000 1.33.2.21
@@ -1,632 +1,85 @@
<!-- TMPL_INCLUDE NAME="marc-top.inc" -->
+ <form method="post" name="f" id="f" action="addbiblio.pl">
+<h1 class="catalogue"><!-- TMPL_IF NAME="oldbiblionumtagfield" -->Edit MARC
Record Number <!-- TMPL_VAR name="oldbiblionumber" --><!-- TMPL_ELSE -->Add
MARC Record<!-- /TMPL_IF --> With Framework : <!--TMPL_VAR Name="framework"
--></h1>
+
<div class="tabbed">
- <form method="post" name="f">
- <h1 class="catalogue">Biblionumber : <!-- TMPL_VAR
NAME="oldbiblionumber" --> With Framework :<!--TMPL_VAR Name="framework"
--></b></h1>
- <p>
- <input type="hidden" name="op" value="addbiblio">
- <input type="hidden" name="addfield_field">
- <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR
NAME="frameworkcode" -->">
- <input type="hidden" name="oldbiblionumber" value="<!--
TMPL_VAR NAME="oldbiblionumber" -->">
+ <input type="hidden" name="op" value="addbiblio" />
+ <input type="hidden" name="addfield_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="Save"
onclick="Check(this.form)" accesskey="w" class="button catalogue">
+ <input type="button" value="Save Bibliographic Record
and go to Items" onclick="Check(this.form);" accesskey="w" class="button
catalogue" />
<!-- TMPL_ELSE -->
- <input type="button" value="Add biblio"
onclick="Check(this.form)" accesskey="w" class="button catalogue">
+ <input type="button" value="Add Bibliographic Record
and go to Items" onclick="Check(this.form);" accesskey="w" class="button
catalogue" />
<!-- /TMPL_IF -->
- <a href="javascript:PopupZ3950()" class="button
catalogue">z3950 search</a>
- </p>
-</div>
+ <input type="button" value="z39.50 Search" class="button catalogue"
onclick="PopupZ3950(); return false;" / ></div>
+
<div class="tabs">
- <!-- TMPL_IF name="0XX" -->
- <a href="javascript:active(0)" id="link0">0</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="1XX" -->
- <a href="javascript:active(1)" id="link1">1</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="2XX" -->
- <a href="javascript:active(2)" id="link2">2</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="3XX" -->
- <a href="javascript:active(3)" id="link3">3</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="4XX" -->
- <a href="javascript:active(4)" id="link4">4</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="5XX" -->
- <a href="javascript:active(5)" id="link5">5</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="6XX" -->
- <a href="javascript:active(6)" id="link6">6</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="7XX" -->
- <a href="javascript:active(7)" id="link7">7</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="8XX" -->
- <a href="javascript:active(8)" id="link8">8</a>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF name="9XX" -->
- <a href="javascript:active(9)" id="link9">9</a>
- <!-- /TMPL_IF -->
+ <!-- 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>
- <div name="0XX" id="0XX" class="tab" style="visibility:visible">
+<! -- 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="problem">
- <p>Duplicate suspected with <a
href='javascript:openWindow("../MARCdetail.pl?bib=<!-- TMPL_VAR
name="duplicatebiblionumber" -->&popup=1", "Duplicate biblio")' class="button
catalogue"><!-- TMPL_VAR name="duplicatetitle" --></a></p>
+ <div class="error">
+ <p>Is this a duplicate of <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>You must either :</p>
<ul>
- <p><input type="checkbox" value=1
name="confirm_not_duplicate">confirm it's not a duplicate (and click on Add
biblio again)</p>
- <p>Go to <a
href="additem.pl?biblionumber=<!-- TMPL_VAR name="duplicatebibid" -->"
class="button catalogue">edit items</a> from this duplicate biblio</p>
+ <li>If it <em>is</em> a duplicate, <a
href="additem.pl?biblionumber=<!-- TMPL_VAR name="duplicatebibid" -->">Edit
Items</a> of the existing record.</li>
+ <li>If not, click to <input type="hidden"
value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> <a
href="#" onclick="confirmnotdup(); return false;">Confirm it's not a
duplicate</a></li>
</ul>
</div>
<!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="0XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="1XX" id="1XX" class="tab">
- <!-- TMPL_LOOP NAME="1XX" -->
- <div style=";" id="tag<!-- TMPL_VAR name="tag"-->">
+ <!-- TMPL_LOOP NAME="innerloop" -->
<!-- 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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
+ <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"
name="indicator" value="<!-- TMPL_VAR NAME="indicator" -->">
+ <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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
<!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
+ <!-- TMPL_VAR NAME="tag_lib" -->
<!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="2XX" id="2XX" class="tab">
- <!-- TMPL_LOOP NAME="2XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
+ <!-- TMPL_IF name="repeatable" --><a
href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF
-->
</p>
<!-- /TMPL_IF -->
+ <div>
<!-- TMPL_LOOP NAME="subfield_loop" -->
<!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" id="label<!-- TMPL_VAR name="index" -->"
onclick="unHideSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->','label<!-- TMPL_VAR name="index" -->')">
+ <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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="3XX" id="3XX" class="tab">
- <!-- TMPL_LOOP NAME="3XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="4XX" id="4XX" class="tab">
- <!-- TMPL_LOOP NAME="4XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="5XX" id="5XX" class="tab">
- <!-- TMPL_LOOP NAME="5XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="6XX" id="6XX" class="tab">
- <!-- TMPL_LOOP NAME="6XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="7XX" id="7XX" class="tab">
- <!-- TMPL_LOOP NAME="7XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="8XX" id="8XX" class="tab">
- <!-- TMPL_LOOP NAME="8XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
- <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" 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>
-
- <div name="9XX" id="9XX" class="tab">
- <!-- TMPL_LOOP NAME="9XX" -->
- <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='#DDDDDD;'" type="text" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> -
- <!-- TMPL_ELSE -->
- <input tabindex="1" type="hidden"
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="javascript:cloneTag('tag<!-- TMPL_VAR NAME="tag" -->')">+</a><!--
/TMPL_IF -->
- </p>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="subfield_loop" -->
- <!-- TMPL_IF NAME="visibility" -->
- <a tabindex="1" style="color: grey; font-size:
80%; cursor: crosshair;" 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' -->"
name="subfield"><p>
+ <div style="<!-- TMPL_VAR NAME='visibility' -->;" id="subfield<!--
TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='index' -->">
+ <p>
<!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
- <label class="labelsubfield">
+ <label <!-- TMPL_IF NAME="fixedfield" -->
style="display:none;" <!-- /TMPL_IF --> class="labelsubfield">
<!-- /TMPL_UNLESS -->
<!-- TMPL_UNLESS name="hide_marc" -->
- <img src="<!-- TMPL_VAR
NAME="themelang" -->/images/up.png" style="cursor:crosshair"
onclick="upSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')"/>
- <input title="<!-- TMPL_VAR
NAME="marc_lib_plain" -->" style=" border:0;" type="text" name="subfield"
value="<!-- TMPL_VAR NAME="subfield" -->" size="1" maxlength="1" class="flat"
DISABLE READONLY tabindex=-1 />
+ <img <!-- 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_IF name="mandatory" --><b><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
- <!-- TMPL_IF name="mandatory" -->
- *</b>
- <!-- /TMPL_IF -->
+ <!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF -->
</label>
<!-- /TMPL_UNLESS -->
<!-- TMPL_VAR NAME="marc_value" -->
@@ -643,9 +96,8 @@
<!-- /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" -->">
@@ -670,32 +122,40 @@
<!-- /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 openAuth(tagid,authtype,subfieldid) {
- defaultid=document.getElementById(subfieldid);
- newin=window.open("../authorities/auth_finder.pl?authtypecode="+
authtype+ "&index="+ subfieldid+ "&tagid="+tagid+"&result=", "value
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
+function confirmnotdup(){
+ document.getElementById("confirm_not_duplicate").value = 1;
+ var checkform = document.getElementById("f");
+ Check(checkform);
}
-
function active(numlayer)
{
- for (i=0; i < 10 ; i++ ) {
+ for (i=0; i <= 9 ; i++ ) {
ong = i+"XX";
link = "link"+i;
if (numlayer==i) {
+ with(document){
document.getElementById(ong).style.visibility="visible";
- document.getElementById(link).style.color="#FFFFFF";
+ document.getElementById(link).style.color="#000066";
+
document.getElementById(link).style.backgroundColor="#FFFFCC";
+ }
} else {
+ with(document){
document.getElementById(ong).style.visibility="hidden";
- if (document.getElementById(link))
- {
-
document.getElementById(link).style.color="#000000";
+ 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++) {
@@ -716,7 +176,6 @@
// 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";
f.field_value[i].style.backgroundColor="#FF0000";
total_missing_mandatory_subfields++;
if (f.field_value[i].parentNode.tagName == "B")
@@ -730,8 +189,6 @@
}
} else {
-// alert("I = "+i);
-//
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
f.field_value[i].style.backgroundColor="#FFFFFF";
}
}
@@ -755,7 +212,6 @@
missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " +
f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
}
-
//document.getElementById("error"+i).style.backgroundColor="#ffff00";
f.field_value[i].style.backgroundColor="#FFFF00";
}
}
@@ -780,32 +236,51 @@
document.forms['f'].submit();
}
}
-function Dopop(link,subfieldid) {
- defaultid=document.getElementById(subfieldid);
- alert("DEF"+defaultid);
- subfield_value=defaultid.getElementsByTagName("subfield_value");;
- alert("DEF"+subfield_value);
- newin=window.open(link+"&result="+subfield_value.value,"value
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
+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="";
+ var error = 0;
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) {
+ 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" &&
document.forms['f'].field_value[i].value.length>0) {
+ 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"
&&document.forms['f'].field_value[i].value.length>0) {
+ 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" && document.forms['f'].field_value[i].value.length>0) {
+ }
+ 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++;
}
}
- newin=window.open("../z3950/search.pl?bibid=<!-- TMPL_VAR NAME="bibid"
-->"+strQuery,"z3950search",'width=800,height=400,toolbar=false,scrollbars=yes');
+ }
+ 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;
@@ -841,15 +316,6 @@
original.parentNode.insertBefore( clone, original.nextSibling);
}
-function cloneTag(index) {
- var original = document.getElementById(index);
- var clone = original.cloneNode(true);
- clone.setAttribute("id", index + index);
- // OK, now rename the id of the
- original.parentNode.insertBefore( clone, original.nextSibling);
-
-}
-
function upSubfield(index) {
var original = document.getElementById(index);
var previous = original.previousSibling;
Index: koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.4.2.15
retrieving revision 1.4.2.16
diff -u -b -r1.4.2.15 -r1.4.2.16
--- koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl 4 Apr 2006
08:18:14 -0000 1.4.2.15
+++ koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl 9 Jun 2006
14:29:05 -0000 1.4.2.16
@@ -61,8 +61,16 @@
</div>
<! -- RESET PAGINATION -->
-<div name="0XX" id="0XX" class="tab" style="visibility:visible">
-<!-- TMPL_IF name="duplicatebiblionumber" -->
+<!-- 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>Is this a duplicate of <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>You must either :</p>
@@ -71,43 +79,21 @@
<li>If not, click to <input
type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate"
/> <a href="#" onclick="confirmnotdup(); return false;">Confirm it's not a
duplicate</a></li>
</ul>
</div>
-<!-- /TMPL_IF -->
-<!-- TMPL_LOOP NAME="0XX" -->
-<!-- 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label <!-- TMPL_IF NAME="fixedfield" -->
style="display:none;" <!-- /TMPL_IF --> class="labelsubfield"> <!--
/TMPL_UNLESS --><!-- TMPL_UNLESS name="hide_marc" --><img <!-- 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="1XX" id="1XX" class="tab">
-<!-- TMPL_LOOP NAME="1XX" -->
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_UNLESS -->
+ <!-- TMPL_LOOP NAME="innerloop" -->
<!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
+ <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" name="indicator"
value="<!-- TMPL_VAR NAME="indicator" -->">
+ <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_UNLESS NAME="advancedMARCEditor" --><!-- TMPL_VAR
NAME="tag_lib" --><!-- /TMPL_UNLESS -->
<!-- TMPL_IF name="repeatable" --><a
href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF
-->
</p>
<!-- /TMPL_IF -->
@@ -119,23 +105,20 @@
</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 class="labelsubfield">
+ <label <!-- TMPL_IF NAME="fixedfield" -->
style="display:none;" <!-- /TMPL_IF --> class="labelsubfield">
<!-- /TMPL_UNLESS -->
<!-- TMPL_UNLESS name="hide_marc" -->
- <img 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=" border:0;" type="text" name="subfield"
value="<!-- TMPL_VAR NAME="subfield" -->" size="1" maxlength="1" class="flat"
DISABLE READONLY tabindex=-1 />
+ <img <!-- 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_IF name="mandatory" --><b><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
- <!-- TMPL_IF name="mandatory" -->
- *</b>
- <!-- /TMPL_IF -->
+ <!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF -->
</label>
<!-- /TMPL_UNLESS -->
<!-- TMPL_VAR NAME="marc_value" -->
@@ -147,210 +130,13 @@
<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>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="2XX" id="2XX" class="tab">
-<!-- TMPL_LOOP NAME="2XX" -->
-<!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="3XX" id="3XX" class="tab">
-<!-- TMPL_LOOP NAME="3XX" -->
-<!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="4XX" id="4XX" class="tab">
-<!-- TMPL_LOOP NAME="4XX" -->
- <!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="5XX" id="5XX" class="tab">
-<!-- TMPL_LOOP NAME="5XX" -->
-<!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="6XX" id="6XX" class="tab">
-<!-- TMPL_LOOP NAME="6XX" -->
-<!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="7XX" id="7XX" class="tab">
-<!-- TMPL_LOOP NAME="7XX" -->
- <!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="8XX" id="8XX" class="tab">
-<!-- TMPL_LOOP NAME="8XX" -->
- <!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
-<!-- /TMPL_LOOP -->
-</div>
-<div name="9XX" id="9XX" class="tab">
-<!-- TMPL_LOOP NAME="9XX" -->
- <!-- 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" name="indicator"
size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" class="flat">
-
-<!-- TMPL_ELSE -->
-<input tabindex="1" type="hidden" 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="javascript:AddField('<!--
TMPL_VAR NAME="tag" -->')">+</a><!-- /TMPL_IF -->
-</p>
-<!-- /TMPL_IF -->
-<div><!-- 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' -->"><!-- TMPL_UNLESS
NAME="advancedMARCEditor" --><label class="labelsubfield"> <!-- /TMPL_UNLESS
--><!-- TMPL_UNLESS name="hide_marc" --><img 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=" 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" -->"/>
-</div><!-- /TMPL_LOOP --></div>
<!-- /TMPL_LOOP -->
-</div>
<div name="hidden" id="hidden" class="tab">
<!-- TMPL_LOOP NAME="hidden_loop" -->
<input type="hidden" name="tag" value="<!--
TMPL_VAR NAME="tag" -->">
@@ -429,21 +215,20 @@
// 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";
+
f.field_value[i].style.backgroundColor="#FF0000";
total_missing_mandatory_subfields++;
- if
(document.getElementById("error"+i).parentNode.tagName == "B")
+ if (f.field_value[i].parentNode.tagName == "B")
{
-
missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML +
" (tab " +
document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1)
+ ")");
+
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(document.getElementById("error"+i).innerHTML +
" (tab " +
document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1)
+ ")");
+
missing_mandatory_subfields.push(f.field_value[i].innerHTML + " (tab " +
f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
}
} else {
-// alert("I = "+i);
-
document.getElementById("error"+i).style.backgroundColor="#FFFFCC";
+ f.field_value[i].style.backgroundColor="#FFFFFF";
}
}
@@ -457,16 +242,16 @@
if (seen_mandatory_tag_p[j] != 1) {
seen_mandatory_tag_p[j] = 1;
total_missing_mandatory_tags++;
- if (document.getElementById("error"+i).parentNode.tagName
== "B")
+ if (f.field_value[i].parentNode.tagName == "B")
{
-
missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + "
(tab " +
document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1)
+ ")");
+
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(document.getElementById("error"+i).innerHTML + "
(tab " +
document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1)
+ ")");
+
missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " +
f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
}
-
document.getElementById("error"+i).style.backgroundColor="#ffff00";
+ f.field_value[i].style.backgroundColor="#FFFF00";
}
}
- [Koha-cvs] koha acqui.simpleaddbiblio.pl koha-tmpl/intrane... [rel_2_2],
paul poulain <=