first go at moving templates to a modules/ dir
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; System Administration &rsaquo;
3 <!-- TMPL_IF name="add_form" --><!-- TMPL_VAR name="action" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirmed" -->Data Deleted<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->MARC tag Structure<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8
9 <!-- TMPL_INCLUDE NAME="menus.inc" -->
10 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
11
12 <h1>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>
13 <script language="javascript" type="text/javascript">
14     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15     function isNotNull(f,noalert) {
16         if (f.value.length ==0) {
17                         return false;
18         }
19         return true;
20     }
21     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
22     function toUC(f) {
23         var x=f.value.toUpperCase();
24         f.value=x;
25         return true;
26     }
27     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
28     function isNum(v,maybenull) {
29     var n = new Number(v.value);
30     if (isNaN(n)) {
31         return false;
32         }
33     if (maybenull==0 && v.value=='') {
34         return false;
35     }
36     return true;
37     }
38     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39     function isDate(f) {
40         var t = Date.parse(f.value);
41         if (isNaN(t)) {
42             return false;
43         }
44     }
45     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
46     function Check(f) {
47         var ok=1;
48         var _alertString="";
49         var alertString2;
50         if (f.tagfield.value.length==0) {
51             _alertString += "\n- " + _("tag number missing");
52         }
53         if (_alertString.length==0) {
54             document.Aform.submit();
55         } else {
56             alertString2  = _("Form not submitted because of the following problem(s)");
57             alertString2 += "\n------------------------------------------------------------------------------------\n";
58             alertString2 += _alertString;
59             alert(alertString2);
60         }
61     }
62     </script>
63
64 <!-- TMPL_IF NAME="add_form" -->
65 <!-- ------------------------------------------------------------------------ -->
66     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
67         <input type="hidden" name="op" value="add_validate">
68         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
69         <h2><!-- TMPL_IF NAME="use-heading-flags-p" --><!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF --><!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --></h2>
70          <p><label>Tag</label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3"/></p>    
71     <p><label for="liblibrarian">Label for lib</label><input type="text" id="liblibrarian" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="40" maxlength="100"></p>
72     <p><label for="libopac">Label for opac</label><input type="text" id="libopac" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="40" maxlength="100"></p>
73     <p><label for="repeatable">Repeatable</label><!-- TMPL_VAR NAME="repeatable" -->&nbsp;</p>
74     <p><label for="mandatory">Mandatory</label><!-- TMPL_VAR NAME="mandatory" -->&nbsp;</p>
75     <p><label for="authorised_value">Authorized value</label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorised value list)</p>
76         <p>
77             <input type="submit" value="Save Changes" onclick="Check(this.form)" />
78             <input type="submit" value="Cancel and Return to MARC Tag Structure" onclick="location.href='<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->'; return false;" />
79         </p>
80     </form>
81 <!-- /TMPL_IF -->
82
83
84 <!-- TMPL_IF NAME="delete_confirm" -->
85 <!-- ------------------------------------------------------------------------ -->
86 <table>
87 <caption>Confirm Deletion of Tag <em><!-- TMPL_VAR NAME="searchfield" --></em>?</caption>
88     <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
89     <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
90     </table>
91     <form class="inline" 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" -->">     <input type="submit" value="Yes, Delete this Tag"></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete"></form>
92 <!-- /TMPL_IF -->
93
94 <!-- TMPL_IF NAME="delete_confirmed" -->
95 <!-- ------------------------------------------------------------------------ -->
96     <div class="details"><h3>Tag Deleted</h3>
97     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
98     <input type="submit" value="Return to MARC Tag Structure">
99     </form>
100 <!-- /TMPL_IF -->
101 <!-- TMPL_IF NAME="framework_create" -->
102 <!-- ------------------------------------------------------------------------ -->
103     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
104         <input type="hidden" name="op" value="framework_create_confirm">
105         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
106         Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
107         <select name="existingframeworkcode">
108             <option value="">Default</option>
109         <!-- TMPL_LOOP NAME="existingframeworkloop" -->
110             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
111         <!-- /TMPL_LOOP -->
112         </select>
113         <input type="submit" value="OK">
114     </form>
115 <!-- /TMPL_IF -->
116
117 <!-- ------------------------------------------------------------------------ -->
118 <!-- TMPL_IF NAME="else" -->
119
120 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
121     <p><label for="frameworkcode">Framework</label>
122         <select id="frameworkcode" name="frameworkcode">
123             <option value="">Default</option>
124             <!-- TMPL_LOOP NAME="frameworkloop" -->
125                         <!-- TMPL_IF NAME="selected" -->
126                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
127                                 <!-- TMPL_ELSE -->
128                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
129                                 <!-- /TMPL_IF -->
130             <!-- /TMPL_LOOP -->
131         </select>
132     </p>
133     <p>
134         <label for="searchfield">Search for Tag</label>
135         <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
136         <input type="submit" value="Search">
137     </p>
138     <p>
139         <!-- TMPL_IF Name="select_display"-->
140             <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked"  onchange="this.form.submit();" />
141         <!-- TMPL_ELSE -->
142             <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
143         <!--/TMPL_IF -->
144     </p>
145 </form>
146 <p>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
147
148     <table>
149     <tr>
150         <th>Tag</th>
151         <th>Lib</th>
152         <th>Repeatable</th>
153         <th>Mandatory</th>
154         <th>Auth value</th>
155         <th>Subfields</th>
156         <th>Edit</th>
157         <th>Delete</th>
158                 <tr>
159     <!-- TMPL_IF NAME="select_display" -->
160         <!-- TMPL_LOOP NAME="loop" -->
161             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
162             <td><!-- TMPL_VAR NAME="tagfield" --></td>
163             <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
164             <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
165             <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
166             <td><!-- TMPL_VAR NAME="authorised_value" --></td>
167             <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
168             <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
169             <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
170         </tr>
171             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
172             <td>
173                 &nbsp;
174             </td>
175             <td colspan="7">
176                 <!-- TMPL_LOOP NAME="subfields" -->
177                     <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
178                             <!-- 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 -->
179                     </p>
180                 <!-- /TMPL_LOOP -->
181             </td>
182         </tr>
183         <!-- /TMPL_LOOP -->
184     <!-- TMPL_ELSE -->
185     <!-- TMPL_LOOP NAME="loop" -->
186     <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
187         <td><!-- TMPL_VAR NAME="tagfield" --></td>
188         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
189         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
190         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
191         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
192         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
193         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
194         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
195     </tr>
196     <!-- /TMPL_LOOP -->
197     <!--/TMPL_IF -->
198     </table>
199     <!-- TMPL_IF NAME="isprevpage" -->
200             <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 -->">&lt;&lt; Previous</a>
201         <!-- /TMPL_IF --><form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
202     <input type="hidden" name="op" value="add_form">
203     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
204         <input type="hidden" name="op" value="add_form">
205         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield"-->">
206     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
207         <input type="submit" value="Add Tag" />
208     </form>
209         <!-- TMPL_IF NAME="nextpage" -->
210             <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 -->">Next &gt;&gt;</a>
211         <!-- /TMPL_IF -->
212
213 <!-- /TMPL_IF -->
214
215
216 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->