1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration ›
3 [% IF ( add_form ) %]MARC frameworks › [% action %] [% searchfield %][% END %]
4 [% IF ( delete_confirm ) %]MARC frameworks › Confirm deletion of tag '[% searchfield %]'[% END %]
5 [% IF ( delete_confirmed ) %]MARC frameworks › Data deleted[% END %]
6 [% IF ( else ) %]MARC frameworks[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript">
16 if (f.tagfield.value.length==0) {
17 _alertString += "\n- " + _("tag number missing");
19 if (_alertString.length==0) {
20 document.Aform.submit();
22 alertString2 = _("Form not submitted because of the following problem(s)");
23 alertString2 += "\n------------------------------------------------------------------------------------\n";
24 alertString2 += _alertString;
29 $(document).ready(function() {
30 $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
32 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
34 "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
36 "sPaginationType": "four_button"
43 <body id="admin_marctagstructure" class="admin">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'cat-search.inc' %]
47 <div id="breadcrumbs">
48 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
49 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
50 › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
52 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
53 › [% action %] [% searchfield %]
55 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
56 [% ELSIF ( delete_confirm ) %]
57 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
58 › Confirm deletion of tag '[% searchfield %]'
59 [% ELSIF ( delete_confirmed ) %]
60 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
65 <div id="doc3" class="yui-t2">
71 <div id="toolbar" class="btn-toolbar">
72 <a class="btn btn-small" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% frameworkcode %]"><i class="icon-plus"></i> New tag</a>
75 <h1>MARC Framework for [% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1>
79 <form action="[% script_name %]" name="Aform" method="post">
81 <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" />
82 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
84 <ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" /></li>
85 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
86 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
87 <li><label for="repeatable">Repeatable: </label>[% repeatable %]</li>
88 <li><label for="mandatory">Mandatory: </label>[% mandatory %]</li>
89 <li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li>
91 <fieldset class="action">
92 <input type="submit" value="Save Changes" onclick="Check(this.form)" />
93 <a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a>
99 [% IF ( delete_confirm ) %]
101 <div class="dialog alert"><h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
102 <p>Tag: [% searchfield %]</p>
103 <p>Description: [% liblibrarian %]</p>
104 <form action="[% script_name %]" method="post">
105 <input type="hidden" name="op" value="delete_confirmed" />
106 <input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
107 <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
109 <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
112 [% IF ( delete_confirmed ) %]
114 <div class="dialog message"><h3>Tag deleted</h3>
115 <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
116 <input type="submit" value="OK" class="approve" />
119 [% IF ( framework_create ) %]
121 <form action="[% script_name %]" method="post">
122 <input type="hidden" name="op" value="framework_create_confirm" />
123 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
124 Create framework for [% frameworkcode %] ([% frameworktext %]) using
125 <select name="existingframeworkcode">
126 <option value="">Default</option>
127 [% FOREACH existingframeworkloo IN existingframeworkloop %]
128 <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext %]</option>
131 <input type="submit" value="OK" />
137 <form name="f" action="[% script_name %]" method="post">
138 <fieldset style="padding:.5em;">
139 <label for="searchfield"><strong>Search for tag:</strong> </label>
140 <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
142 <label for="frameworkcode"><strong>In framework:</strong> </label>
143 <select id="frameworkcode" name="frameworkcode">
144 <option value="">Default</option>
145 [% FOREACH frameworkloo IN frameworkloop %]
146 [% IF ( frameworkloo.selected ) %]
147 <option value="[% frameworkloo.value %]" selected="selected">[% frameworkloo.frameworktext %]</option>
149 <option value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
153 <input type="submit" value="Search" />
154 <p> <label for="select_display">Display only used tags/subfields</label>
155 [% IF ( select_display ) %]
156 <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" />
158 <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
163 <table id="table_marctagstructure">
177 [% IF ( select_display ) %]
178 [% FOREACH loo IN loop %]
179 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
180 <td>[% loo.tagfield %]</td>
181 <td>[% loo.liblibrarian %]</td>
182 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
183 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
184 <td>[% loo.authorised_value %]</td>
185 <td><a href="[% loo.subfield_link %]">subfields</a></td>
186 <td><a href="[% loo.edit %]">Edit</a></td>
187 <td><a href="[% loo.delete %]">Delete</a></td>
189 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
192 [% FOREACH subfield IN loo.subfields %]
193 <p> Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
194 [% 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 %]
201 [% FOREACH loo IN loop %]
202 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
203 <td>[% loo.tagfield %]</td>
204 <td>[% loo.liblibrarian %]</td>
205 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
206 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
207 <td>[% loo.authorised_value %]</td>
208 <td><a href="[% loo.subfield_link %]">Subfields</a></td>
209 <td><a href="[% loo.edit %]">Edit</a></td>
210 <td><a href="[% loo.delete %]">Delete</a></td>
225 [% INCLUDE 'admin-menu.inc' %]
228 [% INCLUDE 'intranet-bottom.inc' %]