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>[% loo.tab %] (ignore means that the subfield does not display in the record editor)</li>
94 <legend>Display</legend>
96 <li><label for="ohidden[% loo.row %]">Select to display or not:</label>[% loo.ohidden %] </li>
97 <!-- <li><label for="ihidden[% loo.row %]">Intranet:</label>[% loo.ihidden %] </li> -->
98 <!-- <li><label for="ehidden[% loo.row %]">Editor:</label>[% loo.ehidden %] (see online help)</li> -->
102 <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>
104 <fieldset><legend>Help input</legend>
106 <li><label for="authorised_value[% loo.row %]">Authorized value:</label> [% loo.authorised_value %]</li>
107 <li><label for="frameworkcode[% loo.row %]">Thesaurus:</label> [% loo.frameworkcode %]</li>
108 <li><label for="value_builder[% loo.row %]">Plugin:</label> [% loo.value_builder %]</li>
112 </ol></fieldset><br class="clear" />
119 [% IF ( delete_confirm ) %]
121 <div class="dialog alert"><h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
122 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
123 <table><tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
124 <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr></table>
125 <input type="hidden" name="searchfield" value="[% searchfield %]" />
126 <input type="hidden" name="tagfield" value="[% tagfield %]" />
127 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
128 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
129 <input type="submit" class="approve" value="Yes, Delete this Subfield" />
131 <form action="[% delete_link %]" method="get">
132 <input type="hidden" name="searchfield" value="[% searchfield %]" />
133 <input type="hidden" name="tagfield" value="[% tagfield %]" />
134 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
135 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
136 <input type="submit" class="deny" value="No, Do Not Delete" />
141 [% IF ( delete_confirmed ) %]
143 <div class="dialog message"> <h3>Data deleted</h3>
144 <form action="[% script_name %]" method="post">
145 <input type="hidden" name="tagfield" value="[% tagfield %]" />
146 <input type="submit" class="approve" value="OK" />
152 <h1>Authority MARC subfield structure admin for [% tagfield %] (authority: [% authtypecode %])</h1>
153 <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>
154 <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>
163 [% FOREACH loo IN loop %]
164 [% UNLESS ( loop.odd ) %]
165 <tr class="highlight">
169 <td>[% loo.tagsubfield %]</td>
171 [% IF ( loo.subfield_ignored ) %]
172 <i>[% loo.liblibrarian %]</i>
174 [% loo.liblibrarian %]
178 [% IF ( loo.subfield_ignored ) %]
179 <i>subfield ignored</i>
181 <strong>Tab:</strong>[% loo.tab %],
182 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
183 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
185 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
187 [% IF ( loo.hidden ) %]hidden,
189 [% IF ( loo.isurl ) %]is a url,
191 [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
193 [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
195 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
198 <td><a href="[% loo.delete %]">Delete</a></td>
203 <form action="[% script_name %]" method="get">
204 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
205 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
206 <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
207 <input type="submit" value="Edit subfields" />
208 <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield %]&authtypecode=[% authtypecode %]">Cancel</a></fieldset>
211 [% IF ( previous ) %]
212 <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
217 <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
226 [% INCLUDE 'admin-menu.inc' %]
229 [% INCLUDE 'intranet-bottom.inc' %]