2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › Authority MARC subfield structure</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_auth_subfields_structure" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
11 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
12 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode |html%] framework</a> ›
13 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a> ›
15 [% IF ( else ) %]Authority MARC subfield structure for [% tagfield | html %]
16 [% 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> ›
18 [% IF ( delete_confirm ) %]Confirm deletion of subfield [% tagsubfield %]?[% END %]
19 [% IF ( delete_confirmed ) %]Data deleted[% END %]
21 [% IF ( use_heading_flags_p ) %]
22 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints[% END %]
23 [% ELSE %][% action %][% END %]
27 <div id="doc3" class="yui-t2">
35 <h1>[% IF ( use_heading_flags_p ) %]
36 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode |html%][% END %]
37 [% ELSE %][% action %][% END %]</h1>
38 <form action="[% script_name %]" name="Aform" method="post">
39 <input type="hidden" name="op" value="add_validate" />
40 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
41 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
42 <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>
43 <div id="subfieldtabs" class="toptabs numbered">
45 [% FOREACH loo IN loop %]
46 [% IF ( loo.new_subfield ) %]
47 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">New</a></li>
49 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">
56 [% FOREACH loo IN loop %]
57 <div id="sub[% loo.tagsubfield %]field">
58 <fieldset class="rows"><ol>
60 [% IF ( loo.new_subfield ) %]
62 <label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>
63 <input type="text" name="tagsubfield" value="[% loo.tagsubfield %]" size="1" id="tagsubfield" maxlength="1" />
67 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
71 <label for="repeatable[% loo.row %]">Repeatable: </label>
72 [% IF loo.repeatable %]
73 <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
75 <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" value="1" />
79 <label for="mandatory[% loo.row %]">Mandatory: </label>
80 [% IF loo.mandatory %]
81 <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
83 <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
86 <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>
87 <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>
88 <li><label for="tab[% loo.row %]">Managed in tab: </label>
89 <select name="tab" size="1" id="tab[% loo.row %]">
90 [%- IF ( loo.tab == -1 ) -%]
91 <option value="-1" selected="selected">ignore</option>
93 <option value="-1">ignore</option>
95 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
96 [%- IF ( loo.tab == t && t.length>0 ) -%]
97 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
98 [%- ELSIF ( loo.tab == t ) -%]
99 <option value="[%- t -%]" selected="selected"> </option>
101 <option value="[%- t -%]">[%- t -%]</option>
105 (ignore means that the subfield does not display in the record editor)
109 <legend>Display</legend>
111 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
112 <select name="ohidden" size="1" id="ohidden[% loo.row %]">
113 [%- IF ( loo.ohidden == 0 ) -%]
114 <option value= "0" selected="selected">Show all</option>
115 <option value="1">Hide all</option>
117 [%# All other non-zero values mean: Hide %]
118 <option value= "0">Show all</option>
119 <option value="1" selected="selected">Hide all</option>
127 <fieldset class="rows">
128 <legend>Advanced constraints:</legend>
131 <label for="isurl[% loo.row %]">Is a URL:</label>
133 <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
135 <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
137 (if checked, it means that the subfield is a URL and can be clicked)
140 <label for="defaultvalue[% loo.row %]">Default value:</label>
141 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
147 <fieldset><legend>Help input</legend>
150 <label for="kohafield[% loo.row %]">Koha field:</label>
151 <select name="kohafield" id="kohafield[% loo.row %]" size="1">
152 [%- FOREACH value IN loo.kohafields %]
153 [% IF ( value == loo.kohafield && value.length>0 ) -%]
154 <option value="[% value %]" selected="selected">[% value %]</option>
155 [%- ELSIF ( value == loo.kohafield ) -%]
156 <option value="[% value %]" selected="selected"> </option>
157 [%- ELSIF ( value.length==0 ) -%]
158 <option value="[% value %]"> </option>
160 <option value="[% value %]">[% value %]</option>
166 <label for="authorised_value[% loo.row %]">Authorized value:</label>
167 <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
168 [%- FOREACH value IN loo.authorised_values %]
169 [% IF ( value == loo.authorised_value && value.length>0 ) -%]
170 <option value="[% value %]" selected="selected">[% value %]</option>
171 [%- ELSIF ( value == loo.authorised_value ) -%]
172 <option value="[% value %]" selected> </option>
173 [%- ELSIF ( value.length==0 ) -%]
174 <option value="[% value %]"> </option>
176 <option value="[% value %]">[% value %]</option>
182 <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
183 <select name="frameworkcode" id="frameworkcode[% loo.row %]" size="1">
184 [%- FOREACH value IN loo.frameworkcodes %]
185 [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
186 <option value="[% value %]" selected="selected">[% value %]</option>
187 [%- ELSIF ( value == loo.frameworkcode ) -%]
188 <option value="[% value %]" selected="selected"> </option>
189 [%- ELSIF ( value.length==0 ) -%]
190 <option value="[% value %]"> </option>
192 <option value="[% value %]">[% value %]</option>
198 <label for="value_builder[% loo.row %]">Plugin:</label>
199 <select name="value_builder" id="value_builder[% loo.row %]" size="1">
200 [%- FOREACH value IN loo.value_builders %]
201 [% IF ( value == loo.value_builder && value.length>0 ) -%]
202 <option value="[% value %]" selected="selected">[% value %]</option>
203 [%- ELSIF ( value == loo.value_builder ) -%]
204 <option value="[% value %]" selected="selected"> </option>
205 [%- ELSIF ( value.length==0 ) -%]
206 <option value="[% value %]"> </option>
208 <option value="[% value %]">[% value %]</option>
216 </ol></fieldset><br class="clear" />
223 [% IF ( delete_confirm ) %]
225 <div class="dialog alert">
226 <h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
227 <form action="[% delete_link %]" method="post">
228 <input type="hidden" name="op" value="delete_confirmed" />
230 <tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
231 <tr><th scope="row">Description:</th> <td>[% liblibrarian | html_entity %]</td></tr>
233 <input type="hidden" name="searchfield" value="[% searchfield %]" />
234 <input type="hidden" name="tagfield" value="[% tagfield%]" />
235 <input type="hidden" name="tagsubfield" value="[% tagsubfield | html %]" />
236 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
237 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
240 <form action="[% delete_link %]" method="get">
241 <input type="hidden" name="searchfield" value="[% searchfield %]" />
242 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
243 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
244 <input type="hidden" name="authtypecode" value="[% authtypecode |html %]" />
245 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
250 [% IF ( delete_confirmed ) %]
252 <div class="dialog message"> <h3>Data deleted</h3>
253 <form action="[% script_name %]" method="post">
254 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
255 <input type="submit" class="approve" value="OK" />
261 <h1>Authority MARC subfield structure admin for [% tagfield | html %] (authority: [% authtypecode | html%])</h1>
262 <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>
263 <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
272 [% FOREACH loo IN loop %]
274 <td>[% loo.tagsubfield %]</td>
276 [% IF ( loo.subfield_ignored ) %]
277 <i>[% loo.liblibrarian | html_entity %]</i>
279 [% loo.liblibrarian | html_entity %]
283 [% IF ( loo.subfield_ignored ) %]
284 <i>subfield ignored</i>
286 <strong>Tab:</strong>[% loo.tab %],
287 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
288 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
290 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
292 [% IF ( loo.hidden ) %]hidden,
294 [% IF ( loo.isurl ) %]is a url,
296 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
298 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
300 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
303 <td><a href="[% loo.delete %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a></td>
308 <form action="[% script_name %]" method="get">
309 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
310 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
311 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
312 <input type="submit" value="Edit subfields" />
313 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&authtypecode=[% authtypecode | uri %]">Cancel</a></fieldset>
316 [% IF ( previous ) %]
317 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" />
322 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" />
331 [% INCLUDE 'admin-menu.inc' %]
335 [% MACRO jsinclude BLOCK %]
336 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
337 <script type="text/javascript">
338 $(document).ready(function() {
339 $('#subfieldtabs').tabs();
343 [% INCLUDE 'intranet-bottom.inc' %]