Spelling corrections: organisation->organization, authorise->authorize, catalogue...
[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     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11     function isNotNull(f,noalert) {
12         if (f.value.length ==0) {
13                         return false;
14         }
15         return true;
16     }
17     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
18     function toUC(f) {
19         var x=f.value.toUpperCase();
20         f.value=x;
21         return true;
22     }
23     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
24     function isNum(v,maybenull) {
25     var n = new Number(v.value);
26     if (isNaN(n)) {
27         return false;
28         }
29     if (maybenull==0 && v.value=='') {
30         return false;
31     }
32     return true;
33     }
34     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
35     function isDate(f) {
36         var t = Date.parse(f.value);
37         if (isNaN(t)) {
38             return false;
39         }
40     }
41     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
42     function Check(f) {
43         var ok=1;
44         var _alertString="";
45         var alertString2;
46         if (f.tagfield.value.length==0) {
47             _alertString += "\n- " + _("tag number missing");
48         }
49         if (_alertString.length==0) {
50             document.Aform.submit();
51         } else {
52             alertString2  = _("Form not submitted because of the following problem(s)");
53             alertString2 += "\n------------------------------------------------------------------------------------\n";
54             alertString2 += _alertString;
55             alert(alertString2);
56         }
57     }
58     //]]>
59 </script>
60 </head>
61 <body>
62 <!-- TMPL_INCLUDE NAME="header.inc" -->
63 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
64
65 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)</a> &rsaquo; <!-- TMPL_VAR name="action" --> <!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF -->
66 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> &rsaquo; Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
67 <!-- TMPL_IF name="delete_confirmed" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> &rsaquo; Data Deleted<!-- /TMPL_IF -->
68 <!-- TMPL_IF name="else" --><a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a> &rsaquo; MARC Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- /TMPL_IF --></div>
69
70 <div id="doc3" class="yui-t2">
71    
72    <div id="bd">
73         <div id="yui-main">
74         <div class="yui-b">
75
76 <!-- TMPL_IF NAME="else" --><div id="toolbar">
77         <script type="text/javascript">
78         //<![CDATA[
79
80         // prepare DOM for YUI Toolbar
81
82          $(document).ready(function() {
83             yuiToolbar();
84          });
85
86         // YUI Toolbar Functions
87
88         function yuiToolbar() {
89             new YAHOO.widget.Button("addtag");
90         }
91
92         //]]>
93         </script>
94         <ul class="toolbar">
95         <li><a id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">New Tag</a></li>
96 </ul></div><!-- /TMPL_IF -->
97
98 <h1>MARC Framework for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
99
100 <!-- TMPL_IF NAME="add_form" -->
101
102     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
103         
104       <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" />
105         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
106
107         <ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3" /></li>    
108     <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>
109     <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>
110     <li><label for="repeatable">Repeatable: </label><!-- TMPL_VAR NAME="repeatable" --></li>
111     <li><label for="mandatory">Mandatory: </label><!-- TMPL_VAR NAME="mandatory" --></li>
112     <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>
113 </ol></fieldset> 
114         <fieldset class="action">
115             <input type="submit" value="Save Changes" onclick="Check(this.form)" />
116             <a class="cancel" href="<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">Cancel</a>
117         </fieldset>
118     </form>
119 <!-- /TMPL_IF -->
120
121
122 <!-- TMPL_IF NAME="delete_confirm" -->
123
124 <div class="dialog alert"><h3>Confirm Deletion of Tag <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span>?</h3>
125     <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
126     <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
127     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
128         <input type="hidden" name="op" value="delete_confirmed" />
129         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
130         <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
131         
132         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
133 <!-- /TMPL_IF -->
134
135 <!-- TMPL_IF NAME="delete_confirmed" -->
136
137     <div class="dialog message"><h3>Tag Deleted</h3>
138     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
139     <input type="submit" value="OK" class="approve" />
140     </form></div>
141 <!-- /TMPL_IF -->
142 <!-- TMPL_IF NAME="framework_create" -->
143
144     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
145         <input type="hidden" name="op" value="framework_create_confirm" />
146         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
147         Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
148         <select name="existingframeworkcode">
149             <option value="">Default</option>
150         <!-- TMPL_LOOP NAME="existingframeworkloop" -->
151             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
152         <!-- /TMPL_LOOP -->
153         </select>
154         <input type="submit" value="OK" />
155     </form>
156 <!-- /TMPL_IF -->
157
158
159 <!-- TMPL_IF NAME="else" -->
160
161 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
162     <p><label for="frameworkcode">Framework</label>
163         <select id="frameworkcode" name="frameworkcode">
164             <option value="">Default</option>
165             <!-- TMPL_LOOP NAME="frameworkloop" -->
166                         <!-- TMPL_IF NAME="selected" -->
167                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
168                                 <!-- TMPL_ELSE -->
169                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
170                                 <!-- /TMPL_IF -->
171             <!-- /TMPL_LOOP -->
172         </select>
173     </p>
174     <p>
175         <label for="searchfield">Search for Tag</label>
176         <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
177         <input type="submit" value="Search" />
178     </p>
179     <p>
180         <!-- TMPL_IF Name="select_display"-->
181             <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked"  onchange="this.form.submit();" />
182         <!-- TMPL_ELSE -->
183             <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
184         <!--/TMPL_IF -->
185     </p>
186 </form>
187 <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>
188
189     <table>
190     <tr>
191         <th>Tag</th>
192         <th>Lib</th>
193         <th>Repeatable</th>
194         <th>Mandatory</th>
195         <th>Auth value</th>
196         <th>Subfields</th>
197         <th>Edit</th>
198         <th>Delete</th>
199         </tr>
200
201     <!-- TMPL_IF NAME="select_display" -->
202         <!-- TMPL_LOOP NAME="loop" -->
203             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
204             <td><!-- TMPL_VAR NAME="tagfield" --></td>
205             <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
206             <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
207             <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
208             <td><!-- TMPL_VAR NAME="authorised_value" --></td>
209             <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
210             <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
211             <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
212         </tr>
213       <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
214             <td>
215                 &nbsp;
216             </td>
217             <td colspan="7">
218                 <!-- TMPL_LOOP NAME="subfields" -->
219                     <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
220                             <!-- 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 -->
221                     </p>
222                 <!-- /TMPL_LOOP -->
223             </td>
224         </tr>
225         <!-- /TMPL_LOOP -->
226     <!-- TMPL_ELSE -->
227     <!-- TMPL_LOOP NAME="loop" -->
228     <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
229         <td><!-- TMPL_VAR NAME="tagfield" --></td>
230         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
231         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
232         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
233         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
234         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
235         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
236         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
237     </tr>
238     <!-- /TMPL_LOOP -->
239     <!--/TMPL_IF -->
240     </table>
241     <!-- TMPL_IF NAME="isprevpage" -->
242             <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>
243         <!-- /TMPL_IF -->
244
245         <!-- TMPL_IF NAME="nextpage" -->
246             <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>
247         <!-- /TMPL_IF -->
248
249 <!-- /TMPL_IF -->
250
251
252 </div>
253 </div>
254 <div class="yui-b">
255 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
256 </div>
257 </div>
258 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->