[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simpl... [rel_2_2]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simpl... [rel_2_2] |
Date: |
Tue, 14 Mar 2006 17:57:32 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <address@hidden> 06/03/14 17:57:32
Modified files:
koha-tmpl/intranet-tmpl/npl/en/acqui.simple: addbiblio.tmpl
Log message:
adds the ability to 'hide' and 'make visible' subfields in the marc
editor. Relies on the MARC Framework's 'hidden' being set to '2'.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl.diff?only_with_tag=rel_2_2&tr1=1.4.2.11&tr2=1.4.2.12&r1=text&r2=text
Patches:
Index: koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl
diff -u
koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl:1.4.2.11
koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl:1.4.2.12
--- koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl:1.4.2.11
Sat Feb 25 02:21:45 2006
+++ koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl Tue Mar
14 17:57:32 2006
@@ -88,6 +88,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -107,6 +111,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -129,6 +134,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -148,6 +157,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -170,6 +180,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -189,6 +203,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -211,6 +226,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -230,6 +249,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -252,6 +272,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -271,6 +295,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -293,6 +318,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -312,6 +341,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -334,6 +364,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -353,6 +387,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -375,6 +410,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -394,6 +433,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -416,6 +456,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -435,6 +479,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -457,6 +502,10 @@
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
+ <!-- TMPL_IF NAME="visibility" -->
+ <img src="<!-- TMPL_VAR NAME="themelang"
-->/images/up.png" onclick="unHideSubfield('subfield<!-- TMPL_VAR name="index"
-->')">
+ <!-- /TMPL_IF -->
+ <div style="<!-- TMPL_VAR NAME='visibility'
-->;" id="subfield<!-- TMPL_VAR NAME='index' -->">
<p>
<label class="labelsubfield">
<!-- TMPL_UNLESS name="hide_marc" -->
@@ -476,6 +525,7 @@
<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 -->
<!-- /tmpl_loop -->
</div>
@@ -692,6 +742,12 @@
//
document.forms['f'].kohafield[index-1].value=document.forms['f'].kohafield[index].value;
// document.forms['f'].kohafield[index].value = temp;
}
+function unHideSubfield(index) {
+ //alert(index);
+ subfield = document.getElementById(index);
+ subfield.style.display = 'block';
+
+}
</script>
</body>
</html>