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 %]">[% authtypecode %] 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 %]
34 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield %]&tagsubfield=[% tagsubfield %]&authtypecode=[% authtypecode %]">Authority MARC subfield structure for [% tagfield %]</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 %] authority [% authtypecode %][% 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 %]" />
59 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
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 %]&authtypecode=[% authtypecode %]">Cancel</a></fieldset>
61 <div id="subfieldtabs" class="toptabs numbered">
63 [% FOREACH loo IN loop %]
64 [% IF ( loo.new_subfield ) %]
65 [% IF ( tagfield >=10 ) %]<!-- display new only for > 10 fields -->
66 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">New</a></li>
69 <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">
76 [% FOREACH loo IN loop %]
77 <div id="sub[% loo.tagsubfield %]field">
78 <fieldset class="rows"><ol>
80 [% IF ( loo.new_subfield ) %]
81 <li><label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>[% loo.tagsubfieldinput %] </li>
84 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
87 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %] </li>
88 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %] </li>
89 <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>
90 <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>
91 <li><label for="tab[% loo.row %]">Managed in tab: </label>
92 <select name="tab" size="1" id="[% loo.tab.id %]">
93 [%- IF ( loo.tab.default == -1 ) -%]
94 <option value="-1" selected="selected">ignore</option>
96 <option value="-1">ignore</option>
98 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
99 [%- IF ( loo.tab.default == t && t.length>0 ) -%]
100 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
101 [%- ELSIF ( loo.tab.default == t ) -%]
102 <option value="[%- t -%]" selected="selected"> </option>
104 <option value="[%- t -%]">[%- t -%]</option>
108 (ignore means that the subfield does not display in the record editor)
112 <legend>Display</legend>
114 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
115 <select name="ohidden" size="1" id="[% loo.ohidden.id %]">
116 [%- IF ( loo.ohidden.default == 0 ) -%]
117 <option value= "0" selected="selected">Show all</option>
118 <option value="-5">Hide all</option>
119 [%- ELSIF ( loo.ohidden.default == -5 ) -%]
120 <option value= "0">Show all</option>
121 <option value="-5" selected="selected">Hide all</option>
123 <option value= "0">Show all</option>
124 <option value="-5">Hide all</option>
132 <fieldset class="rows">
133 <legend>Advanced constraints:</legend>
135 <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>
137 <label for="defaultvalue[% loo.row %]">Default value:</label>
138 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
144 <fieldset><legend>Help input</legend>
147 <label for="kohafield[% loo.row %]">Koha field:</label>
148 <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
149 [%- FOREACH value IN loo.kohafield.values %]
150 [% IF ( value == loo.kohafield.default && value.length>0 ) -%]
151 <option value="[% value %]" selected="selected">[% value %]</option>
152 [%- ELSIF ( value == loo.kohafield.default ) -%]
153 <option value="[% value %]" selected="selected"> </option>
154 [%- ELSIF ( value.length==0 ) -%]
155 <option value="[% value %]"> </option>
157 <option value="[% value %]">[% value %]</option>
163 <label for="authorised_value[% loo.row %]">Authorized value:</label>
164 <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
165 [%- FOREACH value IN loo.authorised_value.values %]
166 [% IF ( value == loo.authorised_value.default && value.length>0 ) -%]
167 <option value="[% value %]" selected="selected">[% value %]</option>
168 [%- ELSIF ( value == loo.authorised_value.default ) -%]
169 <option value="[% value %]" selected> </option>
170 [%- ELSIF ( value.length==0 ) -%]
171 <option value="[% value %]"> </option>
173 <option value="[% value %]">[% value %]</option>
179 <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
180 <select name="frameworkcode" id="[% loo.frameworkcode.id %]" size="1">
181 [%- FOREACH value IN loo.frameworkcode.values %]
182 [% IF ( value == loo.frameworkcode.default && value.length>0 ) -%]
183 <option value="[% value %]" selected="selected">[% value %]</option>
184 [%- ELSIF ( value == loo.frameworkcode.default ) -%]
185 <option value="[% value %]" selected="selected"> </option>
186 [%- ELSIF ( value.length==0 ) -%]
187 <option value="[% value %]"> </option>
189 <option value="[% value %]">[% value %]</option>
195 <label for="value_builder[% loo.row %]">Plugin:</label>
196 <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
197 [%- FOREACH value IN loo.value_builder.values %]
198 [% IF ( value == loo.value_builder.default && value.length>0 ) -%]
199 <option value="[% value %]" selected="selected">[% value %]</option>
200 [%- ELSIF ( value == loo.value_builder.default ) -%]
201 <option value="[% value %]" selected="selected"> </option>
202 [%- ELSIF ( value.length==0 ) -%]
203 <option value="[% value %]"> </option>
205 <option value="[% value %]">[% value %]</option>
213 </ol></fieldset><br class="clear" />
220 [% IF ( delete_confirm ) %]
222 <div class="dialog alert"><h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
223 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
224 <table><tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
225 <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr></table>
226 <input type="hidden" name="searchfield" value="[% searchfield %]" />
227 <input type="hidden" name="tagfield" value="[% tagfield %]" />
228 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
229 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
230 <input type="submit" class="approve" value="Yes, delete this subfield" />
232 <form action="[% delete_link %]" method="get">
233 <input type="hidden" name="searchfield" value="[% searchfield %]" />
234 <input type="hidden" name="tagfield" value="[% tagfield %]" />
235 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
236 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
237 <input type="submit" class="deny" value="No, do not delete" />
242 [% IF ( delete_confirmed ) %]
244 <div class="dialog message"> <h3>Data deleted</h3>
245 <form action="[% script_name %]" method="post">
246 <input type="hidden" name="tagfield" value="[% tagfield %]" />
247 <input type="submit" class="approve" value="OK" />
253 <h1>Authority MARC subfield structure admin for [% tagfield %] (authority: [% authtypecode %])</h1>
254 <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>
255 <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>
264 [% FOREACH loo IN loop %]
266 <td>[% loo.tagsubfield %]</td>
268 [% IF ( loo.subfield_ignored ) %]
269 <i>[% loo.liblibrarian %]</i>
271 [% loo.liblibrarian %]
275 [% IF ( loo.subfield_ignored ) %]
276 <i>subfield ignored</i>
278 <strong>Tab:</strong>[% loo.tab %],
279 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
280 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
282 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
284 [% IF ( loo.hidden ) %]hidden,
286 [% IF ( loo.isurl ) %]is a url,
288 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
290 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
292 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
295 <td><a href="[% loo.delete %]">Delete</a></td>
300 <form action="[% script_name %]" method="get">
301 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
302 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
303 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
304 <input type="submit" value="Edit subfields" />
305 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield %]&authtypecode=[% authtypecode %]">Cancel</a></fieldset>
308 [% IF ( previous ) %]
309 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
314 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
323 [% INCLUDE 'admin-menu.inc' %]
326 [% INCLUDE 'intranet-bottom.inc' %]