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/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: Sat, 25 Feb 2006 02:09:04 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <address@hidden> 06/02/25 02:09:04

Modified files:
        koha-tmpl/intranet-tmpl/npl/en/acqui.simple: addbiblio.tmpl 

Log message:
        MAJOR BUGFIX: previously, when adding a tag, subfield order always 
started
        with 'a' because that was hardcoded into the script. Now, order is 
governed
        by the first defined subfield in the framework.

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.9&tr2=1.4.2.10&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.9 
koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl:1.4.2.10
--- koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl:1.4.2.9     
Wed Feb 22 16:06:36 2006
+++ koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl     Sat Feb 
25 02:09:04 2006
@@ -17,6 +17,7 @@
 
 <div class="tabitem">          <input type="hidden" name="op" 
value="addbiblio" />
                <input type="hidden" name="addfield_field" />
+               <input type="hidden" name="addfield_subfield" />
                <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR 
NAME="frameworkcode" -->" />
                <input type="hidden" name="oldbiblionumber" value="<!-- 
TMPL_VAR NAME="oldbiblionumber" -->" />
                <!-- TMPL_IF name="bibid" -->
@@ -83,7 +84,7 @@
                                <!-- /TMPL_UNLESS -->
                                <!-- TMPL_VAR NAME="tag_lib" -->
                                <!-- TMPL_IF name="repeatable" -->
-                                       <a href="javascript:AddField('<!-- 
TMPL_VAR NAME="tag" -->')">+</a>
+                                       <a href="javascript:AddField('<!-- 
TMPL_VAR NAME="tag" --><!-- TMPL_VAR NAME="tagfirstsubfield"-->')">+</a>
                                <!-- /TMPL_IF -->
                                </p>
                        <!-- /TMPL_IF -->
@@ -668,9 +669,10 @@
   window.location = "addbiblio.pl?oldbiblionumber=<!--TMPL_VAR 
Name="oldbiblionumber"-->&frameworkcode="+fwk;
 }
 
-function AddField(field) {
+function AddField(field,subfield) {
        document.forms['f'].op.value = "addfield";
        document.forms['f'].addfield_field.value=field;
+       document.forms['f'].addfield_subfield.value=subfield;
        document.f.submit();
 }
 




reply via email to

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