koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities auth


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities authorities.tmpl,1.6.2.5,1.6.2.6
Date: Tue, 25 Oct 2005 06:09:54 -0700

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12555/koha-tmpl/intranet-tmpl/default/en/authorities

Modified Files:
      Tag: rel_2_2
        authorities.tmpl 
Log Message:
* adding a feature to enable reordering of subfields in MARC editor (can be 
considered as a bug ? at least one of my libraries think that yes !)
(authority MARC editor)

Index: authorities.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities/authorities.tmpl,v
retrieving revision 1.6.2.5
retrieving revision 1.6.2.6
diff -C2 -r1.6.2.5 -r1.6.2.6
*** authorities.tmpl    23 Sep 2005 09:50:08 -0000      1.6.2.5
--- authorities.tmpl    25 Oct 2005 13:09:52 -0000      1.6.2.6
***************
*** 48,52 ****
                <p>
                        <label class="labelsubfield">
!                               <b><!-- TMPL_VAR NAME="subfield" --></b>
                                <!-- TMPL_IF name="mandatory" --><b><!-- 
/TMPL_IF -->
                                <!-- TMPL_VAR NAME="marc_lib" -->
--- 48,57 ----
                <p>
                        <label class="labelsubfield">
!                               <!-- TMPL_UNLESS name="hide_marc" -->
!                                       <img src="<!-- TMPL_VAR 
NAME="themelang" -->/images/prev.gif" onClick="javascript:upSubfield('<!-- 
TMPL_VAR name="index" -->')">
!                                               <input type="text" 
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" size="1" 
maxlength="1">
!                               <!-- TMPL_ELSE -->
!                                               <input type="hidden" 
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->">
!                               <!-- /TMPL_UNLESS -->
                                <!-- TMPL_IF name="mandatory" --><b><!-- 
/TMPL_IF -->
                                <!-- TMPL_VAR NAME="marc_lib" -->
***************
*** 55,59 ****
                        <!-- TMPL_VAR NAME="marc_value" -->
                        <input type="hidden" name="tag" value="<!-- TMPL_VAR 
NAME="tag" -->">
-                       <input type="hidden" name="subfield" value="<!-- 
TMPL_VAR NAME="subfield" -->">
                        <input type="hidden" name="mandatory" value="<!-- 
TMPL_VAR NAME="mandatory" -->">
                        <input type="hidden" name="kohafield" value="<!-- 
TMPL_VAR NAME="kohafield" -->">
--- 60,63 ----
***************
*** 183,186 ****
--- 187,206 ----
        document.f.submit();
  }
+ 
+ function upSubfield(index) {
+       temp = document.forms['f'].field_value[index-1].value;
+       
document.forms['f'].field_value[index-1].value=document.forms['f'].field_value[index].value;
+       document.forms['f'].field_value[index].value= temp;
+       temp = document.forms['f'].subfield[index-1].value;
+       
document.forms['f'].subfield[index-1].value=document.forms['f'].subfield[index].value;
+       document.forms['f'].subfield[index].value = temp;
+       temp = document.forms['f'].mandatory[index-1].value;
+       
document.forms['f'].mandatory[index-1].value=document.forms['f'].mandatory[index].value;
+       document.forms['f'].mandatory[index].value = temp;
+       temp = document.forms['f'].kohafield[index-1].value;
+       
document.forms['f'].kohafield[index-1].value=document.forms['f'].kohafield[index].value;
+       document.forms['f'].kohafield[index].value = temp;
+ }
+ 
  </script>
  </body>




reply via email to

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