1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Authority MARC subfield structure</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 $(document).ready(function() {
7 $('#subfieldtabs').tabs();
12 <body id="admin_auth_subfields_structure" class="admin">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
15 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
16 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
17 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode |html%] framework</a> ›
18 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a> ›
20 [% IF ( else ) %]Authority MARC subfield structure for [% tagfield | html %]
21 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&tagsubfield=[% tagsubfield %]&authtypecode=[% authtypecode |uri %]">Authority MARC subfield structure for [% tagfield | html %]</a> ›
23 [% IF ( delete_confirm ) %]Confirm deletion of subfield [% tagsubfield %]?[% END %]
24 [% IF ( delete_confirmed ) %]Data deleted[% END %]
26 [% IF ( use_heading_flags_p ) %]
27 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints[% END %]
28 [% ELSE %][% action %][% END %]
32 <div id="doc3" class="yui-t2">
40 <h1>[% IF ( use_heading_flags_p ) %]
41 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode |html%][% END %]
42 [% ELSE %][% action %][% END %]</h1>
43 <form action="[% script_name %]" name="Aform" method="post">
44 <input type="hidden" name="op" value="add_validate" />
45 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
46 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
47 <fieldset class="action"><input type="submit" class="submit" value="Save changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&authtypecode=[% authtypecode |uri %]">Cancel</a></fieldset>
48 <div id="subfieldtabs" class="toptabs numbered">
50 [% FOREACH loo IN loop %]
51 [% IF ( loo.new_subfield ) %]
52 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">New</a></li>
54 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">
61 [% FOREACH loo IN loop %]
62 <div id="sub[% loo.tagsubfield %]field">
63 <fieldset class="rows"><ol>
65 [% IF ( loo.new_subfield ) %]
67 <label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>
68 <input type="text" name="tagsubfield" value="[% loo.tagsubfield %]" size="1" id="tagsubfield" maxlength="1" />
72 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
76 <label for="repeatable[% loo.row %]">Repeatable: </label>
77 [% IF loo.repeatable %]
78 <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
80 <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" value="1" />
84 <label for="mandatory[% loo.row %]">Mandatory: </label>
85 [% IF loo.mandatory %]
86 <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
88 <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
91 <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /></li>
92 <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /></li>
93 <li><label for="tab[% loo.row %]">Managed in tab: </label>
94 <select name="tab" size="1" id="tab[% loo.row %]">
95 [%- IF ( loo.tab == -1 ) -%]
96 <option value="-1" selected="selected">ignore</option>
98 <option value="-1">ignore</option>
100 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
101 [%- IF ( loo.tab == t && t.length>0 ) -%]
102 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
103 [%- ELSIF ( loo.tab == t ) -%]
104 <option value="[%- t -%]" selected="selected"> </option>
106 <option value="[%- t -%]">[%- t -%]</option>
110 (ignore means that the subfield does not display in the record editor)
114 <legend>Display</legend>
116 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
117 <select name="ohidden" size="1" id="ohidden[% loo.row %]">
118 [%- IF ( loo.ohidden == 0 ) -%]
119 <option value= "0" selected="selected">Show all</option>
120 <option value="-5">Hide all</option>
121 [%- ELSIF ( loo.ohidden == -5 ) -%]
122 <option value= "0">Show all</option>
123 <option value="-5" selected="selected">Hide all</option>
125 <option value= "0">Show all</option>
126 <option value="-5">Hide all</option>
134 <fieldset class="rows">
135 <legend>Advanced constraints:</legend>
138 <label for="isurl[% loo.row %]">Is a URL:</label>
140 <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
142 <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
144 (if checked, it means that the subfield is a URL and can be clicked)
147 <label for="defaultvalue[% loo.row %]">Default value:</label>
148 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
154 <fieldset><legend>Help input</legend>
157 <label for="kohafield[% loo.row %]">Koha field:</label>
158 <select name="kohafield" id="kohafield[% loo.row %]" size="1">
159 [%- FOREACH value IN loo.kohafields %]
160 [% IF ( value == loo.kohafield && value.length>0 ) -%]
161 <option value="[% value %]" selected="selected">[% value %]</option>
162 [%- ELSIF ( value == loo.kohafield ) -%]
163 <option value="[% value %]" selected="selected"> </option>
164 [%- ELSIF ( value.length==0 ) -%]
165 <option value="[% value %]"> </option>
167 <option value="[% value %]">[% value %]</option>
173 <label for="authorised_value[% loo.row %]">Authorized value:</label>
174 <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
175 [%- FOREACH value IN loo.authorised_values %]
176 [% IF ( value == loo.authorised_value && value.length>0 ) -%]
177 <option value="[% value %]" selected="selected">[% value %]</option>
178 [%- ELSIF ( value == loo.authorised_value ) -%]
179 <option value="[% value %]" selected> </option>
180 [%- ELSIF ( value.length==0 ) -%]
181 <option value="[% value %]"> </option>
183 <option value="[% value %]">[% value %]</option>
189 <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
190 <select name="frameworkcode" id="frameworkcode[% loo.row %]" size="1">
191 [%- FOREACH value IN loo.frameworkcodes %]
192 [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
193 <option value="[% value %]" selected="selected">[% value %]</option>
194 [%- ELSIF ( value == loo.frameworkcode ) -%]
195 <option value="[% value %]" selected="selected"> </option>
196 [%- ELSIF ( value.length==0 ) -%]
197 <option value="[% value %]"> </option>
199 <option value="[% value %]">[% value %]</option>
205 <label for="value_builder[% loo.row %]">Plugin:</label>
206 <select name="value_builder" id="value_builder[% loo.row %]" size="1">
207 [%- FOREACH value IN loo.value_builders %]
208 [% IF ( value == loo.value_builder && value.length>0 ) -%]
209 <option value="[% value %]" selected="selected">[% value %]</option>
210 [%- ELSIF ( value == loo.value_builder ) -%]
211 <option value="[% value %]" selected="selected"> </option>
212 [%- ELSIF ( value.length==0 ) -%]
213 <option value="[% value %]"> </option>
215 <option value="[% value %]">[% value %]</option>
223 </ol></fieldset><br class="clear" />
230 [% IF ( delete_confirm ) %]
232 <div class="dialog alert">
233 <h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
234 <form action="[% delete_link %]" method="post">
235 <input type="hidden" name="op" value="delete_confirmed" />
237 <tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
238 <tr><th scope="row">Description:</th> <td>[% liblibrarian | html_entity %]</td></tr>
240 <input type="hidden" name="searchfield" value="[% searchfield %]" />
241 <input type="hidden" name="tagfield" value="[% tagfield%]" />
242 <input type="hidden" name="tagsubfield" value="[% tagsubfield | html %]" />
243 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
244 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
247 <form action="[% delete_link %]" method="get">
248 <input type="hidden" name="searchfield" value="[% searchfield %]" />
249 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
250 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
251 <input type="hidden" name="authtypecode" value="[% authtypecode |html %]" />
252 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
257 [% IF ( delete_confirmed ) %]
259 <div class="dialog message"> <h3>Data deleted</h3>
260 <form action="[% script_name %]" method="post">
261 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
262 <input type="submit" class="approve" value="OK" />
268 <h1>Authority MARC subfield structure admin for [% tagfield | html %] (authority: [% authtypecode | html%])</h1>
269 <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
270 <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
279 [% FOREACH loo IN loop %]
281 <td>[% loo.tagsubfield %]</td>
283 [% IF ( loo.subfield_ignored ) %]
284 <i>[% loo.liblibrarian | html_entity %]</i>
286 [% loo.liblibrarian | html_entity %]
290 [% IF ( loo.subfield_ignored ) %]
291 <i>subfield ignored</i>
293 <strong>Tab:</strong>[% loo.tab %],
294 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
295 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
297 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
299 [% IF ( loo.hidden ) %]hidden,
301 [% IF ( loo.isurl ) %]is a url,
303 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
305 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
307 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
310 <td><a href="[% loo.delete %]">Delete</a></td>
315 <form action="[% script_name %]" method="get">
316 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
317 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
318 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
319 <input type="submit" value="Edit subfields" />
320 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&authtypecode=[% authtypecode | uri %]">Cancel</a></fieldset>
323 [% IF ( previous ) %]
324 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
329 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
338 [% INCLUDE 'admin-menu.inc' %]
341 [% INCLUDE 'intranet-bottom.inc' %]