f3a178a548dc75396a3ebcabdf39fb3f9f50fd00
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-layout.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo; Tools &rsaquo; Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <script>
4 $(document).ready(function() {
5     $("input[@name='layoutchoice']").change( function() { layout_method() } );
6     layout_method();
7 });
8 function layout_method() {
9     if( $("input[@name='layoutchoice']:checked").val() == 'layout_string' ) {
10         $('#layout_tx').hide();
11         $('#layout_string').show();
12     } else {
13         $('#layout_tx').show();
14         $('#layout_string').hide();
15     }
16
17 }
18 </script>
19 </head>
20 <body>
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
23
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> &rsaquo; <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</div>
25
26 <div id="doc3" class="yui-t2">
27    
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-b">
31         <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
32 <form name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
33 <fieldset class="rows">
34 <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
35 <ol>
36 <li><label for="layoutname">Layout Name</label>
37 <input type="text" name="layoutname" id="layoutname" size="20" value="<!-- TMPL_VAR NAME="layoutname" -->" /></li>
38
39 <li><label for="barcodetype">Choose Barcode Type (encoding)</label>
40 <select name="barcodetype" id="barcodetype">
41     <!-- TMPL_LOOP NAME="barcode_types" -->
42         <!-- TMPL_IF NAME="active" -->
43         <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
44         <!-- TMPL_ELSE -->
45         <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
46         <!-- /TMPL_IF -->
47     <!-- /TMPL_LOOP -->
48 </select></li>
49
50
51 <li><label for="printingtype">Choose Layout Type</label>
52 <select name="printingtype" id="printingtype">
53     <!-- TMPL_LOOP NAME="printingtypes" -->
54 <!-- TMPL_IF NAME="active" -->
55         <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
56         <!-- TMPL_ELSE -->
57         <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
58 <!-- /TMPL_IF -->
59     <!-- /TMPL_LOOP -->
60 </select></li>
61
62
63 <li> 
64 <fieldset class="rows">
65 <legend>
66 Bibliographic Data to Print
67 </legend>
68 <input type="radio" name="layoutchoice" value="layout_tx" <!-- TMPL_UNLESS NAME="layout_string" -->checked="checked"<!-- /TMPL_UNLESS -->" >Choose Order Of Text Fields to Print</input>
69 <br />
70 <fieldset id="layout_tx">
71 <table summary="fields to print">
72 <tr>
73         <td>
74  <select name="tx_title" id="tx_title">
75             <!-- TMPL_LOOP Name="tx_title" -->
76                         <!-- TMPL_IF Name="selected" -->
77                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
78                     <!-- TMPL_VAR Name="num" -->
79                 </option>
80                         <!-- TMPL_ELSE -->
81                 <option value="<!-- TMPL_VAR Name="num" -->">
82                     <!-- TMPL_VAR Name="num" -->
83                 </option>
84                 <!-- /TMPL_IF -->
85             <!-- /TMPL_LOOP -->
86             </select>
87         <label for="tx_title">Title</label>
88         </td>
89         <td>
90         <select name="tx_author" id="tx_author">
91              <!-- TMPL_LOOP Name="tx_author" -->
92                 <!-- TMPL_IF Name="selected" -->         
93                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
94                     <!-- TMPL_VAR Name="num" -->
95                 </option>
96                 <!-- TMPL_ELSE -->              
97                 <option value="<!-- TMPL_VAR Name="num" -->">
98                     <!-- TMPL_VAR Name="num" -->
99                 </option>
100                 <!-- /TMPL_IF -->               
101             <!-- /TMPL_LOOP -->
102             </select>
103        <label for="tx_author">Author</label>
104         </td>
105         <td>
106         <select name="tx_isbn" id="tx_isbn">
107               <!-- TMPL_LOOP Name="tx_isbn" -->
108                 <!-- TMPL_IF Name="selected" -->          
109                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
110                     <!-- TMPL_VAR Name="num" -->
111                 </option>
112                 <!-- TMPL_ELSE -->              
113                 <option value="<!-- TMPL_VAR Name="num" -->">
114                     <!-- TMPL_VAR Name="num" -->
115                 </option>
116                 <!-- /TMPL_IF -->               
117             <!-- /TMPL_LOOP -->
118             </select>
119       <label for="tx_isbn">ISBN</label>
120         </td>
121 </tr>
122 <tr>
123         <td>
124         <select name="tx_issn" id="tx_issn">
125                <!-- TMPL_LOOP Name="tx_issn" -->
126                 <!-- TMPL_IF Name="selected" -->           
127                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
128                     <!-- TMPL_VAR Name="num" -->
129                 </option>
130                 <!-- TMPL_ELSE -->              
131                 <option value="<!-- TMPL_VAR Name="num" -->">
132                     <!-- TMPL_VAR Name="num" -->
133                 </option>
134                 <!-- /TMPL_IF -->               
135             <!-- /TMPL_LOOP -->
136             </select>
137      <label for="tx_issn">ISSN</label>
138          </td>
139         <td>
140         <select name="tx_itemtype" id="tx_itemtype">
141                  <!-- TMPL_LOOP Name="tx_itemtype" -->
142                 <!-- TMPL_IF Name="selected" -->                 
143                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
144                     <!-- TMPL_VAR Name="num" -->
145                 </option>
146                         <!-- TMPL_ELSE -->      
147                 <option value="<!-- TMPL_VAR Name="num" -->">
148                     <!-- TMPL_VAR Name="num" -->
149                 </option>
150                 <!-- /TMPL_IF -->               
151             <!-- /TMPL_LOOP -->
152             </select>
153    <label for="tx_itemtype">Itemtype</label>
154         </td>
155         <td>
156         <select name="tx_barcode">
157                  <!-- TMPL_LOOP Name="tx_barcode" -->
158                 <!-- TMPL_IF Name="selected" -->                 
159                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
160                     <!-- TMPL_VAR Name="num" -->
161                 </option>
162                         <!-- TMPL_ELSE -->       
163                 <option value="<!-- TMPL_VAR Name="num" -->">
164                     <!-- TMPL_VAR Name="num" -->
165                 </option>
166                         <!-- /TMPL_IF -->       
167             <!-- /TMPL_LOOP -->
168       </select>
169         <label for="tx_barcode">Barcode (as text)</label>
170         </td>
171 </tr> 
172  <tr>
173             <td>
174         <select name="tx_itemcallnumber" id="tx_itemcallnumber">
175                  <!-- TMPL_LOOP Name="tx_itemcallnumber" -->
176                         <!-- TMPL_IF Name="selected" -->          
177                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
178                     <!-- TMPL_VAR Name="num" -->
179                 </option>
180                         <!-- TMPL_ELSE -->       
181                 <option value="<!-- TMPL_VAR Name="num" -->">
182                     <!-- TMPL_VAR Name="num" -->
183                 </option>
184                         <!-- /TMPL_IF -->       
185             <!-- /TMPL_LOOP -->
186       </select>
187         <label for="tx_itemcallnumber">Call Number</label>
188         </td>
189                 <td>&nbsp;</td>
190                 <td>&nbsp;</td>
191   </tr>
192 </table>
193 <br />
194 </fieldset>
195 <br />
196 <input type="radio" name="layoutchoice" value="layout_string" <!-- TMPL_IF NAME="formatstring" -->checked="checked"<!-- /TMPL_IF -->"> List Fields </input>
197 <fieldset id="layout_string" class="brief">
198 <label for="layoutname">Data Fields</label>
199   
200 <input type="text" name="formatstring" id="formatstring" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="formatstring" -->" />
201
202    <div class="help">
203    <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
204    <p>See online help for advanced options</p>
205    <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
206         </div>
207 </fieldset>
208 </fieldset>   
209 </li>
210 <li><label for="startlabel">Start printing from Label number: </label><input type="text" name="startlabel"  id="startlabel" size="1"  value="<!-- TMPL_IF NAME="startlabel" --><!-- TMPL_VAR NAME="startlabel" --><!-- TMPL_ELSE -->1<!-- /TMPL_IF -->" /></li>
211
212
213 <li><label for="guidebox">Draw Guide Boxes</label>
214 <!-- TMPL_IF NAME="guidebox"-->
215 <input type="checkbox" name="guidebox" id="guidebox" value="1"  checked="checked" />
216 <!-- TMPL_ELSE -->
217 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
218 <!-- /TMPL_IF --></li>
219
220 <li><label for="callnum_split">Split Call Numbers</label>
221 <!-- TMPL_IF NAME="callnum_split"-->
222 <input type="checkbox" name="callnum_split" id="callnum_split" value="1"  checked="checked" />
223 <!-- TMPL_ELSE -->
224 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
225 <!-- /TMPL_IF --></li>
226
227 <li><label for="text_justify">Text Justification</label>
228 <select name="text_justify">
229 <!-- TMPL_IF NAME="justify_L" --><option value='L' selected="selected">Left</option>
230 <!-- TMPL_ELSE --><option value='L'>Left</option>
231 <!-- /TMPL_IF -->
232 <!-- TMPL_IF NAME="justify_C" --><option value='C' selected="selected">Center</option>
233 <!-- TMPL_ELSE --><option value='C'>Center</option>
234 <!-- /TMPL_IF -->
235 <!-- TMPL_IF NAME="justify_R" --><option value='R' selected="selected">Right</option>
236 <!-- TMPL_ELSE --><option value='R'>Right</option>
237 <!-- /TMPL_IF -->
238 </select>
239 </li>
240
241 </ol>
242 </fieldset>
243 <fieldset class="action">
244         <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/labels/label-home.pl">Cancel</a>
245         <input type="hidden" name="op" value="<!-- TMPL_IF NAME="layout_id" -->save<!-- TMPL_ELSE -->add<!-- /TMPL_IF -->_layout" />
246         <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
247 </fieldset>
248 </form>
249
250 </div>
251 </div>
252 <div class="yui-b">
253 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
254 </div>
255 </div>
256 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->