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/value_builder un


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/value_builder unimarc_field_100.tmpl,1.1,1.2 unimarc_field_225a.tmpl,1.2,1.3 unimarc_field_60X.tmpl,1.1,1.2 unimarc_field_700-4.tmpl,1.1,1.2 unimarc_field_700_701_702.tmpl,1.1,1.2
Date: Tue, 09 Dec 2003 02:29:33 -0800

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder
In directory 
sc8-pr-cvs1:/tmp/cvs-serv27815/koha-tmpl/intranet-tmpl/default/en/value_builder

Modified Files:
        unimarc_field_100.tmpl unimarc_field_225a.tmpl 
        unimarc_field_60X.tmpl unimarc_field_700-4.tmpl 
        unimarc_field_700_701_702.tmpl 
Log Message:
templates modified : ALL <TMPL_* XX> have been replaced by <!-- TMPL_* XX -->, 
because it's strict html compliant, and HTML::TreeBuilder deals better with 
this form.

Index: unimarc_field_100.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder/unimarc_field_100.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** unimarc_field_100.tmpl      12 Nov 2002 15:58:43 -0000      1.1
--- unimarc_field_100.tmpl      9 Dec 2003 10:28:58 -0000       1.2
***************
*** 8,20 ****
        <tr>
                <td>Date d'enregistrement </td>
!               <td><input type="text" name="f1" maxlength=8 size=8 
value="<TMPL_VAR name="f1">"></td>
        </tr>
        <tr>
                <td>Code date publication </td><td><select name="f2" size="1">
!               <option value="a" <TMPL_IF 
name="f2a">SELECTED</TMPL_IF>>périodique en cours</option>
!                       <option value="b" <TMPL_IF 
name="f2b">SELECTED</TMPL_IF>>périodique mort</option>
!                       <option value="c" <TMPL_IF 
name="f2c">SELECTED</TMPL_IF>>périodique d'état inconnu</option>
!                       <option value="d" <TMPL_IF 
name="f2d">SELECTED</TMPL_IF>>monographie complète</option>
!                       <option value="e" <TMPL_IF 
name="f2e">SELECTED</TMPL_IF>>reproduction</option>
                        </select>
                </td>
--- 8,20 ----
        <tr>
                <td>Date d'enregistrement </td>
!               <td><input type="text" name="f1" maxlength=8 size=8 value="<!-- 
TMPL_VAR name="f1" -->"></td>
        </tr>
        <tr>
                <td>Code date publication </td><td><select name="f2" size="1">
!               <option value="a" <!-- TMPL_IF name="f2a" -->SELECTED<!-- 
/TMPL_IF -->>périodique en cours</option>
!                       <option value="b" <!-- TMPL_IF name="f2b" 
-->SELECTED<!-- /TMPL_IF -->>périodique mort</option>
!                       <option value="c" <!-- TMPL_IF name="f2c" 
-->SELECTED<!-- /TMPL_IF -->>périodique d'état inconnu</option>
!                       <option value="d" <!-- TMPL_IF name="f2d" 
-->SELECTED<!-- /TMPL_IF -->>monographie complète</option>
!                       <option value="e" <!-- TMPL_IF name="f2e" 
-->SELECTED<!-- /TMPL_IF -->>reproduction</option>
                        </select>
                </td>
***************
*** 22,30 ****
        <tr>
                <td>Année début</td>
!               <td><input type="text" name="f3" maxlength=4 size=5 
value="<TMPL_VAR name="f3">"></td>
        </tr>
        <tr>
        <td>Année fin</td>
!       <td><input type="text" name="f4" maxlength=4 size=5 value="<TMPL_VAR 
name="f4">"></td>
        </tr>
        <tr><td colspan=2><input type="submit" value="OK"></td></tr>
--- 22,30 ----
        <tr>
                <td>Année début</td>
!               <td><input type="text" name="f3" maxlength=4 size=5 value="<!-- 
TMPL_VAR name="f3" -->"></td>
        </tr>
        <tr>
        <td>Année fin</td>
!       <td><input type="text" name="f4" maxlength=4 size=5 value="<!-- 
TMPL_VAR name="f4" -->"></td>
        </tr>
        <tr><td colspan=2><input type="submit" value="OK"></td></tr>
***************
*** 40,44 ****
                document.f_pop.f4.value=document.f_pop.f4.value.substring(0,4);
  
!               opener.document.f.field_value[<TMPL_VAR name="index">].value= 
document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value 
+document.f_pop.f4.value;
                self.close();
                return false;
--- 40,44 ----
                document.f_pop.f4.value=document.f_pop.f4.value.substring(0,4);
  
!               opener.document.f.field_value[<!-- TMPL_VAR name="index" 
-->].value= document.f_pop.f1.value + document.f_pop.f2.value 
+document.f_pop.f3.value +document.f_pop.f4.value;
                self.close();
                return false;

Index: unimarc_field_225a.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder/unimarc_field_225a.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** unimarc_field_225a.tmpl     27 Feb 2003 16:57:09 -0000      1.2
--- unimarc_field_225a.tmpl     9 Dec 2003 10:28:58 -0000       1.3
***************
*** 8,12 ****
        <tr>
                <td>Select a collection</td>
!               <td><TMPL_VAR name="collection"></td>
        </tr>
        <tr><td colspan=2><input type="submit" value="OK"></td></tr>
--- 8,12 ----
        <tr>
                <td>Select a collection</td>
!               <td><!-- TMPL_VAR name="collection" --></td>
        </tr>
        <tr><td colspan=2><input type="submit" value="OK"></td></tr>
***************
*** 15,19 ****
  <script>
        function report() {
!               opener.document.f.field_value[<TMPL_VAR name="index">].value= 
document.f_pop.f1.value;
                self.close();
                return false;
--- 15,19 ----
  <script>
        function report() {
!               opener.document.f.field_value[<!-- TMPL_VAR name="index" 
-->].value= document.f_pop.f1.value;
                self.close();
                return false;

Index: unimarc_field_60X.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder/unimarc_field_60X.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** unimarc_field_60X.tmpl      28 Nov 2003 10:49:39 -0000      1.1
--- unimarc_field_60X.tmpl      9 Dec 2003 10:28:58 -0000       1.2
***************
*** 16,20 ****
        <script>
                function finish() {
!                       opener.document.f.field_value[<TMPL_VAR 
name="index">].value= document.f_pop.result.value;
                        self.close();
                        return false;
--- 16,20 ----
        <script>
                function finish() {
!                       opener.document.f.field_value[<!-- TMPL_VAR 
name="index" -->].value= document.f_pop.result.value;
                        self.close();
                        return false;
***************
*** 23,27 ****
        <form name="f_pop" action="plugin_launcher.pl" method="post">
                <input type="hidden" name="plugin_name" 
value="unimarc_field_60X.pl">
!               <textarea name="result" rows=10 cols=50><TMPL_VAR 
name="result"></textarea>
                <br/><input type="button" value="OK" 
onClick="javascript:finish()">
                <p><h2>Recherche</h2>
--- 23,27 ----
        <form name="f_pop" action="plugin_launcher.pl" method="post">
                <input type="hidden" name="plugin_name" 
value="unimarc_field_60X.pl">
!               <textarea name="result" rows=10 cols=50><!-- TMPL_VAR 
name="result" --></textarea>
                <br/><input type="button" value="OK" 
onClick="javascript:finish()">
                <p><h2>Recherche</h2>
***************
*** 53,59 ****
                        <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=Z">Z</a>
                        <br/>
!                       <input type="text" name="search_string" 
value="<TMPL_VAR name="search_string">">
!                       <input type="hidden" name="category" value="<TMPL_VAR 
name="category">">
!                       <input type="hidden" name="index" value="<TMPL_VAR 
name="index">">
                        <input type="hidden" name="op" value="search">
                        <input type="submit" value="Chercher">
--- 53,59 ----
                        <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=Z">Z</a>
                        <br/>
!                       <input type="text" name="search_string" value="<!-- 
TMPL_VAR name="search_string" -->">
!                       <input type="hidden" name="category" value="<!-- 
TMPL_VAR name="category" -->">
!                       <input type="hidden" name="index" value="<!-- TMPL_VAR 
name="index" -->">
                        <input type="hidden" name="op" value="search">
                        <input type="submit" value="Chercher">
***************
*** 65,97 ****
                <h2>Results</h2>
                        <table>
!                               <TMPL_LOOP name="results">
                                        <tr>
                                        <td>
!                                               <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&index=<TMPL_VAR 
name="index">&level=<TMPL_VAR name="level">&search_string=<TMPL_VAR name=value 
ESCAPE=URL>">
!                                                       <TMPL_VAR name="value">
                                                </a>
                                        </td>
                                        <td>
!                                               <input type="button" 
value="Reporter" OnClick="javascript:report('<TMPL_VAR name="value">')"><br/>
                                        </td>
                                        </tr>
!                               </TMPL_LOOP>
                        </table>
                </td>
                <td>
!               <TMPL_IF name=deeper>
                <td valign="top">
                        <h2>Dependancies</h2>
!                       </TMPL_IF>
                        <table>
!                       <TMPL_LOOP name="deeper">
                                <tr><td>
!                               <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&index=<TMPL_VAR 
name="index">&level=<TMPL_VAR name="level">&search_string=<TMPL_VAR 
ESCAPE="URL" name="father">+<TMPL_VAR ESCAPE="URL" name="stdlib">">
!                                       <TMPL_VAR name="father"> <TMPL_VAR 
name="stdlib">
                                </a></td>
                                <td>
!                                       <input type="button" value="Reporter" 
OnClick="javascript:report('<TMPL_VAR ESCAPE=HTML name="father"> <TMPL_VAR 
ESCAPE=HTML name="stdlib">')"><br/>
                                </td></tr>
!                       </TMPL_LOOP>
                        </table>
                </td>
--- 65,97 ----
                <h2>Results</h2>
                        <table>
!                               <!-- TMPL_LOOP name="results" -->
                                        <tr>
                                        <td>
!                                               <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&index=<!-- TMPL_VAR 
name="index" -->&level=<!-- TMPL_VAR name="level" -->&search_string=<!-- 
TMPL_VAR name=value ESCAPE=URL -->">
!                                                       <!-- TMPL_VAR 
name="value" -->
                                                </a>
                                        </td>
                                        <td>
!                                               <input type="button" 
value="Reporter" OnClick="javascript:report('<!-- TMPL_VAR name="value" 
-->')"><br/>
                                        </td>
                                        </tr>
!                               <!-- /TMPL_LOOP -->
                        </table>
                </td>
                <td>
!               <!-- TMPL_IF name=deeper -->
                <td valign="top">
                        <h2>Dependancies</h2>
!                       <!-- /TMPL_IF -->
                        <table>
!                       <!-- TMPL_LOOP name="deeper" -->
                                <tr><td>
!                               <a 
href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&index=<!-- TMPL_VAR 
name="index" -->&level=<!-- TMPL_VAR name="level" -->&search_string=<!-- 
TMPL_VAR ESCAPE="URL" name="father" -->+<!-- TMPL_VAR ESCAPE="URL" 
name="stdlib" -->">
!                                       <!-- TMPL_VAR name="father" --> <!-- 
TMPL_VAR name="stdlib" -->
                                </a></td>
                                <td>
!                                       <input type="button" value="Reporter" 
OnClick="javascript:report('<!-- TMPL_VAR ESCAPE=HTML name="father" --> <!-- 
TMPL_VAR ESCAPE=HTML name="stdlib" -->')"><br/>
                                </td></tr>
!                       <!-- /TMPL_LOOP -->
                        </table>
                </td>
***************
*** 100,107 ****
  <h2>Adding</h2>
  <form name="f3_pop"  action="thesaurus_popup.pl" method="post">
!       <input type="hidden" name="index" value="<TMPL_VAR name="index">">
        <input type="hidden" name="op" value="add">
!       <input type="hidden" name="category" value="<TMPL_VAR name="category">">
!       Create a new authority/thesaurus entry : <input type="text" 
name="insert" value="<TMPL_VAR name="search_string">">
        <input type="submit" name="NEW" value="Ajouter">
        </form>
--- 100,107 ----
  <h2>Adding</h2>
  <form name="f3_pop"  action="thesaurus_popup.pl" method="post">
!       <input type="hidden" name="index" value="<!-- TMPL_VAR name="index" 
-->">
        <input type="hidden" name="op" value="add">
!       <input type="hidden" name="category" value="<!-- TMPL_VAR 
name="category" -->">
!       Create a new authority/thesaurus entry : <input type="text" 
name="insert" value="<!-- TMPL_VAR name="search_string" -->">
        <input type="submit" name="NEW" value="Ajouter">
        </form>

Index: unimarc_field_700-4.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder/unimarc_field_700-4.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** unimarc_field_700-4.tmpl    27 Nov 2002 10:29:56 -0000      1.1
--- unimarc_field_700-4.tmpl    9 Dec 2003 10:28:58 -0000       1.2
***************
*** 9,17 ****
        <tr>
                <td>Code date publication </td><td><select name="f1" size="1">
!               <option value="075 - postface" <TMPL_IF 
name="f1_075">SELECTED</TMPL_IF>>postface</option>
!                       <option value="651 - dir. de publication" <TMPL_IF 
name="f1_651">SELECTED</TMPL_IF>>dir. de publication</option>
!                       <option value="440 - illustrateur" <TMPL_IF 
name="f1_440">SELECTED</TMPL_IF>>illustrateur</option>
!                       <option value="080 - préface, notes" <TMPL_IF 
name="f1_080">SELECTED</TMPL_IF>>préface, notes</option>
!                       <option value="730 - traducteur" <TMPL_IF 
name="f1_730">SELECTED</TMPL_IF>>traducteur</option>
                        </select>
                </td>
--- 9,17 ----
        <tr>
                <td>Code date publication </td><td><select name="f1" size="1">
!               <option value="075 - postface" <!-- TMPL_IF name="f1_075" 
-->SELECTED<!-- /TMPL_IF -->>postface</option>
!                       <option value="651 - dir. de publication" <!-- TMPL_IF 
name="f1_651" -->SELECTED<!-- /TMPL_IF -->>dir. de publication</option>
!                       <option value="440 - illustrateur" <!-- TMPL_IF 
name="f1_440" -->SELECTED<!-- /TMPL_IF -->>illustrateur</option>
!                       <option value="080 - préface, notes" <!-- TMPL_IF 
name="f1_080" -->SELECTED<!-- /TMPL_IF -->>préface, notes</option>
!                       <option value="730 - traducteur" <!-- TMPL_IF 
name="f1_730" -->SELECTED<!-- /TMPL_IF -->>traducteur</option>
                        </select>
                </td>
***************
*** 23,29 ****
        function report() {
                x = document.f_pop.f1.value.split(' - ');
!               opener.document.f.field_value[<TMPL_VAR name="index">].value= 
x[0];
!               if (<TMPL_VAR name="index2">>0) {
!                       opener.document.f.field_value[<TMPL_VAR 
name="index2">].value= x[1];
                }
                self.close();
--- 23,29 ----
        function report() {
                x = document.f_pop.f1.value.split(' - ');
!               opener.document.f.field_value[<!-- TMPL_VAR name="index" 
-->].value= x[0];
!               if (<!-- TMPL_VAR name="index2" -->>0) {
!                       opener.document.f.field_value[<!-- TMPL_VAR 
name="index2" -->].value= x[1];
                }
                self.close();

Index: unimarc_field_700_701_702.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder/unimarc_field_700_701_702.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** unimarc_field_700_701_702.tmpl      10 Dec 2002 13:52:20 -0000      1.1
--- unimarc_field_700_701_702.tmpl      9 Dec 2003 10:28:58 -0000       1.2
***************
*** 6,39 ****
        <form name="f_pop" action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <textarea name="result" rows=10 cols=60><TMPL_VAR 
name="result"></textarea></br>
!       <p><input type="text" name="search_string" value="<TMPL_VAR 
name="search_string">">
!       <input type="hidden" name="index" value="<TMPL_VAR name="index">">
        <input type="hidden" name="op" value="search">
!       <input type="hidden" name="a" value="<TMPL_VAR name="a">">
!       <input type="hidden" name="b" value="<TMPL_VAR name="b">">
!       <input type="hidden" name="c" value="<TMPL_VAR name="c">">
!       <input type="hidden" name="f" value="<TMPL_VAR name="f">">
        <input type="submit" value="Search"><input type="button" value="END" 
onClick="javascript:report()">
        </form>
! <TMPL_IF name="search_string">
        <form name="f2_pop"  action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <TMPL_VAR name="select_list">
!       <input type="hidden" name="index" value="<TMPL_VAR name="index">">
        <input type="hidden" name="op" value="select">
!       <input type="hidden" name="result" value="<TMPL_VAR name="result">">
        <input type="submit" name="OK" value="OK">
        </form>
! </TMPL_IF>
        <form name="f3_pop"  action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <input type="hidden" name="index" value="<TMPL_VAR name="index">">
        <input type="hidden" name="op" value="add">
!       insert a new authority : <input type="text" name="insert" 
value="<TMPL_VAR name="search_string">">
        <input type="submit" name="NEW" value="NEW">
        </form>
                <script>
                function report() {
!                       var index_start=<TMPL_VAR name="index">;
                        opener.document.f.field_value[index_start].value= 
document.f_pop.result.value;
                        var whichfield = 
opener.document.f.tag[index_start].value;
--- 6,39 ----
        <form name="f_pop" action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <textarea name="result" rows=10 cols=60><!-- TMPL_VAR name="result" 
--></textarea></br>
!       <p><input type="text" name="search_string" value="<!-- TMPL_VAR 
name="search_string" -->">
!       <input type="hidden" name="index" value="<!-- TMPL_VAR name="index" 
-->">
        <input type="hidden" name="op" value="search">
!       <input type="hidden" name="a" value="<!-- TMPL_VAR name="a" -->">
!       <input type="hidden" name="b" value="<!-- TMPL_VAR name="b" -->">
!       <input type="hidden" name="c" value="<!-- TMPL_VAR name="c" -->">
!       <input type="hidden" name="f" value="<!-- TMPL_VAR name="f" -->">
        <input type="submit" value="Search"><input type="button" value="END" 
onClick="javascript:report()">
        </form>
! <!-- TMPL_IF name="search_string" -->
        <form name="f2_pop"  action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <!-- TMPL_VAR name="select_list" -->
!       <input type="hidden" name="index" value="<!-- TMPL_VAR name="index" 
-->">
        <input type="hidden" name="op" value="select">
!       <input type="hidden" name="result" value="<!-- TMPL_VAR name="result" 
-->">
        <input type="submit" name="OK" value="OK">
        </form>
! <!-- /TMPL_IF -->
        <form name="f3_pop"  action="plugin_launcher.pl" method="post">
        <input type="hidden" name="plugin_name" 
value="unimarc_field_700_701_702.pl">
!       <input type="hidden" name="index" value="<!-- TMPL_VAR name="index" 
-->">
        <input type="hidden" name="op" value="add">
!       insert a new authority : <input type="text" name="insert" value="<!-- 
TMPL_VAR name="search_string" -->">
        <input type="submit" name="NEW" value="NEW">
        </form>
                <script>
                function report() {
!                       var index_start=<!-- TMPL_VAR name="index" -->;
                        opener.document.f.field_value[index_start].value= 
document.f_pop.result.value;
                        var whichfield = 
opener.document.f.tag[index_start].value;




reply via email to

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