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