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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
9 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
10 <script type="text/javascript" id="js">$(document).ready(function() {
11 $("#table_marctagstructure").tablesorter({
13 headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}}
14 }).tablesorterPager({container: $("#pagertable_marctagstructure"),positionFixed: false,size: 20});
16 <script type="text/javascript">
21 if (f.tagfield.value.length==0) {
22 _alertString += "\n- " + _("tag number missing");
24 if (_alertString.length==0) {
25 document.Aform.submit();
27 alertString2 = _("Form not submitted because of the following problem(s)");
28 alertString2 += "\n------------------------------------------------------------------------------------\n";
29 alertString2 += _alertString;
34 $(document).ready(function() {
35 new YAHOO.widget.Button("addtag");
40 <body id="admin_marctagstructure" class="admin">
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'cat-search.inc' %]
44 <div id="breadcrumbs">
45 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
46 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
47 › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
49 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
50 › [% action %] [% searchfield %]
52 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
53 [% ELSIF ( delete_confirm ) %]
54 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
55 › Confirm deletion of tag '[% searchfield %]'
56 [% ELSIF ( delete_confirmed ) %]
57 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
62 <div id="doc3" class="yui-t2">
70 <li><a id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% frameworkcode %]">New tag</a></li>
73 <h1>MARC Framework for [% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1>
77 <form action="[% script_name %]" name="Aform" method="post">
79 <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" />
80 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
82 <ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" /></li>
83 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
84 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
85 <li><label for="repeatable">Repeatable: </label>[% repeatable %]</li>
86 <li><label for="mandatory">Mandatory: </label>[% mandatory %]</li>
87 <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>
89 <fieldset class="action">
90 <input type="submit" value="Save Changes" onclick="Check(this.form)" />
91 <a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a>
97 [% IF ( delete_confirm ) %]
99 <div class="dialog alert"><h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
100 <p>Tag: [% searchfield %]</p>
101 <p>Description: [% liblibrarian %]</p>
102 <form action="[% script_name %]" method="post">
103 <input type="hidden" name="op" value="delete_confirmed" />
104 <input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
105 <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
107 <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>
110 [% IF ( delete_confirmed ) %]
112 <div class="dialog message"><h3>Tag deleted</h3>
113 <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
114 <input type="submit" value="OK" class="approve" />
117 [% IF ( framework_create ) %]
119 <form action="[% script_name %]" method="post">
120 <input type="hidden" name="op" value="framework_create_confirm" />
121 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
122 Create framework for [% frameworkcode %] ([% frameworktext %]) using
123 <select name="existingframeworkcode">
124 <option value="">Default</option>
125 [% FOREACH existingframeworkloo IN existingframeworkloop %]
126 <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext %]</option>
129 <input type="submit" value="OK" />
135 <form name="f" action="[% script_name %]" method="post">
136 <fieldset style="padding:.5em;">
137 <label for="searchfield"><strong>Search for tag:</strong> </label>
138 <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
140 <label for="frameworkcode"><strong>In framework:</strong> </label>
141 <select id="frameworkcode" name="frameworkcode">
142 <option value="">Default</option>
143 [% FOREACH frameworkloo IN frameworkloop %]
144 [% IF ( frameworkloo.selected ) %]
145 <option value="[% frameworkloo.value %]" selected="selected">[% frameworkloo.frameworktext %]</option>
147 <option value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
151 <input type="submit" value="Search" />
152 <p> <label for="select_display">Display only used tags/subfields</label>
153 [% IF ( select_display ) %]
154 <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" />
156 <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
160 <div id="pagertable_marctagstructure">
161 [% INCLUDE 'table-pager.inc' perpage='20' %]
163 <table id="table_marctagstructure">
175 [% IF ( select_display ) %]
176 [% FOREACH loo IN loop %]
177 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
178 <td>[% loo.tagfield %]</td>
179 <td>[% loo.liblibrarian %]</td>
180 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
181 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
182 <td>[% loo.authorised_value %]</td>
183 <td><a href="[% loo.subfield_link %]">subfields</a></td>
184 <td><a href="[% loo.edit %]">Edit</a></td>
185 <td><a href="[% loo.delete %]">Delete</a></td>
187 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
190 [% FOREACH subfield IN loo.subfields %]
191 <p> Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
192 [% 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 [% FOREACH loo IN loop %]
200 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
201 <td>[% loo.tagfield %]</td>
202 <td>[% loo.liblibrarian %]</td>
203 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
204 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
205 <td>[% loo.authorised_value %]</td>
206 <td><a href="[% loo.subfield_link %]">Subfields</a></td>
207 <td><a href="[% loo.edit %]">Edit</a></td>
208 <td><a href="[% loo.delete %]">Delete</a></td>
222 [% INCLUDE 'admin-menu.inc' %]
225 [% INCLUDE 'intranet-bottom.inc' %]