Koha/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt
Kyle M Hall a8942c2884 Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues
Revert "DBRev to make notes of the XSS patches and the new important dependency."

This reverts commit e140603a59.

Revert "Bug 13618: Specific for branches.opac_info"

This reverts commit 06e4a50f00.

Revert "Bug 13618: (follow-up) Specific for other prefs"

This reverts commit d6475a111f.

Revert "Bug 13618: Fix for debarredcomment and patron messages"

This reverts commit dd98c9df92.

Revert "Bug 13618: Do not display html tags in patron's notices"

This reverts commit a065b243fe.

Revert "Bug 13618: Do not display   and html tags in item fields content"

This reverts commit baeeaffbf8.

Revert "Bug 13618: Fix for system preference description"

This reverts commit a967a09261.

Revert "Bug 13618: Remove html filters for newly pushed code"

This reverts commit 0e98662b10.

Revert "Bug 13618: (follow-up) add missing lines for opac-shelves"

This reverts commit fc2fb605e5.

Revert "Bug 13618: (follow-up) Specific for ColumnsSettings"

This reverts commit bc308fdd9c.

Revert "Bug 13618: Fix for edit biblios and items"

This reverts commit 811c4e8402.

Revert "Bug 13618: followup to remove tabs"

This reverts commit ca8e8c397c.

Revert "Bug 13618: Fix last occurrences recently introduced to master"

This reverts commit bb417b256b.

Revert "Bug 13618: Fix for news"

This reverts commit ae5b98020a.

Revert "Bug 13618: Fix escape on sending baskets or shelves by email"

This reverts commit a7731ffe25.

Revert "Bug 13618: Specific for XSLTBloc"

This reverts commit 11fa38dc29.

Revert "Bug 13618: Specific for Salutation on editing a patron"

This reverts commit 36c07ad6d3.

Revert "Bug 13618: Specific for other prefs"

This reverts commit e6ea281a3b.

Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference"

This reverts commit 7824874557.

Revert "Bug 13618: Specific for ColumnsSettings"

This reverts commit 1834da3da3.

Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs"

This reverts commit 21ae62b253.

Revert "Bug 13618: Fix error 'Not a GLOB reference'"

This reverts commit 602bdbab4c.

Revert "Bug 13618: Specific for the ISBD view"

This reverts commit d254362435.

Revert "Bug 13618: Specific for pagination_bar"

This reverts commit 8837a8ae68.

Revert "Bug 13618: Specific places where we don't need to escape variables - intra"

This reverts commit 00eff140b3.

Revert "Bug 13618: Remove html filters at the intranet"

This reverts commit 7db851ff03.

Revert "Bug 13618: Specific places where we don't need to escape variables"

This reverts commit 49a3738b8d.

Revert "Bug 13618: Remove html filters at the OPAC"

This reverts commit cedaa0e23e.

Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter"

This reverts commit 01b38d3b13.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-02-11 19:39:53 +00:00

213 lines
13 KiB
Text

[% BLOCK translate_label_types %]
[% SWITCH type %]
[% CASE 'BIB' %]Biblio
[% CASE 'BARBIB' %]Barcode/Biblio
[% CASE 'BIBBAR' %]Biblio/Barcode
[% CASE 'ALT' %]Alternating
[% CASE 'BAR' %]Barcode
[% END %]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
$(document).ready(function() {
$("input[name='layout_choice']").change( function() { layout_method() } );
layout_method();
});
function layout_method() {
if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
$('#layout_table').hide();
$('#layout_string').show();
} else {
$('#layout_table').show();
$('#layout_string').hide();
}
}
function checkOblique() {
var font = document.getElementById("font");
var selectedfont = font.options[font.selectedIndex].value;
if ( selectedfont.match("I$") || selectedfont.match("O$") ) {
document.getElementById("oblique_title").disabled = true;
} else {
document.getElementById("oblique_title").disabled = false;
}
}
//]]>
</script>
</head>
[% BLOCK translate_justification_types %]
[% SWITCH type %]
[% CASE 'L' %]Left
[% CASE 'C' %]Center
[% CASE 'R' %]Right
[% END %]
[% END %]
<body id="labels_label-edit-layout" class="tools labels">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
<a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a> &rsaquo;
[% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
[% INCLUDE 'labels-toolbar.inc' %]
<div class="yui-u first">
</div>
</div>
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
<fieldset class="rows">
<legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend>
<ol>
<li>
<label for="layout_name">Layout name: </label>
<input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
</li>
<li>
<label for="barcode_type">Choose barcode type (encoding): </label>
<select name="barcode_type" id="barcode_type">
[% FOREACH barcode_type IN barcode_types %]
[% IF ( barcode_type.selected ) %]
<option value="[% barcode_type.type %]" selected="selected">[% barcode_type.name %]</option>
[% ELSE %]
<option value="[% barcode_type.type %]">[% barcode_type.name %]</option>
[% END %]
[% END %]
</select>
</li>
<li>
<label for="printing_type">Choose layout type: </label>
<select name="printing_type" id="printing_type">
[% FOREACH label_type IN label_types %]
[% IF ( label_type.selected ) %]
<option value="[% label_type.type %]" selected="selected">[% PROCESS translate_label_types type=label_type.type %]</option>
[% ELSE %]
<option value="[% label_type.type %]">[% PROCESS translate_label_types type=label_type.type %]</option>
[% END %]
[% END %]
</select>
</li>
<li>
<fieldset>
<legend>Bibliographic data to print</legend>
<ol>
<li class="radio">[% IF ( layout_string ) %]
<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>
[% ELSE %]
<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>
[% END %]
<div id="layout_table">
<p>
[% FOREACH text_field IN fields %]
<select name="[% text_field.field_name %]" id="[% text_field.field_name |url %]">
<option value=""></option>
[% FOREACH orde IN [1..field_count] %]
[% IF ( orde == text_field.order ) %]
<option value="[% orde %]" selected="1">[% orde %]</option>
[% ELSE %]
<option value="[% orde %]">[% orde %]</option>
[% END %]
[% END %]
</select>&nbsp;<label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label>
&nbsp;&nbsp;
[% END %]
</p>
</div>
</li>
[% UNLESS ( layout_string ) %]
<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>
[% ELSE %]
<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>
[% END %]
<li> <fieldset id="layout_string" class="brief">
<label for="format_string">Data fields</label>
<input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" />
<div class="hint">
<p>Enter a comma separated list of fields to print. You may include any <em>Koha field</em> or MARC subfield.</p>
<p>See online help for advanced options</p>
<p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
<p>Fields homebranch_description, holdingbranch_description, ccode_description, location_description and permanent_location_description show description instead of code.</p>
</div>
</fieldset></li>
</ol>
</fieldset>
</li>
<li>
<label for="guidebox">Draw guide boxes: </label>
[% IF ( guidebox ) %]
<input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
[% ELSE %]
<input type="checkbox" name="guidebox" id="guidebox" value="1" />
[% END %]
</li>
<li>
<label for="callnum_split">Split call numbers: </label>
[% IF ( callnum_split ) %]
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
[% ELSE %]
<input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
[% END %]
</li>
<li>
<label for="text_justify">Text justification: </label>
<select name="text_justify" id="text_justify">
[% FOREACH text_justification_type IN text_justification_types %]
[% IF ( text_justification_type.selected ) %]
<option value="[% text_justification_type.type %]" selected="selected">[% PROCESS translate_justification_types type=text_justification_type.type %]</option>
[% ELSE %]
<option value="[% text_justification_type.type %]">[% PROCESS translate_justification_types type=text_justification_type.type %]</option>
[% END %]
[% END %]
</select>
</li>
<li>
<label for="font">Font: </label>
<select name="font" id="font" onchange="checkOblique()">
[% FOREACH font_type IN font_types %]
[% IF ( font_type.selected ) %]
<option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
[% ELSE %]
<option value="[% font_type.type %]">[% font_type.name %]</option>
[% END %]
[% END %]
</select>
</li>
<li>
<label for="font_size">Font size: </label>
<input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" />
</li>
<li>
<label for="oblique_title">Oblique title: </label>
[% IF ( oblique_title ) %]
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" checked="checked" />
[% ELSE %]
<input type="checkbox" name="oblique_title" id="oblique_title" value="1" />
[% END %]
</li>
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" />
<a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
<input type="hidden" name="op" value="save" />
<input type="hidden" name="layout_id" value="[% layout_id %]" />
</fieldset>
</form>
</div>
</div>
<div class="yui-b">
[% INCLUDE 'tools-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]