7447f49fc4889d786d65620d15064509ad10fc0e
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / admin / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; System Administration &rsaquo;
3 <!-- TMPL_IF name="add_form" --><!-- TMPL_VAR name="action" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirmed" -->Data Deleted<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->MARC tag Structure<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8
9 <!-- TMPL_INCLUDE NAME="menus.inc" -->
10 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
11
12 <h1>MARC tag structure admin for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
13 <script language="javascript" type="text/javascript">
14     function _(s) { return s } // dummy function for gettext
15     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16     function isNotNull(f,noalert) {
17         if (f.value.length ==0) {
18 return false;
19         }
20         return true;
21     }
22     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23     function toUC(f) {
24         var x=f.value.toUpperCase();
25         f.value=x;
26         return true;
27     }
28     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
29     function isNum(v,maybenull) {
30     var n = new Number(v.value);
31     if (isNaN(n)) {
32         return false;
33         }
34     if (maybenull==0 && v.value=='') {
35         return false;
36     }
37     return true;
38     }
39     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
40     function isDate(f) {
41         var t = Date.parse(f.value);
42         if (isNaN(t)) {
43             return false;
44         }
45     }
46     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
47     function Check(f) {
48         var ok=1;
49         var _alertString="";
50         var alertString2;
51         if (f.tagfield.value.length==0) {
52             _alertString += "\n- " + _("tag number missing");
53         }
54         if (_alertString.length==0) {
55             document.Aform.submit();
56         } else {
57             alertString2  = _("Form not submitted because of the following problem(s)");
58             alertString2 += "\n------------------------------------------------------------------------------------\n";
59             alertString2 += _alertString;
60             alert(alertString2);
61         }
62     }
63     </script>
64
65 <!-- TMPL_IF NAME="add_form" -->
66 <!-- ------------------------------------------------------------------------ -->
67     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
68         <input type="hidden" name="op" value="add_validate">
69         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
70         <h2><!-- TMPL_IF NAME="use-heading-flags-p" --><!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF --><!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --></h2>
71     <p><label>Tag</label><!-- TMPL_VAR NAME="searchfield" -->&nbsp;</p>
72     <p><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"></p>
73     <p><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"></p>
74     <p><label for="repeatable">Repeatable</label><!-- TMPL_VAR NAME="repeatable" -->&nbsp;</p>
75     <p><label for="mandatory">Mandatory</label><!-- TMPL_VAR NAME="mandatory" -->&nbsp;</p>
76     <p><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 authorised value list)</p>
77         <p>
78             <input type="submit" value="Save Changes" onclick="Check(this.form)" />
79             <input type="submit" value="Cancel and Return to MARC Tag Structure" onclick="location.href='<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->'; return false;" />
80         </p>
81     </form>
82 <!-- /TMPL_IF -->
83
84
85 <!-- TMPL_IF NAME="delete_confirm" -->
86 <!-- ------------------------------------------------------------------------ -->
87 <table>
88 <caption>Confirm Deletion of Tag <em><!-- TMPL_VAR NAME="searchfield" --></em>?</caption>
89     <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
90     <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
91     </table>
92     <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">     <input type="submit" value="Yes, Delete this Tag"></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete"></form>
93 <!-- /TMPL_IF -->
94
95 <!-- TMPL_IF NAME="delete_confirmed" -->
96 <!-- ------------------------------------------------------------------------ -->
97     <div class="details"><h3>Tag Deleted</h3>
98     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
99     <input type="submit" value="Return to MARC Tag Structure">
100     </form>
101 <!-- /TMPL_IF -->
102 <!-- TMPL_IF NAME="framework_create" -->
103 <!-- ------------------------------------------------------------------------ -->
104     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
105         <input type="hidden" name="op" value="framework_create_confirm">
106         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
107         Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
108         <select name="existingframeworkcode">
109             <option value="">Default</option>
110         <!-- TMPL_LOOP NAME="existingframeworkloop" -->
111             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
112         <!-- /TMPL_LOOP -->
113         </select>
114         <input type="submit" value="OK">
115     </form>
116 <!-- /TMPL_IF -->
117
118 <!-- ------------------------------------------------------------------------ -->
119 <!-- TMPL_IF NAME="else" -->
120
121 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
122     <p><label for="frameworkcode">Framework</label>
123         <select id="frameworkcode" name="frameworkcode">
124             <option value="">Default</option>
125             <!-- TMPL_LOOP NAME="frameworkloop" -->
126                 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="frameworktext" --></option>
127             <!-- /TMPL_LOOP -->
128         </select>
129     </p>
130     <p>
131         <label for="searchfield">Search for Tag</label>
132         <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
133         <input type="submit" value="Search">
134     </p>
135     <p>
136         <!-- TMPL_IF Name="select_display"-->
137             <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();" />
138         <!-- TMPL_ELSE -->
139             <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();" />
140         <!--/TMPL_IF -->
141     </p>
142 </form>
143 <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>
144
145     <table>
146     <tr>
147         <th>Tag</th>
148         <th>Lib</th>
149         <th>Repeatable</th>
150         <th>Mandatory</th>
151         <th>Auth value</th>
152         <th>Subfields</th>
153         <th>Edit</th>
154         <th>Delete</th>
155                 <tr>
156     <!-- TMPL_IF NAME="select_display" -->
157         <!-- TMPL_LOOP NAME="loop" -->
158             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
159             <td><!-- TMPL_VAR NAME="tagfield" --></td>
160             <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
161             <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
162             <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
163             <td><!-- TMPL_VAR NAME="authorised_value" --></td>
164             <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
165             <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
166             <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
167         </tr>
168             <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
169             <td>
170                 &nbsp;
171             </td>
172             <td colspan="7">
173                 <!-- TMPL_LOOP NAME="subfields" -->
174                     <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
175                             <!-- 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 -->
176                     </p>
177                 <!-- /TMPL_LOOP -->
178             </td>
179         </tr>
180         <!-- /TMPL_LOOP -->
181     <!-- TMPL_ELSE -->
182     <!-- TMPL_LOOP NAME="loop" -->
183     <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
184         <td><!-- TMPL_VAR NAME="tagfield" --></td>
185         <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
186         <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
187         <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
188         <td><!-- TMPL_VAR NAME="authorised_value" --></td>
189         <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
190         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
191         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
192     </tr>
193     <!-- /TMPL_LOOP -->
194     <!--/TMPL_IF -->
195     </table>
196     <!-- TMPL_IF NAME="isprevpage" -->
197             <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>
198         <!-- /TMPL_IF --><form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
199     <input type="hidden" name="op" value="add_form">
200     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
201         <input type="hidden" name="op" value="add_form">
202     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
203         <input type="submit" value="Add Tag" />
204     </form>
205         <!-- TMPL_IF NAME="nextpage" -->
206             <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>
207         <!-- /TMPL_IF -->
208         <script language="javascript" type="text/javascript">
209     function ChangeDisplay(checkbox) {
210         window.
211     }
212 </script>
213
214 <!-- /TMPL_IF -->
215
216
217 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->