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 %]">New</a></li>
54 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">
61 [% FOREACH loo IN loop %]
62 <div id="sub[% loo.tagsubfield %]field">
63 <fieldset class="rows"><ol>
65 [% IF ( loo.new_subfield ) %]
66 <li><label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>[% loo.tagsubfieldinput %] </li>
69 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
72 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %] </li>
73 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %] </li>
74 <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" size="40" maxlength="80" /></li>
75 <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
76 <li><label for="tab[% loo.row %]">Managed in tab: </label>
77 <select name="tab" size="1" id="[% loo.tab.id %]">
78 [%- IF ( loo.tab.default == -1 ) -%]
79 <option value="-1" selected="selected">ignore</option>
81 <option value="-1">ignore</option>
83 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
84 [%- IF ( loo.tab.default == t && t.length>0 ) -%]
85 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
86 [%- ELSIF ( loo.tab.default == t ) -%]
87 <option value="[%- t -%]" selected="selected"> </option>
89 <option value="[%- t -%]">[%- t -%]</option>
93 (ignore means that the subfield does not display in the record editor)
97 <legend>Display</legend>
99 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
100 <select name="ohidden" size="1" id="[% loo.ohidden.id %]">
101 [%- IF ( loo.ohidden.default == 0 ) -%]
102 <option value= "0" selected="selected">Show all</option>
103 <option value="-5">Hide all</option>
104 [%- ELSIF ( loo.ohidden.default == -5 ) -%]
105 <option value= "0">Show all</option>
106 <option value="-5" selected="selected">Hide all</option>
108 <option value= "0">Show all</option>
109 <option value="-5">Hide all</option>
117 <fieldset class="rows">
118 <legend>Advanced constraints:</legend>
120 <li><label for="isurl[% loo.row %]">Is a URL:</label>[% loo.isurl %] (if checked, it means that the subfield is a URL and can be clicked)</li>
122 <label for="defaultvalue[% loo.row %]">Default value:</label>
123 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
129 <fieldset><legend>Help input</legend>
132 <label for="kohafield[% loo.row %]">Koha field:</label>
133 <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
134 [%- FOREACH value IN loo.kohafield.values %]
135 [% IF ( value == loo.kohafield.default && value.length>0 ) -%]
136 <option value="[% value %]" selected="selected">[% value %]</option>
137 [%- ELSIF ( value == loo.kohafield.default ) -%]
138 <option value="[% value %]" selected="selected"> </option>
139 [%- ELSIF ( value.length==0 ) -%]
140 <option value="[% value %]"> </option>
142 <option value="[% value %]">[% value %]</option>
148 <label for="authorised_value[% loo.row %]">Authorized value:</label>
149 <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
150 [%- FOREACH value IN loo.authorised_value.values %]
151 [% IF ( value == loo.authorised_value.default && value.length>0 ) -%]
152 <option value="[% value %]" selected="selected">[% value %]</option>
153 [%- ELSIF ( value == loo.authorised_value.default ) -%]
154 <option value="[% value %]" selected> </option>
155 [%- ELSIF ( value.length==0 ) -%]
156 <option value="[% value %]"> </option>
158 <option value="[% value %]">[% value %]</option>
164 <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
165 <select name="frameworkcode" id="[% loo.frameworkcode.id %]" size="1">
166 [%- FOREACH value IN loo.frameworkcode.values %]
167 [% IF ( value == loo.frameworkcode.default && value.length>0 ) -%]
168 <option value="[% value %]" selected="selected">[% value %]</option>
169 [%- ELSIF ( value == loo.frameworkcode.default ) -%]
170 <option value="[% value %]" selected="selected"> </option>
171 [%- ELSIF ( value.length==0 ) -%]
172 <option value="[% value %]"> </option>
174 <option value="[% value %]">[% value %]</option>
180 <label for="value_builder[% loo.row %]">Plugin:</label>
181 <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
182 [%- FOREACH value IN loo.value_builder.values %]
183 [% IF ( value == loo.value_builder.default && value.length>0 ) -%]
184 <option value="[% value %]" selected="selected">[% value %]</option>
185 [%- ELSIF ( value == loo.value_builder.default ) -%]
186 <option value="[% value %]" selected="selected"> </option>
187 [%- ELSIF ( value.length==0 ) -%]
188 <option value="[% value %]"> </option>
190 <option value="[% value %]">[% value %]</option>
198 </ol></fieldset><br class="clear" />
205 [% IF ( delete_confirm ) %]
207 <div class="dialog alert">
208 <h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
209 <form action="[% delete_link %]" method="post">
210 <input type="hidden" name="op" value="delete_confirmed" />
212 <tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
213 <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr>
215 <input type="hidden" name="searchfield" value="[% searchfield %]" />
216 <input type="hidden" name="tagfield" value="[% tagfield%]" />
217 <input type="hidden" name="tagsubfield" value="[% tagsubfield | html %]" />
218 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
219 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
223 <form action="[% delete_link %]" method="get">
224 <input type="hidden" name="searchfield" value="[% searchfield %]" />
225 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
226 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
227 <input type="hidden" name="authtypecode" value="[% authtypecode |html %]" />
228 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
233 [% IF ( delete_confirmed ) %]
235 <div class="dialog message"> <h3>Data deleted</h3>
236 <form action="[% script_name %]" method="post">
237 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
238 <input type="submit" class="approve" value="OK" />
244 <h1>Authority MARC subfield structure admin for [% tagfield | html %] (authority: [% authtypecode | html%])</h1>
245 <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>
246 <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
255 [% FOREACH loo IN loop %]
257 <td>[% loo.tagsubfield %]</td>
259 [% IF ( loo.subfield_ignored ) %]
260 <i>[% loo.liblibrarian %]</i>
262 [% loo.liblibrarian %]
266 [% IF ( loo.subfield_ignored ) %]
267 <i>subfield ignored</i>
269 <strong>Tab:</strong>[% loo.tab %],
270 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
271 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
273 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
275 [% IF ( loo.hidden ) %]hidden,
277 [% IF ( loo.isurl ) %]is a url,
279 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
281 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
283 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
286 <td><a href="[% loo.delete %]">Delete</a></td>
291 <form action="[% script_name %]" method="get">
292 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
293 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
294 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
295 <input type="submit" value="Edit subfields" />
296 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&authtypecode=[% authtypecode | uri %]">Cancel</a></fieldset>
299 [% IF ( previous ) %]
300 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
305 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
314 [% INCLUDE 'admin-menu.inc' %]
317 [% INCLUDE 'intranet-bottom.inc' %]