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">
7 $(document).ready(function() {
8 $('#subfieldtabs').tabs();
11 function displayMoreConstraint(numlayer){
12 var thisdiv = document.getElementById(numlayer);
13 if(thisdiv.getAttribute("class") == "content_hidden"){
14 thisdiv.removeAttribute('class');
15 thisdiv.setAttribute("class","content_visible");
17 thisdiv.removeAttribute('class');
18 thisdiv.setAttribute("class","content_hidden");
25 <body id="admin_auth_subfields_structure" class="admin">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'cat-search.inc' %]
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
29 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
30 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode |html%] framework</a> ›
31 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a> ›
33 [% IF ( else ) %]Authority MARC subfield structure for [% tagfield | html %]
34 [% 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> ›
36 [% IF ( delete_confirm ) %]Confirm deletion of subfield [% tagsubfield %]?[% END %]
37 [% IF ( delete_confirmed ) %]Data deleted[% END %]
39 [% IF ( use_heading_flags_p ) %]
40 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints[% END %]
41 [% ELSE %][% action %][% END %]
45 <div id="doc3" class="yui-t2">
53 <h1>[% IF ( use_heading_flags_p ) %]
54 [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode |html%][% END %]
55 [% ELSE %][% action %][% END %]</h1>
56 <form action="[% script_name %]" name="Aform" method="post">
57 <input type="hidden" name="op" value="add_validate" />
58 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
59 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
60 <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>
61 <div id="subfieldtabs" class="toptabs numbered">
63 [% FOREACH loo IN loop %]
64 [% IF ( loo.new_subfield ) %]
65 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">New</a></li>
67 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">
74 [% FOREACH loo IN loop %]
75 <div id="sub[% loo.tagsubfield %]field">
76 <fieldset class="rows"><ol>
78 [% IF ( loo.new_subfield ) %]
79 <li><label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>[% loo.tagsubfieldinput %] </li>
82 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
85 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %] </li>
86 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %] </li>
87 <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>
88 <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>
89 <li><label for="tab[% loo.row %]">Managed in tab: </label>
90 <select name="tab" size="1" id="[% loo.tab.id %]">
91 [%- IF ( loo.tab.default == -1 ) -%]
92 <option value="-1" selected="selected">ignore</option>
94 <option value="-1">ignore</option>
96 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
97 [%- IF ( loo.tab.default == t && t.length>0 ) -%]
98 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
99 [%- ELSIF ( loo.tab.default == t ) -%]
100 <option value="[%- t -%]" selected="selected"> </option>
102 <option value="[%- t -%]">[%- t -%]</option>
106 (ignore means that the subfield does not display in the record editor)
110 <legend>Display</legend>
112 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
113 <select name="ohidden" size="1" id="[% loo.ohidden.id %]">
114 [%- IF ( loo.ohidden.default == 0 ) -%]
115 <option value= "0" selected="selected">Show all</option>
116 <option value="-5">Hide all</option>
117 [%- ELSIF ( loo.ohidden.default == -5 ) -%]
118 <option value= "0">Show all</option>
119 <option value="-5" selected="selected">Hide all</option>
121 <option value= "0">Show all</option>
122 <option value="-5">Hide all</option>
130 <fieldset class="rows">
131 <legend>Advanced constraints:</legend>
133 <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>
135 <label for="defaultvalue[% loo.row %]">Default value:</label>
136 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
142 <fieldset><legend>Help input</legend>
145 <label for="kohafield[% loo.row %]">Koha field:</label>
146 <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
147 [%- FOREACH value IN loo.kohafield.values %]
148 [% IF ( value == loo.kohafield.default && value.length>0 ) -%]
149 <option value="[% value %]" selected="selected">[% value %]</option>
150 [%- ELSIF ( value == loo.kohafield.default ) -%]
151 <option value="[% value %]" selected="selected"> </option>
152 [%- ELSIF ( value.length==0 ) -%]
153 <option value="[% value %]"> </option>
155 <option value="[% value %]">[% value %]</option>
161 <label for="authorised_value[% loo.row %]">Authorized value:</label>
162 <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
163 [%- FOREACH value IN loo.authorised_value.values %]
164 [% IF ( value == loo.authorised_value.default && value.length>0 ) -%]
165 <option value="[% value %]" selected="selected">[% value %]</option>
166 [%- ELSIF ( value == loo.authorised_value.default ) -%]
167 <option value="[% value %]" selected> </option>
168 [%- ELSIF ( value.length==0 ) -%]
169 <option value="[% value %]"> </option>
171 <option value="[% value %]">[% value %]</option>
177 <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
178 <select name="frameworkcode" id="[% loo.frameworkcode.id %]" size="1">
179 [%- FOREACH value IN loo.frameworkcode.values %]
180 [% IF ( value == loo.frameworkcode.default && value.length>0 ) -%]
181 <option value="[% value %]" selected="selected">[% value %]</option>
182 [%- ELSIF ( value == loo.frameworkcode.default ) -%]
183 <option value="[% value %]" selected="selected"> </option>
184 [%- ELSIF ( value.length==0 ) -%]
185 <option value="[% value %]"> </option>
187 <option value="[% value %]">[% value %]</option>
193 <label for="value_builder[% loo.row %]">Plugin:</label>
194 <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
195 [%- FOREACH value IN loo.value_builder.values %]
196 [% IF ( value == loo.value_builder.default && value.length>0 ) -%]
197 <option value="[% value %]" selected="selected">[% value %]</option>
198 [%- ELSIF ( value == loo.value_builder.default ) -%]
199 <option value="[% value %]" selected="selected"> </option>
200 [%- ELSIF ( value.length==0 ) -%]
201 <option value="[% value %]"> </option>
203 <option value="[% value %]">[% value %]</option>
211 </ol></fieldset><br class="clear" />
218 [% IF ( delete_confirm ) %]
220 <div class="dialog alert"><h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
221 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
222 <table><tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
223 <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr></table>
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 <input type="submit" class="approve" value="Yes, delete this subfield" />
230 <form action="[% delete_link %]" method="get">
231 <input type="hidden" name="searchfield" value="[% searchfield %]" />
232 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
233 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
234 <input type="hidden" name="authtypecode" value="[% authtypecode |html%]" />
235 <input type="submit" class="deny" value="No, do not delete" />
240 [% IF ( delete_confirmed ) %]
242 <div class="dialog message"> <h3>Data deleted</h3>
243 <form action="[% script_name %]" method="post">
244 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
245 <input type="submit" class="approve" value="OK" />
251 <h1>Authority MARC subfield structure admin for [% tagfield | html %] (authority: [% authtypecode | html%])</h1>
252 <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>
253 <p>The column <b>Koha field</b> shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, and a Koha interface. This link ensures that both DB are synchronized</p>
262 [% FOREACH loo IN loop %]
264 <td>[% loo.tagsubfield %]</td>
266 [% IF ( loo.subfield_ignored ) %]
267 <i>[% loo.liblibrarian %]</i>
269 [% loo.liblibrarian %]
273 [% IF ( loo.subfield_ignored ) %]
274 <i>subfield ignored</i>
276 <strong>Tab:</strong>[% loo.tab %],
277 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
278 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
280 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
282 [% IF ( loo.hidden ) %]hidden,
284 [% IF ( loo.isurl ) %]is a url,
286 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
288 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
290 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
293 <td><a href="[% loo.delete %]">Delete</a></td>
298 <form action="[% script_name %]" method="get">
299 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
300 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
301 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
302 <input type="submit" value="Edit subfields" />
303 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&authtypecode=[% authtypecode | uri %]">Cancel</a></fieldset>
306 [% IF ( previous ) %]
307 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
312 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
321 [% INCLUDE 'admin-menu.inc' %]
324 [% INCLUDE 'intranet-bottom.inc' %]