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" tabindex="" 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 ) -%]
100 <option value="[%- t -%]" selected="selected">[%- t -%]</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>
126 <!-- <li><label for="ihidden[% loo.row %]">Intranet:</label>[% loo.ihidden %] </li> -->
127 <!-- <li><label for="ehidden[% loo.row %]">Editor:</label>[% loo.ehidden %] (see online help)</li> -->
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>
146 <li><label for="authorised_value[% loo.row %]">Authorized value:</label> [% loo.authorised_value %]</li>
147 <li><label for="frameworkcode[% loo.row %]">Thesaurus:</label> [% loo.frameworkcode %]</li>
148 <li><label for="value_builder[% loo.row %]">Plugin:</label> [% loo.value_builder %]</li>
152 </ol></fieldset><br class="clear" />
159 [% IF ( delete_confirm ) %]
161 <div class="dialog alert"><h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
162 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
163 <table><tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
164 <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr></table>
165 <input type="hidden" name="searchfield" value="[% searchfield %]" />
166 <input type="hidden" name="tagfield" value="[% tagfield %]" />
167 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
168 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
169 <input type="submit" class="approve" value="Yes, delete this subfield" />
171 <form action="[% delete_link %]" method="get">
172 <input type="hidden" name="searchfield" value="[% searchfield %]" />
173 <input type="hidden" name="tagfield" value="[% tagfield %]" />
174 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
175 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
176 <input type="submit" class="deny" value="No, do not delete" />
181 [% IF ( delete_confirmed ) %]
183 <div class="dialog message"> <h3>Data deleted</h3>
184 <form action="[% script_name %]" method="post">
185 <input type="hidden" name="tagfield" value="[% tagfield %]" />
186 <input type="submit" class="approve" value="OK" />
192 <h1>Authority MARC subfield structure admin for [% tagfield %] (authority: [% authtypecode %])</h1>
193 <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>
194 <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>
203 [% FOREACH loo IN loop %]
204 [% UNLESS ( loop.odd ) %]
205 <tr class="highlight">
209 <td>[% loo.tagsubfield %]</td>
211 [% IF ( loo.subfield_ignored ) %]
212 <i>[% loo.liblibrarian %]</i>
214 [% loo.liblibrarian %]
218 [% IF ( loo.subfield_ignored ) %]
219 <i>subfield ignored</i>
221 <strong>Tab:</strong>[% loo.tab %],
222 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
223 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
225 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
227 [% IF ( loo.hidden ) %]hidden,
229 [% IF ( loo.isurl ) %]is a url,
231 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
233 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
235 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
238 <td><a href="[% loo.delete %]">Delete</a></td>
243 <form action="[% script_name %]" method="get">
244 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
245 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
246 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
247 <input type="submit" value="Edit subfields" />
248 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield %]&authtypecode=[% authtypecode %]">Cancel</a></fieldset>
251 [% IF ( previous ) %]
252 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
257 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
266 [% INCLUDE 'admin-menu.inc' %]
269 [% INCLUDE 'intranet-bottom.inc' %]