Corrections for XHTML compliance, again.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / auth_tag_structure.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; System Administration</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5
6 <!-- TMPL_INCLUDE NAME="menus.inc" -->
7 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
8
9 <h1>Authority MARC framework for <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --><!-- TMPL_ELSE -->default framework<!-- /TMPL_IF --></h1>
10 <script language="javascript" type="text/javascript">
11     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
12     function isNotNull(f,noalert) {
13         if (f.value.length ==0) {
14 return false;
15         }
16         return true;
17     }
18     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
19     function toUC(f) {
20         var x=f.value.toUpperCase();
21         f.value=x;
22         return true;
23     }
24     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25     function isNum(v,maybenull) {
26     var n = new Number(v.value);
27     if (isNaN(n)) {
28         return false;
29         }
30     if (maybenull==0 && v.value=='') {
31         return false;
32     }
33     return true;
34     }
35     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36     function isDate(f) {
37         var t = Date.parse(f.value);
38         if (isNaN(t)) {
39             return false;
40         }
41     }
42     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
43     function Check(f) {
44         var ok=1;
45         var _alertString="";
46         var alertString2;
47         if (f.tagfield.value.length==0) {
48             _alertString += "\n- " + _("tag number missing");
49         }
50         if (_alertString.length==0) {
51             document.Aform.submit();
52         } else {
53             alertString2  = _("Form not submitted because of the following problem(s)");
54             alertString2 += "\n------------------------------------------------------------------------------------\n";
55             alertString2 += _alertString;
56             alert(alertString2);
57         }
58     }
59     </script>
60
61 <!-- TMPL_IF NAME="add_form" -->
62
63     <h2>
64     <!-- TMPL_IF NAME="use-heading-flags-p" -->
65     <!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF -->
66     <!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF -->
67     <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
68     </h2>
69     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
70         <input type="hidden" name="op" value="add_validate" />
71         <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
72         <p><label>Tag</label><!-- TMPL_VAR NAME="searchfield" --></p>
73         <p><label>Text for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape="HTML" -->" size="40" maxlength="100" /></p>
74         <p><label>Text for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape="HTML" -->" size="40" maxlength="100" /></p>
75         <p><label for="repeatable">Repeatable</label>
76             <!-- TMPL_IF NAME="repeatable" -->
77                 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
78             <!-- TMPL_ELSE -->
79                 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
80             <!-- /TMPL_IF -->
81             &nbsp;
82         </p>
83         <p><label for="mandatory">Mandatory</label>
84             <!-- TMPL_IF NAME="mandatory" -->
85                 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
86             <!-- TMPL_ELSE -->
87                 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
88             <!-- /TMPL_IF -->
89             &nbsp;
90             </p>
91         <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>
92         <p><label>&nbsp;</label><input type="button" value="OK" class="button" onclick="Check(this.form)" /></p>
93     </form>
94 <!-- /TMPL_IF -->
95
96
97 <!-- TMPL_IF NAME="delete_confirm" -->
98
99 <table>
100     <tr>
101         <td>tag</td>
102         <td><!-- TMPL_VAR NAME="searchfield" --></td>
103     </tr>
104     <tr>
105         <td>&nbsp;</td><td><!-- TMPL_VAR NAME="liblibrarian" --></td>
106     </tr>
107     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
108         <input type="hidden" name="op" value="delete_confirmed" />
109         <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" />
110         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
111     <tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
112     <tr><td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NO" class="submit" /></form></td></tr>
113 <!-- /TMPL_IF -->
114
115 <!-- TMPL_IF NAME="delete_confirmed" -->
116
117     Data deleted
118     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
119     <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" />
120     <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
121     <input type="submit" value="OK" class="submit" />
122     </form>
123 <!-- /TMPL_IF -->
124 <!-- TMPL_IF NAME="authtype_create" -->
125
126     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
127         <input type="hidden" name="op" value="authtype_create_confirm" />
128         <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
129         Create authority framework for <!-- TMPL_VAR NAME="authtypecode" --> using
130         <select name="existingauthtypecode">
131             <option value="">Default</option>
132         <!-- TMPL_LOOP NAME="existingauthtypeloop" -->
133             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
134         <!-- /TMPL_LOOP -->
135         </select>
136         <input type="submit" value="OK" class="submit" />
137     </form>
138 <!-- /TMPL_IF -->
139
140
141 <!-- TMPL_IF NAME="else" -->
142 <div id="bloc25">
143 <h2>Select an authority framework</h2>
144 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
145     <select name="authtypecode">
146         <option value="">Default</option>
147     <!-- TMPL_LOOP NAME="authtypeloop" -->
148                 <!-- TMPL_IF NAME="selected" -->
149         <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="authtypetext" --></option>
150                 <!-- TMPL_ELSE -->
151         <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
152                 <!-- /TMPL_IF -->
153             
154     <!-- /TMPL_LOOP -->
155     </select>
156     <input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
157     <input type="submit" value="OK" class="submit" />
158 </form>
159 </div>
160 <div id="bloc100">
161     <table>
162     <tr>
163         <th>Tag</th>
164         <th>Lib</th>
165         <th>Repeatable</th>
166         <th>Mandatory</th>
167         <th>Authorised<br />value</th>
168         <th>Subfields</th>
169         <th>Edit</th>
170         <th>Delete</th>
171     <!-- TMPL_LOOP NAME="loop" -->
172     <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
173         <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
174         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
175         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
176         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
177         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
178         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
179         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
180         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
181     </tr>
182     <!-- /TMPL_LOOP -->
183     </table>
184     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
185         <input type="hidden" name="op" value="add_form" />
186         <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
187         <input type="hidden" name="op" value="add_form" />
188         <input type="submit" class="submit" value="Add Tag" />
189         <!-- TMPL_IF NAME="isprevpage" -->
190             <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Previous Page</a>
191         <!-- /TMPL_IF -->
192         <!-- TMPL_IF NAME="nextpage" -->
193             <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Next Page</a>
194         <!-- /TMPL_IF -->
195     </form>
196 </div>
197 <!-- /TMPL_IF -->
198
199 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->