Continuing to add resident search form and breakcrumbs. Markup cleanup all around.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; 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 <script type="text/javascript">
9 //<![CDATA[
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     //]]>
59 </script>
60 </head>
61 <body>
62 <!-- TMPL_INCLUDE NAME="header.inc" -->
63
64 <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; <!-- TMPL_IF name="add_form" --><!-- TMPL_VAR name="action" --><!-- /TMPL_IF -->
65 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
66 <!-- TMPL_IF name="delete_confirmed" -->Data Deleted<!-- /TMPL_IF -->
67 <!-- TMPL_IF name="else" -->MARC tag Structure<!-- /TMPL_IF --></div>
68
69 <div id="doc3" class="yui-t2">
70    
71    <div id="bd">
72         <div id="yui-main">
73         <div class="yui-b">
74
75 <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>
76
77
78 <!-- TMPL_IF NAME="add_form" -->
79 <!-- ------------------------------------------------------------------------ -->
80     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
81         <input type="hidden" name="op" value="add_validate" />
82         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
83         <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>
84          <p><label>Tag</label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3" /></p>    
85     <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>
86     <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>
87     <p><label for="repeatable">Repeatable</label><!-- TMPL_VAR NAME="repeatable" -->&nbsp;</p>
88     <p><label for="mandatory">Mandatory</label><!-- TMPL_VAR NAME="mandatory" -->&nbsp;</p>
89     <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>
90         <p>
91             <input type="submit" value="Save Changes" onclick="Check(this.form)" />
92             <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;" />
93         </p>
94     </form>
95 <!-- /TMPL_IF -->
96
97
98 <!-- TMPL_IF NAME="delete_confirm" -->
99 <!-- ------------------------------------------------------------------------ -->
100 <table>
101 <caption>Confirm Deletion of Tag <em><!-- TMPL_VAR NAME="searchfield" --></em>?</caption>
102     <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
103     <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
104     </table>
105     <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>
106 <!-- /TMPL_IF -->
107
108 <!-- TMPL_IF NAME="delete_confirmed" -->
109 <!-- ------------------------------------------------------------------------ -->
110     <div class="details"><h3>Tag Deleted</h3>
111     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
112     <input type="submit" value="Return to MARC Tag Structure" />
113     </form>
114 <!-- /TMPL_IF -->
115 <!-- TMPL_IF NAME="framework_create" -->
116 <!-- ------------------------------------------------------------------------ -->
117     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
118         <input type="hidden" name="op" value="framework_create_confirm" />
119         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
120         Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
121         <select name="existingframeworkcode">
122             <option value="">Default</option>
123         <!-- TMPL_LOOP NAME="existingframeworkloop" -->
124             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
125         <!-- /TMPL_LOOP -->
126         </select>
127         <input type="submit" value="OK" />
128     </form>
129 <!-- /TMPL_IF -->
130
131 <!-- ------------------------------------------------------------------------ -->
132 <!-- TMPL_IF NAME="else" -->
133
134 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
135     <p><label for="frameworkcode">Framework</label>
136         <select id="frameworkcode" name="frameworkcode">
137             <option value="">Default</option>
138             <!-- TMPL_LOOP NAME="frameworkloop" -->
139                         <!-- TMPL_IF NAME="selected" -->
140                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
141                                 <!-- TMPL_ELSE -->
142                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
143                                 <!-- /TMPL_IF -->
144             <!-- /TMPL_LOOP -->
145         </select>
146     </p>
147     <p>
148         <label for="searchfield">Search for Tag</label>
149         <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
150         <input type="submit" value="Search" />
151     </p>
152     <p>
153         <!-- TMPL_IF Name="select_display"-->
154             <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();" />
155         <!-- TMPL_ELSE -->
156             <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();" />
157         <!--/TMPL_IF -->
158     </p>
159 </form>
160 <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>
161
162     <table>
163     <tr>
164         <th>Tag</th>
165         <th>Lib</th>
166         <th>Repeatable</th>
167         <th>Mandatory</th>
168         <th>Auth value</th>
169         <th>Subfields</th>
170         <th>Edit</th>
171         <th>Delete</th>
172                 <tr>
173     <!-- TMPL_IF NAME="select_display" -->
174         <!-- TMPL_LOOP NAME="loop" -->
175             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
176             <td><!-- TMPL_VAR NAME="tagfield" --></td>
177             <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
178             <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
179             <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
180             <td><!-- TMPL_VAR NAME="authorised_value" --></td>
181             <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
182             <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
183             <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
184         </tr>
185             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
186             <td>
187                 &nbsp;
188             </td>
189             <td colspan="7">
190                 <!-- TMPL_LOOP NAME="subfields" -->
191                     <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
192                             <!-- 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 -->
193                     </p>
194                 <!-- /TMPL_LOOP -->
195             </td>
196         </tr>
197         <!-- /TMPL_LOOP -->
198     <!-- TMPL_ELSE -->
199     <!-- TMPL_LOOP NAME="loop" -->
200     <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
201         <td><!-- TMPL_VAR NAME="tagfield" --></td>
202         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
203         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
204         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
205         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
206         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
207         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
208         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
209     </tr>
210     <!-- /TMPL_LOOP -->
211     <!--/TMPL_IF -->
212     </table>
213     <!-- TMPL_IF NAME="isprevpage" -->
214             <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>
215         <!-- /TMPL_IF --><form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
216     <input type="hidden" name="op" value="add_form" />
217     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
218         <input type="hidden" name="op" value="add_form" />
219         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield"-->" />
220     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
221         <input type="submit" value="Add Tag" />
222     </form>
223         <!-- TMPL_IF NAME="nextpage" -->
224             <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>
225         <!-- /TMPL_IF -->
226
227 <!-- /TMPL_IF -->
228
229
230 </div>
231 </div>
232 <div class="yui-b">
233 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
234 </div>
235 </div>
236 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->