2 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Administration ›
6 [% IF ( add_form ) %]MARC frameworks › [% action %] [% searchfield %][% END %]
7 [% IF ( delete_confirm ) %]MARC frameworks › Confirm deletion of tag '[% searchfield %]'[% END %]
8 [% IF ( delete_confirmed ) %]MARC frameworks › Data deleted[% END %]
9 [% IF ( else ) %]MARC frameworks[% END %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% Asset.css("css/datatables.css") %]
14 <body id="admin_marctagstructure" class="admin">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'prefs-admin-search.inc' %]
18 <div id="breadcrumbs">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
21 › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
23 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END%]</a>
24 › [% action %] [% searchfield %]
26 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
27 [% ELSIF ( delete_confirm ) %]
28 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
29 › Confirm deletion of tag '[% searchfield %]'
30 [% ELSIF ( delete_confirmed ) %]
31 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
36 <div id="doc3" class="yui-t2">
42 <div id="toolbar" class="btn-toolbar">
43 <a class="btn btn-default btn-sm" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% framework.frameworkcode %]"><i class="fa fa-plus"></i> New tag</a>
46 <h1>MARC Framework for [% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1>
50 <form action="[% script_name %]" name="Aform" method="post" class="validated">
52 <fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend> <input type="hidden" name="op" value="add_validate" />
53 <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
57 [% IF ( heading_modify_tag_p ) %]
58 <input type="hidden" name="tagfield" value="[% searchfield %]" />
59 <span class="label">Tag:</span>
62 <label for="tagfield" class="required">Tag: </label>
63 <input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" />
64 <span class="required">Required</span>
67 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
68 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
69 <li><label for="repeatable">Repeatable: </label>
70 [% IF ( repeatable ) %]
71 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
73 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
76 <li><label for="mandatory">Mandatory: </label>
77 [% IF ( mandatory ) %]
78 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
80 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
83 <li><label for="ind1_defaultvalue">First indicator default value: </label>
84 <input id="ind1_defaultvalue" type="text" name="ind1_defaultvalue" value="[% ind1_defaultvalue |html %]" maxlength="1" size="1" />
86 <li><label for="ind2_defaultvalue">Second indicator default value: </label>
87 <input id="ind2_defaultvalue" type="text" name="ind2_defaultvalue" value="[% ind2_defaultvalue |html %]" maxlength="1" size="1" />
89 <li><label for="authorised_value">Authorized value: </label>
90 <select name="authorised_value" id="authorised_value" size="1">
91 <option value=""></option>
92 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
94 (if you select a value here, the indicators will be limited to the authorized value list)</li>
96 <fieldset class="action">
97 <input type="submit" value="Save changes" />
98 <a class="cancel" href="[% script_name %]?frameworkcode=[% framework.frameworkcode %]">Cancel</a>
104 [% IF ( delete_confirm ) %]
105 <div class="dialog alert">
106 <h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
107 <p>Tag: [% searchfield %]</p>
108 <p>Description: [% liblibrarian %]</p>
109 <form action="[% script_name %]" method="post">
110 <input type="hidden" name="op" value="delete_confirmed" />
111 <input type="hidden" name="searchfield" value="[% searchfield %]" />
112 <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
113 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button>
115 <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
116 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
121 [% IF ( delete_confirmed ) %]
123 <div class="dialog message"><h3>Tag deleted</h3>
124 <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
125 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
128 [% IF ( framework_create ) %]
130 <form action="[% script_name %]" method="post">
131 <input type="hidden" name="op" value="framework_create_confirm" />
132 <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
133 Create framework for [% frameworkcode %] ([% framework.frameworktext |html %]) using
134 <select name="existingframeworkcode">
135 <option value="">Default</option>
136 [% FOREACH existingframeworkloo IN existingframeworkloop %]
137 <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext |html %]</option>
140 <input type="submit" value="OK" />
146 <form name="f" action="[% script_name %]" method="post">
147 <fieldset style="padding:.5em;">
148 <label for="searchfield"><strong>Search for tag:</strong> </label>
149 <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
151 <label for="frameworkcode"><strong>In framework:</strong> </label>
152 <select id="frameworkcode" name="frameworkcode">
153 <option value="">Default</option>
154 [% FOREACH f IN frameworks %]
155 [% IF f.frameworkcode == framework.frameworkcode %]
156 <option value="[% f.frameworkcode %]" selected="selected">[% f.frameworktext |html %]</option>
158 <option value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
162 <input type="submit" value="Search" />
163 <p> <label for="select_display">Display only used tags/subfields</label>
164 [% IF ( select_display ) %]
165 <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" />
167 <input type="checkbox" name="select_display" id="select_display" value="True" />
172 <table id="table_marctagstructure">
186 [% IF ( select_display ) %]
187 [% FOREACH loo IN loop %]
189 <td>[% loo.tagfield %]</td>
191 [% loo.liblibrarian %]
192 [% FOREACH subfield IN loo.subfields %]
194 Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
195 [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %], repeatable[% END %][% IF ( subfield.mandatory ) %], Mandatory[% END %][% IF ( subfield.seealso ) %], See [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
199 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
200 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
201 <td>[% loo.authorised_value %]</td>
202 <td>[% loo.ind1_defaultvalue %]</td>
203 <td>[% loo.ind2_defaultvalue %]</td>
205 <div class="dropdown">
206 <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
207 Actions <b class="caret"></b></a>
208 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
209 <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
210 <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
211 <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
218 [% FOREACH loo IN loop %]
220 <td>[% loo.tagfield %]</td>
221 <td>[% loo.liblibrarian %]</td>
222 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
223 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
224 <td>[% loo.authorised_value %]</td>
225 <td>[% loo.ind1_defaultvalue %]</td>
226 <td>[% loo.ind2_defaultvalue %]</td>
228 <div class="dropdown">
229 <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
230 Actions <b class="caret"></b></a>
231 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
232 <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
233 <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
234 <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
252 [% INCLUDE 'admin-menu.inc' %]
256 [% MACRO jsinclude BLOCK %]
257 [% INCLUDE 'datatables.inc' %]
258 [% Asset.js("js/admin-menu.js") %]
259 [% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
260 <script type="text/javascript">
261 $(document).ready(function() {
262 $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
264 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
266 "sPaginationType": "four_button"
268 $("#select_display").on("change",function(){
269 var checked = $(this).prop("checked") ? 1: 0;
270 $.cookie('marctagstructure_selectdisplay', checked);
276 [% INCLUDE 'intranet-bottom.inc' %]