1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Labels</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/JavaScript" language="JavaScript">
6 $(document).ready(function() {
7 $("input[@name='layout_choice']").change( function() { layout_method() } );
10 function layout_method() {
11 if( $("input[@name='layout_choice']:checked").val() == 'layout_string' ) {
12 $('#layout_table').hide();
13 $('#layout_string').show();
15 $('#layout_table').show();
16 $('#layout_string').hide();
23 <!-- TMPL_INCLUDE NAME="header.inc" -->
24 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
25 <div id="breadcrumbs">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
27 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
28 <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> ›
29 <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout
31 <div id="doc3" class="yui-t2">
35 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
36 <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
37 <fieldset class="rows">
38 <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
41 <label for="layout_name">Layout Name</label>
42 <input type="text" name="layout_name" id="layout_name" size="20" value="<!-- TMPL_VAR NAME="layout_name" -->" />
45 <label for="barcode_type">Choose Barcode Type (encoding)</label>
46 <select name="barcode_type" id="barcode_type">
47 <!-- TMPL_LOOP NAME="barcode_types" -->
48 <!-- TMPL_IF NAME="selected" -->
49 <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
51 <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
57 <label for="printing_type">Choose Layout Type</label>
58 <select name="printing_type" id="printing_type">
59 <!-- TMPL_LOOP NAME="label_types" -->
60 <!-- TMPL_IF NAME="selected" -->
61 <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
63 <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
69 <fieldset class="rows">
70 <legend>Bibliographic Data to Print</legend>
71 <input type="radio" name="layout_choice" value="layout_table" <!-- TMPL_UNLESS NAME="layout_string" -->checked="checked"<!-- /TMPL_UNLESS -->" >Choose Order Of Text Fields to Print</input>
73 <fieldset id="layout_table">
74 <table summary="fields to print">
75 <!-- TMPL_LOOP NAME="field_table" -->
77 <!-- TMPL_LOOP NAME="text_fields" -->
78 <!-- TMPL_IF NAME="field_empty" -->
84 <select name="<!-- TMPL_VAR NAME="field_name" -->" id="<!-- TMPL_VAR NAME="field_name" -->">
85 <!-- TMPL_LOOP NAME="order" -->
86 <!-- TMPL_IF Name="selected" -->
87 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected"><!-- TMPL_VAR Name="num" --></option>
89 <option value="<!-- TMPL_VAR Name="num" -->"><!-- TMPL_VAR Name="num" --></option>
93 <label for="<!-- TMPL_VAR NAME="field_name" -->"><!-- TMPL_VAR NAME="field_label" --></label>
103 <input type="radio" name="layout_choice" value="layout_string" <!-- TMPL_IF NAME="layout_string" -->checked="checked"<!-- /TMPL_IF -->"> List Fields </input>
104 <fieldset id="layout_string" class="brief">
105 <label for="format_string">Data Fields</label>
106 <input type="text" name="format_string" id="format_string" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="format_string" -->" />
108 <p>Enter a comma separated list of fields to print. You may include any <em>Koha field</em> or MARC subfield.</p>
109 <p>See online help for advanced options</p>
110 <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
116 <label for="guidebox">Draw Guide Boxes</label>
117 <!-- TMPL_IF NAME="guidebox"-->
118 <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
120 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
124 <label for="callnum_split">Split Call Numbers</label>
125 <!-- TMPL_IF NAME="callnum_split"-->
126 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
128 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
132 <label for="text_justify">Text Justification</label>
133 <select name="text_justify" id="text_justify">
134 <!-- TMPL_LOOP Name="text_justification_types" -->
135 <!-- TMPL_IF Name="selected" -->
136 <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
138 <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
144 <label for="font">Font</label>
145 <select name="font" id="font">
146 <!-- TMPL_LOOP Name="font_types" -->
147 <!-- TMPL_IF Name="selected" -->
148 <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
150 <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
156 <label for="font_size">Font Size</label>
157 <input type="text" name="font_size" id="font_size" size="2" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="font_size" -->" />
161 <fieldset class="action">
162 <input type="submit" value="Submit" /><a class="cancel" href="/cgi-bin/koha/labels/label-layout.pl">Cancel</a>
163 <input type="hidden" name="op" value="save" />
164 <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
170 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
173 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->