1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Tools › Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <script type="text/javascript">
4 $(document).ready(function() {
5 $("input[@name='layoutchoice']").change( function() { layout_method() } );
8 function layout_method() {
9 if( $("input[@name='layoutchoice']:checked").val() == 'layout_string' ) {
10 $('#layout_tx').hide();
11 $('#layout_string').show();
13 $('#layout_tx').show();
14 $('#layout_string').hide();
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> › <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</div>
26 <div id="doc3" class="yui-t2">
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>
36 <li><label for="layoutname">Layout Name</label>
37 <input type="text" name="layoutname" id="layoutname" size="20" value="<!-- TMPL_VAR NAME="layoutname" -->" /></li>
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>
45 <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
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>
57 <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
64 <fieldset class="rows">
66 Bibliographic Data to Print
68 <!-- TMPL_IF NAME="layout_string" -->
69 <input type="radio" name="layoutchoice" value="layout_tx" />Choose Order Of Text Fields to Print
71 <input type="radio" name="layoutchoice" value="layout_tx" checked="checked" />Choose Order Of Text Fields to Print
74 <fieldset id="layout_tx">
75 <table summary="fields to print">
78 <select name="tx_title" id="tx_title">
79 <!-- TMPL_LOOP Name="tx_title" -->
80 <!-- TMPL_IF Name="selected" -->
81 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
82 <!-- TMPL_VAR Name="num" -->
85 <option value="<!-- TMPL_VAR Name="num" -->">
86 <!-- TMPL_VAR Name="num" -->
91 <label for="tx_title">Title</label>
94 <select name="tx_author" id="tx_author">
95 <!-- TMPL_LOOP Name="tx_author" -->
96 <!-- TMPL_IF Name="selected" -->
97 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
98 <!-- TMPL_VAR Name="num" -->
101 <option value="<!-- TMPL_VAR Name="num" -->">
102 <!-- TMPL_VAR Name="num" -->
107 <label for="tx_author">Author</label>
110 <select name="tx_isbn" id="tx_isbn">
111 <!-- TMPL_LOOP Name="tx_isbn" -->
112 <!-- TMPL_IF Name="selected" -->
113 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
114 <!-- TMPL_VAR Name="num" -->
117 <option value="<!-- TMPL_VAR Name="num" -->">
118 <!-- TMPL_VAR Name="num" -->
123 <label for="tx_isbn">ISBN</label>
128 <select name="tx_issn" id="tx_issn">
129 <!-- TMPL_LOOP Name="tx_issn" -->
130 <!-- TMPL_IF Name="selected" -->
131 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
132 <!-- TMPL_VAR Name="num" -->
135 <option value="<!-- TMPL_VAR Name="num" -->">
136 <!-- TMPL_VAR Name="num" -->
141 <label for="tx_issn">ISSN</label>
144 <select name="tx_itemtype" id="tx_itemtype">
145 <!-- TMPL_LOOP Name="tx_itemtype" -->
146 <!-- TMPL_IF Name="selected" -->
147 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
148 <!-- TMPL_VAR Name="num" -->
151 <option value="<!-- TMPL_VAR Name="num" -->">
152 <!-- TMPL_VAR Name="num" -->
157 <label for="tx_itemtype">Itemtype</label>
160 <select id="tx_barcode" name="tx_barcode">
161 <!-- TMPL_LOOP Name="tx_barcode" -->
162 <!-- TMPL_IF Name="selected" -->
163 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
164 <!-- TMPL_VAR Name="num" -->
167 <option value="<!-- TMPL_VAR Name="num" -->">
168 <!-- TMPL_VAR Name="num" -->
173 <label for="tx_barcode">Barcode (as text)</label>
178 <select name="tx_itemcallnumber" id="tx_itemcallnumber">
179 <!-- TMPL_LOOP Name="tx_itemcallnumber" -->
180 <!-- TMPL_IF Name="selected" -->
181 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
182 <!-- TMPL_VAR Name="num" -->
185 <option value="<!-- TMPL_VAR Name="num" -->">
186 <!-- TMPL_VAR Name="num" -->
191 <label for="tx_itemcallnumber">Call Number</label>
200 <!-- TMPL_IF NAME="formatstring" -->
201 <input type="radio" name="layoutchoice" value="layout_string" checked="checked"/> List Fields
203 <input type="radio" name="layoutchoice" value="layout_string" /> List Fields
205 <fieldset id="layout_string" class="brief">
206 <label for="layoutname">Data Fields</label>
208 <input type="text" name="formatstring" id="formatstring" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="formatstring" -->" />
211 <p>Enter a comma separated list of fields to print. You may include any <em>Koha field</em> or MARC subfield.</p>
212 <p>See online help for advanced options</p>
213 <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
218 <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>
221 <li><label for="guidebox">Draw Guide Boxes</label>
222 <!-- TMPL_IF NAME="guidebox"-->
223 <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
225 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
226 <!-- /TMPL_IF --></li>
228 <li><label for="callnum_split">Split Call Numbers</label>
229 <!-- TMPL_IF NAME="callnum_split"-->
230 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
232 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
233 <!-- /TMPL_IF --></li>
235 <li><label for="text_justify">Text Justification</label>
236 <select id="text_justify" name="text_justify">
237 <!-- TMPL_IF NAME="justify_L" --><option value='L' selected="selected">Left</option>
238 <!-- TMPL_ELSE --><option value='L'>Left</option>
240 <!-- TMPL_IF NAME="justify_C" --><option value='C' selected="selected">Center</option>
241 <!-- TMPL_ELSE --><option value='C'>Center</option>
243 <!-- TMPL_IF NAME="justify_R" --><option value='R' selected="selected">Right</option>
244 <!-- TMPL_ELSE --><option value='R'>Right</option>
251 <fieldset class="action">
252 <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/labels/label-home.pl">Cancel</a>
253 <input type="hidden" name="op" value="<!-- TMPL_IF NAME="layout_id" -->save<!-- TMPL_ELSE -->add<!-- /TMPL_IF -->_layout" />
254 <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
261 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
264 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->