1 [% BLOCK translate_label_types %]
4 [% CASE 'BARBIB' %]Barcode/Biblio
5 [% CASE 'BIBBAR' %]Biblio/Barcode
6 [% CASE 'ALT' %]Alternating
7 [% CASE 'BAR' %]Barcode
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Koha › Tools › Label creator › Layouts › [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 <script type="text/JavaScript">
15 $(document).ready(function() {
16 $("input[name='layout_choice']").change( function() { layout_method() } );
18 $("#font").on("change",function(){
22 function layout_method() {
23 if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
24 $('#layout_table').hide();
25 $('#layout_string').show();
27 $('#layout_table').show();
28 $('#layout_string').hide();
31 function checkOblique() {
32 var font = document.getElementById("font");
33 var selectedfont = font.options[font.selectedIndex].value;
34 if ( selectedfont.match("I$") || selectedfont.match("O$") ) {
35 document.getElementById("oblique_title").disabled = true;
37 document.getElementById("oblique_title").disabled = false;
43 [% BLOCK translate_justification_types %]
50 <body id="labels_label-edit-layout" class="tools labels">
51 [% INCLUDE 'header.inc' %]
52 [% INCLUDE 'cat-search.inc' %]
53 <div id="breadcrumbs">
54 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
55 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
56 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> ›
57 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a> ›
58 [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]
60 <div id="doc3" class="yui-t2">
65 [% INCLUDE 'labels-toolbar.inc' %]
66 <div class="yui-u first">
70 <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
71 <fieldset class="rows">
72 <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend>
75 <label for="layout_name">Layout name: </label>
76 <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
79 <label for="barcode_type">Choose barcode type (encoding): </label>
80 <select name="barcode_type" id="barcode_type">
81 [% FOREACH barcode_type IN barcode_types %]
82 [% IF ( barcode_type.selected ) %]
83 <option value="[% barcode_type.type %]" selected="selected">[% barcode_type.name %]</option>
85 <option value="[% barcode_type.type %]">[% barcode_type.name %]</option>
91 <label for="printing_type">Choose layout type: </label>
92 <select name="printing_type" id="printing_type">
93 [% FOREACH label_type IN label_types %]
94 [% IF ( label_type.selected ) %]
95 <option value="[% label_type.type %]" selected="selected">[% PROCESS translate_label_types type=label_type.type %]</option>
97 <option value="[% label_type.type %]">[% PROCESS translate_label_types type=label_type.type %]</option>
104 <legend>Bibliographic data to print</legend>
106 <li class="radio">[% IF ( layout_string ) %]
107 <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>
109 <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>
111 <div id="layout_table">
113 [% FOREACH text_field IN fields %]
114 <select name="[% text_field.field_name %]" id="[% text_field.field_name |url %]">
115 <option value=""></option>
116 [% FOREACH orde IN [1..field_count] %]
117 [% IF ( orde == text_field.order ) %]
118 <option value="[% orde %]" selected="1">[% orde %]</option>
120 <option value="[% orde %]">[% orde %]</option>
123 </select> <label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label>
131 [% UNLESS ( layout_string ) %]
132 <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>
134 <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>
136 <li> <fieldset id="layout_string" class="brief">
137 <label for="format_string">Data fields</label>
138 <input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" />
140 <p>Enter a comma separated list of fields to print. You may include any <em>Koha field</em> or MARC subfield.</p>
141 <p>See online help for advanced options</p>
142 <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
143 <p>Fields homebranch_description, holdingbranch_description, ccode_description, location_description and permanent_location_description show description instead of code.</p>
150 <label for="guidebox">Draw guide boxes: </label>
151 [% IF ( guidebox ) %]
152 <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
154 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
158 <label for="callnum_split">Split call numbers: </label>
159 [% IF ( callnum_split ) %]
160 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
162 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
166 <label for="text_justify">Text justification: </label>
167 <select name="text_justify" id="text_justify">
168 [% FOREACH text_justification_type IN text_justification_types %]
169 [% IF ( text_justification_type.selected ) %]
170 <option value="[% text_justification_type.type %]" selected="selected">[% PROCESS translate_justification_types type=text_justification_type.type %]</option>
172 <option value="[% text_justification_type.type %]">[% PROCESS translate_justification_types type=text_justification_type.type %]</option>
178 <label for="font">Font: </label>
179 <select name="font" id="font">
180 [% FOREACH font_type IN font_types %]
181 [% IF ( font_type.selected ) %]
182 <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
184 <option value="[% font_type.type %]">[% font_type.name %]</option>
190 <label for="font_size">Font size: </label>
191 <input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" />
194 <label for="oblique_title">Oblique title: </label>
195 [% IF ( oblique_title ) %]
196 <input type="checkbox" name="oblique_title" id="oblique_title" value="1" checked="checked" />
198 <input type="checkbox" name="oblique_title" id="oblique_title" value="1" />
203 <fieldset class="action">
204 <input type="submit" value="Save" />
205 <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
206 <input type="hidden" name="op" value="save" />
207 <input type="hidden" name="layout_id" value="[% layout_id %]" />
213 [% INCLUDE 'tools-menu.inc' %]
216 [% INCLUDE 'intranet-bottom.inc' %]