40736cb8b119109d4be329fdec7cb99ab3a55dfc
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo;
3 <!-- TMPL_IF name="add_form" -->MARC Frameworks &rsaquo; <!-- TMPL_VAR name="action" --> <!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->MARC Frameworks &rsaquo; Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirmed" -->MARC Frameworks &rsaquo;  Data Deleted<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->MARC Frameworks<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 <script type="text/javascript">
9 //<![CDATA[
10 function Check(f) {
11     var _alertString="";
12     var alertString2;
13     if (f.tagfield.value.length==0) {
14         _alertString += "\n- " + _("tag number missing");
15     }
16     if (_alertString.length==0) {
17         document.Aform.submit();
18     } else {
19         alertString2  = _("Form not submitted because of the following problem(s)");
20         alertString2 += "\n------------------------------------------------------------------------------------\n";
21         alertString2 += _alertString;
22         alert(alertString2);
23     }
24 }
25
26 $(document).ready(function() {
27     new YAHOO.widget.Button("addtag");
28 });
29 //]]>
30 </script>
31 </head>
32 <body>
33 <!-- TMPL_INCLUDE NAME="header.inc" -->
34 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
35
36 <div id="breadcrumbs">
37          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
38 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
39 &rsaquo; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a>
40 <!-- TMPL_IF name="add_form" -->
41 &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->"><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)</a>
42 &rsaquo; <!-- TMPL_VAR name="action" --> <!-- TMPL_VAR NAME="searchfield" -->
43 <!-- TMPL_ELSIF name="else" -->
44 &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->"><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)</a>
45 <!-- TMPL_ELSIF name="delete_confirm" -->
46 &rsaquo; Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'
47 <!-- TMPL_ELSIF name="delete_confirmed" -->
48 &rsaquo; Data Deleted
49 <!-- /TMPL_IF -->
50 </div>
51
52 <div id="doc3" class="yui-t2">
53   <div id="bd">
54     <div id="yui-main">
55       <div class="yui-b">
56
57 <!-- TMPL_IF NAME="else" -->
58 <div id="toolbar">
59         <ul class="toolbar">
60         <li><a id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">New Tag</a></li>
61 </ul></div><!-- /TMPL_IF -->
62
63 <h1>MARC Framework for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
64
65 <!-- TMPL_IF NAME="add_form" -->
66
67     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
68         
69       <fieldset class="rows"><legend><!-- TMPL_IF NAME="use-heading-flags-p" --><!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag <input type="hidden" name="modif" value="1" /><!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --></legend>  <input type="hidden" name="op" value="add_validate" />
70         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
71
72         <ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3" /></li>    
73     <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" ESCAPE="HTML" -->" size="40" maxlength="100" /></li>
74     <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="<!-- TMPL_VAR NAME="libopac" ESCAPE="HTML" -->" size="40" maxlength="100" /></li>
75     <li><label for="repeatable">Repeatable: </label><!-- TMPL_VAR NAME="repeatable" --></li>
76     <li><label for="mandatory">Mandatory: </label><!-- TMPL_VAR NAME="mandatory" --></li>
77     <li><label for="authorised_value">Authorized value: </label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorized value list)</li>
78 </ol></fieldset> 
79     <fieldset class="action">
80         <input type="submit" value="Save Changes" onclick="Check(this.form)" />
81         <a class="cancel" href="<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">Cancel</a>
82     </fieldset>
83     </form>
84 <!-- /TMPL_IF -->
85
86
87 <!-- TMPL_IF NAME="delete_confirm" -->
88
89 <div class="dialog alert"><h3>Confirm Deletion of Tag <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span>?</h3>
90     <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
91     <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
92     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
93         <input type="hidden" name="op" value="delete_confirmed" />
94         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
95         <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
96         
97         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
98 <!-- /TMPL_IF -->
99
100 <!-- TMPL_IF NAME="delete_confirmed" -->
101
102     <div class="dialog message"><h3>Tag Deleted</h3>
103     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
104     <input type="submit" value="OK" class="approve" />
105     </form></div>
106 <!-- /TMPL_IF -->
107 <!-- TMPL_IF NAME="framework_create" -->
108
109     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
110         <input type="hidden" name="op" value="framework_create_confirm" />
111         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
112         Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
113         <select name="existingframeworkcode">
114             <option value="">Default</option>
115         <!-- TMPL_LOOP NAME="existingframeworkloop" -->
116             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
117         <!-- /TMPL_LOOP -->
118         </select>
119         <input type="submit" value="OK" />
120     </form>
121 <!-- /TMPL_IF -->
122
123
124 <!-- TMPL_IF NAME="else" -->
125
126 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
127     <p><label for="frameworkcode">Framework</label>
128         <select id="frameworkcode" name="frameworkcode">
129             <option value="">Default</option>
130             <!-- TMPL_LOOP NAME="frameworkloop" -->
131                         <!-- TMPL_IF NAME="selected" -->
132                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
133                                 <!-- TMPL_ELSE -->
134                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
135                                 <!-- /TMPL_IF -->
136             <!-- /TMPL_LOOP -->
137         </select>
138     </p>
139     <p>
140         <label for="searchfield">Search for Tag</label>
141         <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
142         <input type="submit" value="Search" />
143     </p>
144     <p>
145         <label for="select_display">Display only used Tags/Subfields</label>
146         <!-- TMPL_IF Name="select_display"-->
147             <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked"  onchange="this.form.submit();" />
148         <!-- TMPL_ELSE -->
149             <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
150         <!--/TMPL_IF -->
151     </p>
152 </form>
153 <p>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
154
155     <table>
156     <tr>
157         <th>Tag</th>
158         <th>Lib</th>
159         <th>Repeatable</th>
160         <th>Mandatory</th>
161         <th>Auth value</th>
162         <th>Subfields</th>
163         <th>Edit</th>
164         <th>Delete</th>
165         </tr>
166
167     <!-- TMPL_IF NAME="select_display" -->
168         <!-- TMPL_LOOP NAME="loop" -->
169             <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
170             <td><!-- TMPL_VAR NAME="tagfield" --></td>
171             <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
172             <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
173             <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
174             <td><!-- TMPL_VAR NAME="authorised_value" --></td>
175             <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
176             <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
177             <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
178         </tr>
179       <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
180             <td>&nbsp;</td>
181             <td colspan="7">
182                 <!-- TMPL_LOOP NAME="subfields" -->
183                     <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
184                             <!-- TMPL_VAR NAME="liblibrarian" --> <!-- TMPL_IF NAME="kohafield" --><!-- TMPL_VAR NAME="kohafield" --><!--/TMPL_IF --><!-- TMPL_IF NAME="repeatable" -->, repeatable<!-- /TMPL_IF --><!-- TMPL_IF NAME="mandatory" -->, Mandatory<!-- /TMPL_IF --><!-- TMPL_IF NAME="seealso" -->, See <!-- TMPL_VAR name="seealso" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authorised_value" -->, <!-- TMPL_VAR NAME="authorised_value" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authtypecode" -->, <!-- TMPL_VAR NAME="authtypecode" --><!--/TMPL_IF --><!-- TMPL_IF NAME="value_builder" -->, <!-- TMPL_VAR NAME="value_builder" --><!--/TMPL_IF -->
185                     </p>
186                 <!-- /TMPL_LOOP -->
187             </td>
188         </tr>
189         <!-- /TMPL_LOOP -->
190     <!-- TMPL_ELSE -->
191     <!-- TMPL_LOOP NAME="loop" -->
192     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
193         <td><!-- TMPL_VAR NAME="tagfield" --></td>
194         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
195         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
196         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
197         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
198         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
199         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
200         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
201     </tr>
202     <!-- /TMPL_LOOP -->
203     <!--/TMPL_IF -->
204     </table>
205
206     <!-- TMPL_IF NAME="isprevpage" -->
207     <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">&lt;&lt; Previous</a>
208     <!-- /TMPL_IF -->
209
210     <!-- TMPL_IF NAME="nextpage" -->
211     <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">Next &gt;&gt;</a>
212     <!-- /TMPL_IF -->
213
214 <!-- /TMPL_IF -->
215
216
217     </div>
218   </div>
219 <div class="yui-b">
220 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
221 </div>
222 </div>
223 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->