1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Tools › Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
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 <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>
70 <fieldset id="layout_tx">
71 <table summary="fields to print">
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" -->
81 <option value="<!-- TMPL_VAR Name="num" -->">
82 <!-- TMPL_VAR Name="num" -->
87 <label for="tx_title">Title</label>
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" -->
97 <option value="<!-- TMPL_VAR Name="num" -->">
98 <!-- TMPL_VAR Name="num" -->
103 <label for="tx_author">Author</label>
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" -->
113 <option value="<!-- TMPL_VAR Name="num" -->">
114 <!-- TMPL_VAR Name="num" -->
119 <label for="tx_isbn">ISBN</label>
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" -->
131 <option value="<!-- TMPL_VAR Name="num" -->">
132 <!-- TMPL_VAR Name="num" -->
137 <label for="tx_issn">ISSN</label>
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" -->
147 <option value="<!-- TMPL_VAR Name="num" -->">
148 <!-- TMPL_VAR Name="num" -->
153 <label for="tx_itemtype">Itemtype</label>
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" -->
163 <option value="<!-- TMPL_VAR Name="num" -->">
164 <!-- TMPL_VAR Name="num" -->
169 <label for="tx_barcode">Barcode (as text)</label>
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" -->
181 <option value="<!-- TMPL_VAR Name="num" -->">
182 <!-- TMPL_VAR Name="num" -->
187 <label for="tx_itemcallnumber">Call Number</label>
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>
200 <input type="text" name="formatstring" id="formatstring" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="formatstring" -->" />
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>
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>
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" />
217 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
218 <!-- /TMPL_IF --></li>
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" />
224 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
225 <!-- /TMPL_IF --></li>
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>
232 <!-- TMPL_IF NAME="justify_C" --><option value='C' selected="selected">Center</option>
233 <!-- TMPL_ELSE --><option value='C'>Center</option>
235 <!-- TMPL_IF NAME="justify_R" --><option value='R' selected="selected">Right</option>
236 <!-- TMPL_ELSE --><option value='R'>Right</option>
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" -->" />
253 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
256 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->