Lines 1-14
Link Here
|
|
|
1 |
[% PROCESS 'i18n.inc' %] |
1 |
[% BLOCK translate_label_types %] |
2 |
[% BLOCK translate_label_types %] |
2 |
[% SWITCH type %] |
3 |
[% SWITCH type %] |
3 |
[% CASE 'BIB' %]Biblio |
4 |
[% CASE 'BIB' %][% t('Biblio') %] |
4 |
[% CASE 'BARBIB' %]Barcode/Biblio |
5 |
[% CASE 'BARBIB' %][% t('Barcode/Biblio') %] |
5 |
[% CASE 'BIBBAR' %]Biblio/Barcode |
6 |
[% CASE 'BIBBAR' %][% t('Biblio/Barcode') %] |
6 |
[% CASE 'ALT' %]Alternating |
7 |
[% CASE 'ALT' %][% t('Alternating') %] |
7 |
[% CASE 'BAR' %]Barcode |
8 |
[% CASE 'BAR' %][% t('Barcode') %] |
8 |
[% END %] |
9 |
[% END %] |
9 |
[% END %] |
10 |
[% END %] |
10 |
[% INCLUDE 'doc-head-open.inc' %] |
11 |
[% INCLUDE 'doc-head-open.inc' %] |
11 |
<title>Koha › Tools › Label creator › Layouts › [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title> |
12 |
<title>[% t('Koha › Tools › Label creator › Layouts ›') %] [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %]</title> |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
13 |
[% INCLUDE 'doc-head-close.inc' %] |
13 |
<script type="text/JavaScript"> |
14 |
<script type="text/JavaScript"> |
14 |
//<![CDATA[ |
15 |
//<![CDATA[ |
Lines 42-61
Link Here
|
42 |
</head> |
43 |
</head> |
43 |
[% BLOCK translate_justification_types %] |
44 |
[% BLOCK translate_justification_types %] |
44 |
[% SWITCH type %] |
45 |
[% SWITCH type %] |
45 |
[% CASE 'L' %]Left |
46 |
[% CASE 'L' %][% t('Left') %] |
46 |
[% CASE 'C' %]Center |
47 |
[% CASE 'C' %][% t('Center') %] |
47 |
[% CASE 'R' %]Right |
48 |
[% CASE 'R' %][% t('Right') %] |
48 |
[% END %] |
49 |
[% END %] |
49 |
[% END %] |
50 |
[% END %] |
50 |
<body id="labels_label-edit-layout" class="tools labels"> |
51 |
<body id="labels_label-edit-layout" class="tools labels"> |
51 |
[% INCLUDE 'header.inc' %] |
52 |
[% INCLUDE 'header.inc' %] |
52 |
[% INCLUDE 'cat-search.inc' %] |
53 |
[% INCLUDE 'cat-search.inc' %] |
53 |
<div id="breadcrumbs"> |
54 |
<div id="breadcrumbs"> |
54 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
55 |
<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › |
55 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
56 |
<a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › |
56 |
<a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> › |
57 |
<a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> › |
57 |
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a> › |
58 |
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">[% t('Layouts') %]</a> › |
58 |
[% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %] |
59 |
[% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %] |
59 |
</div> |
60 |
</div> |
60 |
<div id="doc3" class="yui-t2"> |
61 |
<div id="doc3" class="yui-t2"> |
61 |
<div id="bd"> |
62 |
<div id="bd"> |
Lines 69-82
Link Here
|
69 |
</div> |
70 |
</div> |
70 |
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get"> |
71 |
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get"> |
71 |
<fieldset class="rows"> |
72 |
<fieldset class="rows"> |
72 |
<legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend> |
73 |
<legend>[% IF ( layout_id ) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('label layout') %]</legend> |
73 |
<ol> |
74 |
<ol> |
74 |
<li> |
75 |
<li> |
75 |
<label for="layout_name">Layout name: </label> |
76 |
<label for="layout_name">[% t('Layout name:') %] </label> |
76 |
<input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" /> |
77 |
<input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" /> |
77 |
</li> |
78 |
</li> |
78 |
<li> |
79 |
<li> |
79 |
<label for="barcode_type">Choose barcode type (encoding): </label> |
80 |
<label for="barcode_type">[% t('Choose barcode type (encoding):') %] </label> |
80 |
<select name="barcode_type" id="barcode_type"> |
81 |
<select name="barcode_type" id="barcode_type"> |
81 |
[% FOREACH barcode_type IN barcode_types %] |
82 |
[% FOREACH barcode_type IN barcode_types %] |
82 |
[% IF ( barcode_type.selected ) %] |
83 |
[% IF ( barcode_type.selected ) %] |
Lines 88-94
Link Here
|
88 |
</select> |
89 |
</select> |
89 |
</li> |
90 |
</li> |
90 |
<li> |
91 |
<li> |
91 |
<label for="printing_type">Choose layout type: </label> |
92 |
<label for="printing_type">[% t('Choose layout type:') %] </label> |
92 |
<select name="printing_type" id="printing_type"> |
93 |
<select name="printing_type" id="printing_type"> |
93 |
[% FOREACH label_type IN label_types %] |
94 |
[% FOREACH label_type IN label_types %] |
94 |
[% IF ( label_type.selected ) %] |
95 |
[% IF ( label_type.selected ) %] |
Lines 101-112
Link Here
|
101 |
</li> |
102 |
</li> |
102 |
<li> |
103 |
<li> |
103 |
<fieldset> |
104 |
<fieldset> |
104 |
<legend>Bibliographic data to print</legend> |
105 |
<legend>[% t('Bibliographic data to print') %]</legend> |
105 |
<ol> |
106 |
<ol> |
106 |
<li class="radio">[% IF ( layout_string ) %] |
107 |
<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> |
108 |
<input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">[% t('Choose order of text fields to print') %]</label> |
108 |
[% ELSE %] |
109 |
[% ELSE %] |
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> |
110 |
<input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">[% t('Choose Order Of Text Fields to Print') %]</label> |
110 |
[% END %] |
111 |
[% END %] |
111 |
<div id="layout_table"> |
112 |
<div id="layout_table"> |
112 |
<p> |
113 |
<p> |
Lines 120-169
Link Here
|
120 |
<option value="[% orde %]">[% orde %]</option> |
121 |
<option value="[% orde %]">[% orde %]</option> |
121 |
[% END %] |
122 |
[% END %] |
122 |
[% END %] |
123 |
[% END %] |
123 |
</select> <label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label> |
124 |
</select> <label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label> |
124 |
|
125 |
|
125 |
|
126 |
|
126 |
|
127 |
|
127 |
[% END %] |
128 |
[% END %] |
128 |
</p> |
129 |
</p> |
129 |
</div> |
130 |
</div> |
130 |
</li> |
131 |
</li> |
131 |
[% UNLESS ( layout_string ) %] |
132 |
[% 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> |
133 |
<li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">[% t('List fields') %]</label></li> |
133 |
[% ELSE %] |
134 |
[% ELSE %] |
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> |
135 |
<li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">[% t('List Fields') %]</label></li> |
135 |
[% END %] |
136 |
[% END %] |
136 |
<li> <fieldset id="layout_string" class="brief"> |
137 |
<li> <fieldset id="layout_string" class="brief"> |
137 |
<label for="format_string">Data fields</label> |
138 |
<label for="format_string">[% t('Data fields') %]</label> |
138 |
<input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" /> |
139 |
<input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" /> |
139 |
<div class="hint"> |
140 |
<div class="hint"> |
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>[% t('Enter a comma separated list of fields to print.') %] [% t('You may include any') %] <em>[% t('Koha field') %]</em> [% t('or MARC subfield.') %]</p> |
141 |
<p>See online help for advanced options</p> |
142 |
<p>[% t('See online help for advanced options') %]</p> |
142 |
<p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p> |
143 |
<p>[% t('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> |
144 |
<p>[% t('Fields homebranch_description, holdingbranch_description, ccode_description, location_description and permanent_location_description show description instead of code.') %]</p> |
144 |
</div> |
145 |
</div> |
145 |
</fieldset></li> |
146 |
</fieldset></li> |
146 |
</ol> |
147 |
</ol> |
147 |
</fieldset> |
148 |
</fieldset> |
148 |
</li> |
149 |
</li> |
149 |
<li> |
150 |
<li> |
150 |
<label for="guidebox">Draw guide boxes: </label> |
151 |
<label for="guidebox">[% t('Draw guide boxes:') %] </label> |
151 |
[% IF ( guidebox ) %] |
152 |
[% IF ( guidebox ) %] |
152 |
<input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" /> |
153 |
<input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" /> |
153 |
[% ELSE %] |
154 |
[% ELSE %] |
154 |
<input type="checkbox" name="guidebox" id="guidebox" value="1" /> |
155 |
<input type="checkbox" name="guidebox" id="guidebox" value="1" /> |
155 |
[% END %] |
156 |
[% END %] |
156 |
</li> |
157 |
</li> |
157 |
<li> |
158 |
<li> |
158 |
<label for="callnum_split">Split call numbers: </label> |
159 |
<label for="callnum_split">[% t('Split call numbers:') %] </label> |
159 |
[% IF ( callnum_split ) %] |
160 |
[% IF ( callnum_split ) %] |
160 |
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" /> |
161 |
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" /> |
161 |
[% ELSE %] |
162 |
[% ELSE %] |
162 |
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" /> |
163 |
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" /> |
163 |
[% END %] |
164 |
[% END %] |
164 |
</li> |
165 |
</li> |
165 |
<li> |
166 |
<li> |
166 |
<label for="text_justify">Text justification: </label> |
167 |
<label for="text_justify">[% t('Text justification:') %] </label> |
167 |
<select name="text_justify" id="text_justify"> |
168 |
<select name="text_justify" id="text_justify"> |
168 |
[% FOREACH text_justification_type IN text_justification_types %] |
169 |
[% FOREACH text_justification_type IN text_justification_types %] |
169 |
[% IF ( text_justification_type.selected ) %] |
170 |
[% IF ( text_justification_type.selected ) %] |
Lines 175-181
Link Here
|
175 |
</select> |
176 |
</select> |
176 |
</li> |
177 |
</li> |
177 |
<li> |
178 |
<li> |
178 |
<label for="font">Font: </label> |
179 |
<label for="font">[% t('Font:') %] </label> |
179 |
<select name="font" id="font"> |
180 |
<select name="font" id="font"> |
180 |
[% FOREACH font_type IN font_types %] |
181 |
[% FOREACH font_type IN font_types %] |
181 |
[% IF ( font_type.selected ) %] |
182 |
[% IF ( font_type.selected ) %] |
Lines 187-199
Link Here
|
187 |
</select> |
188 |
</select> |
188 |
</li> |
189 |
</li> |
189 |
<li> |
190 |
<li> |
190 |
<label for="font_size">Font size: </label> |
191 |
<label for="font_size">[% t('Font size:') %] </label> |
191 |
<input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" /> |
192 |
<input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" /> |
192 |
</li> |
193 |
</li> |
193 |
<li> |
194 |
<li> |
194 |
<label for="oblique_title">Oblique title: </label> |
195 |
<label for="oblique_title">[% t('Oblique title:') %] </label> |
195 |
[% IF ( oblique_title ) %] |
196 |
[% IF ( oblique_title ) %] |
196 |
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" checked="checked" /> |
197 |
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" checked="checked" /> |
197 |
[% ELSE %] |
198 |
[% ELSE %] |
198 |
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" /> |
199 |
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" /> |
199 |
[% END %] |
200 |
[% END %] |
Lines 202-208
Link Here
|
202 |
</fieldset> |
203 |
</fieldset> |
203 |
<fieldset class="action"> |
204 |
<fieldset class="action"> |
204 |
<input type="submit" value="Save" /> |
205 |
<input type="submit" value="Save" /> |
205 |
<a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a> |
206 |
<a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">[% t('Cancel') %]</a> |
206 |
<input type="hidden" name="op" value="save" /> |
207 |
<input type="hidden" name="op" value="save" /> |
207 |
<input type="hidden" name="layout_id" value="[% layout_id %]" /> |
208 |
<input type="hidden" name="layout_id" value="[% layout_id %]" /> |
208 |
</fieldset> |
209 |
</fieldset> |