1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Tools › Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 function jscss(action,o,c1,c2)
6 // from: http://onlinetools.org/articles/unobtrusivejavascript/cssjsseparation.html
9 o.className=!jscss('check',o,c1)?o.className.replace(c2,c1): o.className.replace(c1,c2);
12 if(!jscss('check',o,c1)){o.className+=o.className?' '+c1:c1;}
15 var rep=o.className.match(' '+c1)?' '+c1:c1;
16 o.className=o.className.replace(rep,'');
19 return new RegExp('\\b'+c1+'\\b').test(o.className)
23 function chooselayoutspec(rb) {
24 stringspec=document.getElementById("formatstring");
25 if(rb.value == 'layout_string') {
26 stringspec.disabled=0;
27 jscss('remove',document.getElementById('layout_string'),'disabled','');
28 jscss('add',document.getElementById('layout_tx'),'disabled','');
30 stringspec.disabled=1;
31 jscss('remove',document.getElementById('layout_tx'),'disabled','');
32 jscss('add',document.getElementById('layout_string'),'disabled','');
38 <!-- TMPL_INCLUDE NAME="header.inc" -->
39 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
41 <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>
43 <div id="doc3" class="yui-t2">
48 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
49 <form name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
50 <fieldset class="rows">
51 <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
53 <li><label for="layoutname">Layout Name</label>
54 <input type="text" name="layoutname" id="layoutname" size="20" value="<!-- TMPL_VAR NAME="layoutname" -->" /></li>
56 <li><label for="barcodetype">Choose Barcode Type (encoding)</label>
57 <select name="barcodetype" id="barcodetype">
58 <!-- TMPL_LOOP NAME="barcode_types" -->
59 <!-- TMPL_IF NAME="active" -->
60 <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
62 <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
68 <li><label for="printingtype">Choose Layout Type</label>
69 <select name="printingtype" id="printingtype">
70 <!-- TMPL_LOOP NAME="printingtypes" -->
71 <!-- TMPL_IF NAME="active" -->
72 <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
74 <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
81 <fieldset class="rows">
83 Bibliographic Data to Print
85 <input type="radio" name="layoutchoice" value="layout_tx" <!-- TMPL_UNLESS NAME="layout_string" -->checked="checked"<!-- /TMPL_UNLESS --> onclick="chooselayoutspec(this);" >Choose Order Of Text Fields to Print</input>
86 <fieldset id="layout_tx" <!-- TMPL_IF NAME="layout_string" -->class="disabled"<!-- /TMPL_IF -->>
87 <table summary="fields to print">
90 <select name="tx_title" id="tx_title">
91 <!-- TMPL_LOOP Name="tx_title" -->
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_title">Title</label>
106 <select name="tx_subtitle" id="tx_subtitle">
107 <!-- TMPL_LOOP Name="tx_subtitle" -->
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_subtitle">Subtitle</label>
123 <select name="tx_author" id="tx_author">
124 <!-- TMPL_LOOP Name="tx_author" -->
125 <!-- TMPL_IF Name="selected" -->
126 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
127 <!-- TMPL_VAR Name="num" -->
130 <option value="<!-- TMPL_VAR Name="num" -->">
131 <!-- TMPL_VAR Name="num" -->
136 <label for="tx_author">Author</label>
141 <select name="tx_isbn" id="tx_isbn">
142 <!-- TMPL_LOOP Name="tx_isbn" -->
143 <!-- TMPL_IF Name="selected" -->
144 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
145 <!-- TMPL_VAR Name="num" -->
148 <option value="<!-- TMPL_VAR Name="num" -->">
149 <!-- TMPL_VAR Name="num" -->
154 <label for="tx_isbn">ISBN</label>
158 <select name="tx_issn" id="tx_issn">
159 <!-- TMPL_LOOP Name="tx_issn" -->
160 <!-- TMPL_IF Name="selected" -->
161 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
162 <!-- TMPL_VAR Name="num" -->
165 <option value="<!-- TMPL_VAR Name="num" -->">
166 <!-- TMPL_VAR Name="num" -->
171 <label for="tx_issn">ISSN</label>
174 <select name="tx_itemtype" id="tx_itemtype">
175 <!-- TMPL_LOOP Name="tx_itemtype" -->
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_itemtype">Itemtype</label>
192 <select name="tx_barcode">
193 <!-- TMPL_LOOP Name="tx_barcode" -->
194 <!-- TMPL_IF Name="selected" -->
195 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
196 <!-- TMPL_VAR Name="num" -->
199 <option value="<!-- TMPL_VAR Name="num" -->">
200 <!-- TMPL_VAR Name="num" -->
205 <label for="tx_barcode">Barcode (as text)</label>
208 <select name="tx_classif" id="tx_classif">
209 <!-- TMPL_LOOP Name="tx_classif" -->
210 <!-- TMPL_IF Name="selected" -->
211 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
212 <!-- TMPL_VAR Name="num" -->
215 <option value="<!-- TMPL_VAR Name="num" -->">
216 <!-- TMPL_VAR Name="num" -->
221 <label for="tx_classif">Classification</label>
224 <select name="tx_subclass" id="tx_subclass">
225 <!-- TMPL_LOOP Name="tx_subclass" -->
226 <!-- TMPL_IF Name="selected" -->
227 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
228 <!-- TMPL_VAR Name="num" -->
231 <option value="<!-- TMPL_VAR Name="num" -->">
232 <!-- TMPL_VAR Name="num" -->
237 <label for="tx_subclass">Subclass</label>
242 <select name="tx_itemcallnumber" id="tx_itemcallnumber">
243 <!-- TMPL_LOOP Name="tx_itemcallnumber" -->
244 <!-- TMPL_IF Name="selected" -->
245 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
246 <!-- TMPL_VAR Name="num" -->
249 <option value="<!-- TMPL_VAR Name="num" -->">
250 <!-- TMPL_VAR Name="num" -->
255 <label for="tx_itemcallnumber">Call Number</label>
263 <input type="radio" name="layoutchoice" value="layout_string" <!-- TMPL_IF NAME="layout_string" -->checked="checked"<!-- /TMPL_IF --> onclick="chooselayoutspec(this);"> List Fields </input>
264 <!-- TMPL_IF NAME="layout_string" --><fieldset id="layout_string"><!-- TMPL_ELSE --><fieldset id="layout_string" class="disabled"><!-- /TMPL_IF -->
265 <label for="layoutname">Data Fields</label>
267 <!-- TMPL_IF NAME="layout_string" --><input type="text" name="formatstring" id="formatstring" size="60" value="<!-- TMPL_VAR NAME="formatstring" -->" /><!-- TMPL_ELSE --><input type="text" name="formatstring" id="formatstring" size="60" value="<!-- TMPL_VAR NAME="formatstring" -->" disabled="disabled" /><!-- /TMPL_IF -->
270 <p>Enter a comma separated list of fields to print. You may include any <em>Koha field</em> or MARC subfield.</p>
271 <p>See online help for advanced options</p>
272 <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
277 <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>
280 <li><label for="guidebox">Draw Guide Boxes</label>
281 <!-- TMPL_IF NAME="guidebox"-->
282 <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
284 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
285 <!-- /TMPL_IF --></li>
289 <fieldset class="action">
290 <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/labels/label-home.pl">Cancel</a>
291 <input type="hidden" name="op" value="<!-- TMPL_IF NAME="layout_id" -->save<!-- TMPL_ELSE -->add<!-- /TMPL_IF -->_layout" />
292 <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
299 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
302 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->