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" src="[% themelang %]/js/marc_subfields_structure.js"></script>
7 <body id="admin_marc_subfields_structure" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
11 <div id="breadcrumbs">
12 <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 | uri %]">[% IF ( frameworkcode ) %][% frameworkcode %][% ELSE %]Default[% END %] framework structure</a> ›
14 [% IF ( use_heading_flags_p ) %]
15 [% IF ( heading_edit_subfields_p ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] subfield structure</a> › Edit subfields constraints
17 [% ELSE %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] Subfield structure</a> › [% action %]
20 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] Subfield structure</a> › Confirm deletion of subfield [% tagsubfield %]
22 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] subfield structure</a> › Subfield deleted
24 [% IF ( else ) %]Tag [% tagfield | html %] Subfield structure[% END %]
27 <div id="doc" class="yui-t7">
35 [% IF ( use_heading_flags_p ) %]
36 [% IF ( heading_edit_subfields_p ) %]Tag [% tagfield | html %] Subfield constraints[% END %]
41 <form action="[% script_name %]" name="Aform" method="post">
42 <input type="hidden" name="op" value="add_validate" />
43 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
44 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
45 <div id="subfieldtabs" class="toptabs numbered">
47 [% FOREACH loo IN loop %]
48 [% IF ( loo.new_subfield ) %]
49 <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian %]">New</a></li>
51 <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian %]">
52 [% loo.subfieldcode %]
58 [% FOREACH loo IN loop %]
59 <div class="constraints" id="sub[% loo.urisubfieldcode %]field">
61 <h3><a href="#basic[% loo.urisubfieldcode %]">Basic constraints</a></h3>
62 <div id="basic[% loo.urisubfieldcode %]">
63 <fieldset class="rows">
65 [% IF ( subfieldcode == 0 || subfieldcode ) %]
66 <li><span class="label">Subfield code:</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
68 <li><label for="tagsubfield[% loo.row %]">Subfield code:</label> <input type="text" id="tagsubfield[% loo.row %]" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
70 <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>
71 <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>
72 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %]</li>
73 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
74 <li><label for="tab[% loo.row %]">Managed in tab: </label>
75 <select name="tab" tabindex="" size="1" id="[% loo.tab.id %]">
76 [%- IF ( loo.tab.default == -1 ) -%]
77 <option value="-1" selected="selected">ignore</option>
79 <option value="-1">ignore</option>
81 [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%]
82 [%- IF ( loo.tab.default == t ) -%]
83 <option value="[%- t -%]" selected="selected">[%- t -%]</option>
85 <option value="[%- t -%]">[%- t -%]</option>
88 [%- IF ( loo.tab.default == 10 ) -%]
89 <option value="10" selected="selected">items (10)</option>
91 <option value="10">items (10)</option>
94 (ignore means that the subfield does not display in the record editor)
101 <h3><a href="#adv[% loo.urisubfieldcode %]">Advanced constraints</a></h3>
102 <div id="adv[% loo.urisubfieldcode %]">
103 <fieldset class="rows">
104 <ol><li><label for="defaultvalue[% loo.row %]">Default value:</label>
105 <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
106 <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>
107 <li><input type="hidden" id="hidden-[% loo.row %]" name="hidden" value="[% loo.hidden %]" />
108 <label for="hidden[% loo.row %]" style="float: none;">Visibility: </label>
109 <input type="checkbox" id="hidden_opac_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_opac_[% loo.row %]"/>
110 <label for="hidden_opac_[% loo.row %]" style="float: none;">OPAC</label>
111 <input type="checkbox" id="hidden_intranet_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_intranet_[% loo.row %]"/>
112 <label for="hidden_intranet_[% loo.row %]" style="float: none;">Intranet</label>
113 <input type="checkbox" id="hidden_editor_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_editor_[% loo.row %]"/>
114 <label for="hidden_editor_[% loo.row %]" style="float: none;">Editor</label>
115 <input type="checkbox" id="hidden_collapsed_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_collapsed_[% loo.row %]"/>
116 <label for="hidden_collapsed_[% loo.row %]" style="float: none;">Collapsed</label>
117 <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]"/>
118 <label for="hidden_flagged_[% loo.row %]" style="float: none;">Flagged</label>
120 <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>
121 <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>
123 <label for="kohafield[% loo.row %]">Koha link:</label>
124 <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
125 [% FOREACH value IN loo.kohafield.values %]
126 [% IF ( value == loo.kohafield.default ) %]
127 <option value="[% value %]" selected="selected">[% value %]</option>
129 <option value="[% value %]">[% value %]</option>
137 <h3><a href="#oth[% loo.urisubfieldcode %]">Other options (choose one)</a></h3>
138 <div id="oth[% loo.urisubfieldcode %]">
139 <fieldset class="rows">
142 <label for="authorised_value[% loo.row %]">Authorized value:</label>
143 <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
144 [% FOREACH value IN loo.authorised_value.values %]
145 [% IF ( value == loo.authorised_value.default ) %]
146 <option value="[% value %]" selected="selected">[% value %]</option>
148 <option value="[% value %]">[% value %]</option>
154 <label for="authtypecode[% loo.row %]">Thesaurus:</label>
155 <select name="authtypecode" id="[% loo.authtypes.id %]" size="1">
156 [% FOREACH value IN loo.authtypes.values %]
157 [% IF ( value == loo.authtypes.default ) %]
158 <option value="[% value %]" selected="selected">[% value %]</option>
160 <option value="[% value %]">[% value %]</option>
166 <label for="value_builder[% loo.row %]">Plugin:</label>
167 <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
168 [% FOREACH value IN loo.value_builder.values %]
169 [% IF ( value == loo.value_builder.default ) %]
170 <option value="[% value %]" selected="selected">[% value %]</option>
172 <option value="[% value %]">[% value %]</option>
180 </div><!-- /content_sub -->
182 </div><!-- /content -->
183 <fieldset class="action">
184 <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]" class="cancel">Cancel</a>
189 [% IF ( delete_confirm ) %]
191 <div class="dialog alert">
192 <h3>Confirm deletion of subfield [% tagsubfield %]?</h3>
193 <p>Subfield: [% tagsubfield %]</p>
194 <p>Description: [% liblibrarian %]</p>
196 <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
197 <input type="hidden" name="searchfield" value="[% searchfield %]" />
198 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
199 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
200 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
201 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
205 <form action="[% script_name %]" method="post">
206 <input type="hidden" name="searchfield" value="[% searchfield %]" />
207 <input type="hidden" name="tagfield" value="[% tagfield | html%]" />
208 <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
209 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
210 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
216 [% IF ( delete_confirmed ) %]
218 <h3>Data deleted</h3>
219 <form action="[% script_name %]" method="post">
220 <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
221 <input type="submit" value="OK" />
227 <h1>MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode %])[% ELSE %](default framework)[% END %]</h1>
228 <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>
229 <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
239 [% FOREACH loo IN loop %]
241 <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>
243 [% IF ( loo.subfield_ignored ) %]
244 <i>[% loo.liblibrarian %]</i>
246 [% loo.liblibrarian %]
250 [% IF ( loo.subfield_ignored ) %]
251 <i>subfield ignored</i>
254 [% IF ( loo.kohafield ) %] | Koha field: [% loo.kohafield %], [% END %]
255 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,[% END %]
256 [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,[% END %]
257 [% IF ( loo.seealso ) %] | See Also: [% loo.seealso %],[% END %]
258 [% IF ( loo.hidden ) %]hidden,[% END %]
259 [% IF ( loo.isurl ) %]is a URL,[% END %]
260 [% IF ( loo.authorised_value ) %] | Auth value:[% loo.authorised_value %],[% END %]
261 [% IF ( loo.authtypecode ) %] | Authority:[% loo.authtypecode %],[% END %]
262 [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder %],[% END %]
263 [% IF ( loo.link ) %] | Link:[% loo.link %],[% END %]
266 <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>
267 <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>
272 <form action="[% script_name %]" method="get">
273 <fieldset class="action"><input type="hidden" name="op" value="add_form" />
274 <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
275 <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode %]" />
276 <input type="submit" value="Edit subfields" />
277 <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">Cancel</a>
288 [% INCLUDE 'intranet-bottom.inc' %]