synch'ing 2.2 and head
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
2
3 <div id="mainbloc">
4 <h1 class="parameters">MARC tag structure admin for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
5 <script language="javascript" type="text/javascript">
6         function _(s) { return s } // dummy function for gettext
7         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8         function isNotNull(f,noalert) {
9                 if (f.value.length ==0) {
10    return false;
11                 }
12                 return true;
13         }
14         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15         function toUC(f) {
16                 var x=f.value.toUpperCase();
17                 f.value=x;
18                 return true;
19         }
20         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
21         function isNum(v,maybenull) {
22         var n = new Number(v.value);
23         if (isNaN(n)) {
24                 return false;
25                 }
26         if (maybenull==0 && v.value=='') {
27                 return false;
28         }
29         return true;
30         }
31         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
32         function isDate(f) {
33                 var t = Date.parse(f.value);
34                 if (isNaN(t)) {
35                         return false;
36                 }
37         }
38         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39         function Check(f) {
40                 var ok=1;
41                 var _alertString="";
42                 var alertString2;
43                 if (f.tagfield.value.length==0) {
44                         _alertString += "\n- " + _("tag number missing");
45                 }
46                 if (_alertString.length==0) {
47                         document.Aform.submit();
48                 } else {
49                         alertString2  = _("Form not submitted because of the following problem(s)");
50                         alertString2 += "\n------------------------------------------------------------------------------------\n";
51                         alertString2 += _alertString;
52                         alert(alertString2);
53                 }
54         }
55         </script>
56
57 <!-- TMPL_IF NAME="add_form" -->
58 <!-- ------------------------------------------------------------------------ -->
59         <h1 class="parameters">
60         <!-- TMPL_IF NAME="use-heading-flags-p" -->
61         <!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF -->
62         <!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF -->
63         <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
64         </h1>
65         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
66                 <input type="hidden" name="op" value="add_validate">
67                 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
68                 <p><label>Tag<label><!-- TMPL_VAR NAME="searchfield" --></p>
69                 <p><label>Lib for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100"></p>
70                 <p><label>Lib for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100"></p>
71                 <p><label>Repeatable</label><!-- TMPL_VAR NAME="repeatable" --></p>
72                 <p><label>Mandatory</label><!-- TMPL_VAR NAME="mandatory" --></p>
73                 <p><label>Authorised value</label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorised value list)</p>
74                 <p><label>&nbsp;</label><input type="button" value="OK" class="button" onclick="Check(this.form)"></p>
75         </form>
76 <!-- /TMPL_IF -->
77
78
79 <!-- TMPL_IF NAME="delete_confirm" -->
80 <!-- ------------------------------------------------------------------------ -->
81 <table>
82         <tr>
83                 <td>tag</td>
84                 <td><!-- TMPL_VAR NAME="searchfield" --></td>
85         </tr>
86         <tr><td>&nbsp;</td><td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr>
87         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
88         <tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
89         <tr><td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NO"></form></td></tr>
90 <!-- /TMPL_IF -->
91
92 <!-- TMPL_IF NAME="delete_confirmed" -->
93 <!-- ------------------------------------------------------------------------ -->
94         Data deleted
95         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
96         <input type="submit" value="OK">
97         </form>
98 <!-- /TMPL_IF -->
99 <!-- TMPL_IF NAME="framework_create" -->
100 <!-- ------------------------------------------------------------------------ -->
101         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
102                 <input type="hidden" name="op" value="framework_create_confirm">
103                 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
104                 Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
105                 <select name="existingframeworkcode">
106                         <option value="">Default</option>
107                 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
108                         <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
109                 <!-- /TMPL_LOOP -->
110                 </select>
111                 <input type="submit" value="OK" class="button">
112         </form>
113 <!-- /TMPL_IF -->
114 <!-- ------------------------------------------------------------------------ -->
115 <!-- TMPL_IF NAME="else" -->
116         <div id="bloc25">
117         <h2 class="parameters">Select a framework</h2>
118         <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
119                 <select name="frameworkcode">
120                         <option value="">Default</option>
121                 <!-- TMPL_LOOP NAME="frameworkloop" -->
122                         <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="frameworktext" --></option>
123                 <!-- /TMPL_LOOP -->
124                 </select>
125                 <input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
126                 <input type="submit" value="OK" class="button">
127                 <p>
128                 <i>Display only used Tags/Subfields</i> <input type="checkbox" name="select_display" value="True" <!-- TMPL_IF Name="select_display"-->checked<!--/TMPL_IF -->  OnChange="javascript:document.f.submit()">
129                 </p>
130         </form>
131         <b>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.</b>
132         </div>
133         <div id="bloc100">
134         <table>
135                 <tr>
136                         <th>Tag</th>
137                         <th>Lib</th>
138                         <th>Repeatable</th>
139                         <th>Mandatory</th>
140                         <th>Authorised<br />value</th>
141                         <th>Subfields</th>
142                         <th>Edit</th>
143                         <th>Delete</th>
144                 <tr>
145         <!-- TMPL_IF NAME="select_display" -->
146                 <!-- TMPL_LOOP NAME="loop" -->
147                 <tr class="hilighted">
148                         <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
149                         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
150                         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
151                         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
152                         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
153                         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
154                         <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png"  width="32" hspace="0" vspace="0" border="0"></a></td>
155                         <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"></a></td>
156                 </tr>
157                 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
158                         <td>
159                                 &nbsp;
160                         </td>
161                         <td colspan=7 border=0>
162                                 <!-- TMPL_LOOP NAME="subfields" -->
163                                         <p><label>&nbsp;</label>
164                                                         Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
165                                                         <!-- TMPL_VAR NAME="liblibrarian" --> <!-- TMPL_IF NAME="kohafield" --><!-- TMPL_VAR NAME="kohafield" --><!--/TMPL_IF --><!-- TMPL_IF NAME="repeatable" -->, repeatable<!-- /TMPL_IF --><!-- TMPL_IF NAME="mandatory" -->, Mandatory<!-- /TMPL_IF --><!-- TMPL_IF NAME="seealso" -->, See <!-- TMPL_VAR name="seealso" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authorised_value" -->, <!-- TMPL_VAR NAME="authorised_value" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authtypecode" -->, <!-- TMPL_VAR NAME="authtypecode" --><!--/TMPL_IF --><!-- TMPL_IF NAME="value_builder" -->, <!-- TMPL_VAR NAME="value_builder" --><!--/TMPL_IF -->
166                                         </p>
167                                 <!-- /TMPL_LOOP -->
168                         </td>
169                 </tr>
170                 <!-- /TMPL_LOOP -->
171         <!-- TMPL_ELSE -->
172                 <!-- TMPL_LOOP NAME="loop" -->
173                 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
174                         <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
175                         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
176                         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
177                         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
178                         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
179                         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
180                         <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png"  width="32" hspace="0" vspace="0" border="0"></a></td>
181                         <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"></a></td>
182                 </tr>
183                 <!-- /TMPL_LOOP -->
184         <!--/TMPL_IF -->
185         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
186         <input type="hidden" name="op" value="add_form">
187         </table>
188         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
189                 <input type="hidden" name="op" value="add_form">
190         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
191                 <input type="submit" class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
192                 <!-- TMPL_IF NAME="isprevpage" -->
193                         <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">
194                         <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1leftarrow.png" title="previous" alt="previous" border="0">
195                         </a>
196                 <!-- /TMPL_IF -->
197                 <!-- TMPL_IF NAME="nextpage" -->
198                         <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">
199                                 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="next" alt="next" border="0">
200                         </a>
201                 <!-- /TMPL_IF -->
202 </form>
203 <script language="javascript" type="text/javascript">
204         function ChangeDisplay(checkbox) {
205                 window.
206         }
207 </script>
208 </div>
209 <!-- /TMPL_IF -->
210
211 </div>
212 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->