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