1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Labels</title>
3 [% INCLUDE '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 [% INCLUDE 'header.inc' %]
24 [% INCLUDE '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 Home</a> ›
29 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Mange Label Layouts</a> ›
30 [% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] Label Layout
32 <div id="doc3" class="yui-t2">
36 <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
37 <fieldset class="rows">
38 <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] Label Layout</legend>
41 <label for="layout_name">Layout Name</label>
42 <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
45 <label for="barcode_type">Choose Barcode Type (encoding)</label>
46 <select name="barcode_type" id="barcode_type">
47 [% FOREACH barcode_type IN barcode_types %]
48 [% IF ( barcode_type.selected ) %]
49 <option value="[% barcode_type.type %]" selected="selected">[% barcode_type.name %]</option>
51 <option value="[% barcode_type.type %]">[% barcode_type.name %]</option>
57 <label for="printing_type">Choose Layout Type</label>
58 <select name="printing_type" id="printing_type">
59 [% FOREACH label_type IN label_types %]
60 [% IF ( label_type.selected ) %]
61 <option value="[% label_type.type %]" selected="selected">[% label_type.name %]</option>
63 <option value="[% label_type.type %]">[% label_type.name %]</option>
70 <legend>Bibliographic Data to Print</legend>
72 <li class="radio">[% IF ( layout_string ) %]
73 <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
75 <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
77 <div id="layout_table">
78 [% FOREACH field_tabl IN field_table %]
80 [% FOREACH text_field IN field_tabl.text_fields %]
81 [% IF ( text_field.field_empty ) %]
83 <select name="[% text_field.field_name %]" id="[% text_field.field_name |url %]">
84 [% FOREACH orde IN text_field.order %]
85 [% IF ( orde.selected ) %]
86 <option value="[% orde.num %]" selected="selected">[% orde.num %]</option>
88 <option value="[% orde.num %]">[% orde.num %]</option>
92 <label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label>
99 [% UNLESS ( layout_string ) %]
100 <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">List Fields</label></li>
102 <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">List Fields</label></li>
104 <li> <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="[% format_string |html %]" />
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>
117 <label for="guidebox">Draw Guide Boxes</label>
118 [% IF ( guidebox ) %]
119 <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
121 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
125 <label for="callnum_split">Split Call Numbers</label>
126 [% IF ( callnum_split ) %]
127 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
129 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
133 <label for="text_justify">Text Justification</label>
134 <select name="text_justify" id="text_justify">
135 [% FOREACH text_justification_type IN text_justification_types %]
136 [% IF ( text_justification_type.selected ) %]
137 <option value="[% text_justification_type.type %]" selected="selected">[% text_justification_type.name %]</option>
139 <option value="[% text_justification_type.type %]">[% text_justification_type.name %]</option>
145 <label for="font">Font</label>
146 <select name="font" id="font">
147 [% FOREACH font_type IN font_types %]
148 [% IF ( font_type.selected ) %]
149 <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
151 <option value="[% font_type.type %]">[% font_type.name %]</option>
157 <label for="font_size">Font Size</label>
158 <input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" />
162 <fieldset class="action">
163 <input type="submit" value="Save" />
164 <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
165 <input type="hidden" name="op" value="save" />
166 <input type="hidden" name="layout_id" value="[% layout_id %]" />
172 [% INCLUDE 'labels-menu.inc' %]
175 [% INCLUDE 'intranet-bottom.inc' %]