1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration ›[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure › Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure › [% action %][% END %][% END %]
3 [% IF ( delete_confirm ) %] MARC subfield structure › Confirm deletion of subfield [% tagsubfield %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure › Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
8 $(document).ready(function() {
9 $('#subfieldtabs').tabs();
10 $("a.displaymore").click(function(){
12 var constraints = $("#"+$(this).attr("href").replace("#",""));
14 if($(constraints).is(':visible')){
15 link.html(_("Hide constraints"));
17 link.html(_("Display more constraints"));
22 /*function displayMoreConstraint(numlayer){
23 var thisdiv = document.getElementById(numlayer);
24 if(thisdiv.getAttribute("class") == "content_hidden"){
25 thisdiv.removeAttribute('class');
26 thisdiv.setAttribute("class","content_visible");
28 thisdiv.removeAttribute('class');
29 thisdiv.setAttribute("class","content_hidden");
36 <body id="admin_marc_subfields_structure" class="admin">
37 [% INCLUDE 'header.inc' %]
38 [% INCLUDE 'cat-search.inc' %]
40 <div id="breadcrumbs">
41 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a> › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]&searchfield=[% tagfield %]">[% frameworkcode %] framework structure</a> ›
43 [% IF ( use_heading_flags_p ) %]
44 [% IF ( heading_edit_subfields_p ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield %] subfield structure</a> › Edit subfields constraints
46 [% ELSE %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield %] Subfield structure</a> › [% action %]
49 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield %] Subfield structure</a> › Confirm deletion of subfield [% tagsubfield %]
51 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield %] subfield structure</a> › Subfield deleted
53 [% IF ( else ) %]Tag [% tagfield %] Subfield structure[% END %]
56 <div id="doc" class="yui-t7">
64 [% IF ( use_heading_flags_p ) %]
65 [% IF ( heading_edit_subfields_p ) %]Tag [% tagfield %] Subfield constraints[% END %]
70 <form action="[% script_name %]" name="Aform" method="post">
71 <input type="hidden" name="op" value="add_validate" />
72 <input type="hidden" name="tagfield" value="[% tagfield %]" />
73 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
74 <input type="submit" value="Save changes" />
76 <div id="subfieldtabs" class="toptabs numbered">
78 [% FOREACH loo IN loop %]
79 [% IF ( loo.new_subfield ) %]
80 <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian %]">New</a></li>
82 <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian %]">
83 [% loo.subfieldcode %]
89 [% FOREACH loo IN loop %]
90 <div id="sub[% loo.urisubfieldcode %]field">
92 <fieldset class="rows" style="float:none;"><legend>[% IF ( loo.new_subfield ) %]Add new subfield[% ELSE %]Basic constraints[% END %]</legend>
94 [% IF ( subfieldcode == 0 || subfieldcode ) %]
95 <li><span class="label">Subfield code:</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
97 <li><label for="tagsubfield[% loo.row %]">Subfield code:</label> <input type="text" id="tagsubfield[% loo.row %]" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
99 <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>
100 <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>
101 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %]</li>
102 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
103 <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>
107 <a class="displaymore" href="#more[% loo.urisubfieldcode %]">Display more constraints</a>
108 <div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both">
109 <fieldset class="rows" style="float:none;">
110 <legend>Advanced constraints:</legend>
111 <ol><li><label for="defaultvalue[% loo.row %]">Default value:</label>
112 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
113 <li><label for="maxlength[% loo.row %]">Max length:</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> (see online help)</li>
114 <li><label for="hidden[% loo.row %]">hidden</label><input type="text" id="hidden[% loo.row %]" name="hidden" value="[% loo.hidden %]" size="2" /> (see online help)</li>
115 <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>
116 <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
117 <li><label for="kohafield[% loo.row %]">Koha link:</label>[% loo.kohafield %]</li>
120 <fieldset class="rows" style="float:none;">
121 <legend>Other Options: (choose one)</legend>
123 <li><label for="authorised_value[% loo.row %]">Authorized value:</label>[% loo.authorised_value %]</li>
124 <li><label for="authtypecode[% loo.row %]">Thesaurus:</label>[% loo.authtypes %]</li>
125 <li><label for="value_builder[% loo.row %]">Plugin:</label>[% loo.value_builder %]</li>
128 </div><br class="clear" /><!-- /more -->
129 </div><!-- /content_sub -->
131 </div><!-- /content -->
135 [% IF ( delete_confirm ) %]
137 <h3>Confirm deletion of subfield [% tagsubfield %]?</h3>
138 <p>Subfield: [% tagsubfield %]</p>
139 <p>Description: [% liblibrarian %]</p>
141 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
142 <input type="hidden" name="searchfield" value="[% searchfield %]" />
143 <input type="hidden" name="tagfield" value="[% tagfield %]" />
144 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
145 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
146 <input type="submit" value="Yes, Delete this Subfield" />
149 <form action="[% script_name %]" method="post">
150 <input type="hidden" name="searchfield" value="[% searchfield %]" />
151 <input type="hidden" name="tagfield" value="[% tagfield %]" />
152 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
153 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
154 <input type="submit" value="No, Do Not Delete" />
158 [% IF ( delete_confirmed ) %]
160 <h3>Data deleted</h3>
161 <form action="[% script_name %]" method="post">
162 <input type="hidden" name="tagfield" value="[% tagfield %]" />
163 <input type="submit" value="OK" />
169 <h1>MARC subfield structure admin for [% tagfield %] [% IF ( frameworkcode ) %](framework [% frameworkcode %])[% ELSE %](default framework)[% END %]</h1>
170 <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>
171 <p>The column Koha field shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>
181 [% FOREACH loo IN loop %]
182 [% UNLESS ( loop.odd ) %]
183 <tr class="highlight">
187 <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">[% loo.tagsubfield %]</a></td>
189 [% IF ( loo.subfield_ignored ) %]
190 <i>[% loo.liblibrarian %]</i>
192 [% loo.liblibrarian %]
196 [% IF ( loo.subfield_ignored ) %]
197 <i>subfield ignored</i>
200 [% IF ( loo.kohafield ) %] | Koha field: [% loo.kohafield %], [% END %]
201 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,[% END %]
202 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,[% END %]
203 [% IF ( loo.seealso ) %] | See Also: [% loo.seealso %],[% END %]
204 [% IF ( loo.hidden ) %]hidden,[% END %]
205 [% IF ( loo.isurl ) %]is a URL,[% END %]
206 [% IF ( loo.authorised_value ) %] | Auth value:[% loo.authorised_value %],[% END %]
207 [% IF ( loo.authtypecode ) %] | Authority:[% loo.authtypecode %],[% END %]
208 [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder %],[% END %]
209 [% IF ( loo.link ) %] | Link:[% loo.link %],[% END %]
212 <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">Edit</a></td>
213 <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield %]&tagsubfield=[% loo.tagsubfield %]&frameworkcode=[% frameworkcode %]">Delete</a></td>
218 <form action="[% script_name %]" method="get">
219 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
220 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
221 <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode %]" />
222 <input type="submit" value="Edit Subfields" />
223 <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Cancel</a>
234 [% INCLUDE 'intranet-bottom.inc' %]