Koha/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt
Owen Leonard 8ff6189c2a
Bug 33918: Improve translation of title tags: Patron card creator
This patch updates patron card creator templates so that title
tags can be more easily translated.

The patch also makes some minor changes to some templates to improve
consistency between page title, breadcrumb navigation, and page heading.

To test, apply the patch and confirm that the following pages have the
correct title tags:

- Tools -> Patron card creator home page
  - New -> Card batch
  - New -> Image
  - New -> Layout
  - New -> Card template
  - New -> Printer profile
  - Manage -> Card batches
  - Manage -> Images
  - Manage -> Layouts
  - Manage -> Card templates
  - Manage -> Printer profiles

Signed-off-by: Émily-Rose Francoeur <emily-rose.francoeur@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-22 10:52:48 -03:00

134 lines
7.9 KiB
Text

[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Patron card printing/exporting") | html %] &rsaquo;
[% t("Patron cards") | html %] &rsaquo;
[% t("Tools") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' popup => 1%]
</head>
<body id="pcard_print" class="tools pcard">
<div class="container-fluid">
<h1>Patron card printing/exporting</h1>
[% IF ( batches ) %]
<form>
<h3>Click on the following link(s) to download the exported batch(es).</h3>
<fieldset>
[% FOREACH batche IN batches %]
[% IF ( batche.label_ids ) %]
<legend>[% batche.card_count | html %] Single patron cards</legend>
<p>
<a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.label_ids | html %]">label_single_[% batche.card_count | html %].pdf</a>
</p>
[% ELSIF ( batche.borrower_numbers ) %]
<legend>[% batche.card_count | html %] Single patron cards</legend>
<p>
<a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.borrower_numbers | html %]">label_single_[% batche.card_count | html %].pdf</a>
</p>
[% ELSE %]
<legend>Card batch number [% batche.batch_id | html %]</legend>
<p>
<a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %]">label_batch_[% batche.batch_id | html %].pdf</a>
</p>
[% END %]
[% END %]
</fieldset>
<fieldset class="action">
<input type="button" class="gb-close" value="Done" />
</fieldset>
</form>
[% ELSIF ( patronlist_id && template_id && layout_id ) %]
<div id="export_patron_list">
<h3>Click on the link to download the patron cards from the patron list.</h3>
<p>
<a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id | html %]&amp;template_id=[% template_id | html %]&amp;layout_id=[% layout_id | html %]&amp;layout_back_id=[% layout_back_id | html %]&amp;start_card=[% start_card | html %]">label_patronlist_[% patronlist_id | html %].pdf</a>
</p>
</div>
[% ELSE %]
<h3>
[% IF ( label_ids ) %]
[% IF ( card_count == 1 ) %]<span>Exporting 1 patron card</span>[% ELSE %]<span>Exporting [% card_count | html %] patron cards</span>[% END %]
[% ELSIF ( borrower_numbers ) %]
[% IF ( borrower_count == 1 ) %]<span>Exporting 1 patron card</span>[% ELSE %]<span>Exporting [% borrower_count | html %] patron cards</span>[% END %]
[% ELSIF ( patronlist_id ) %] <span>Exporting from patron list</span>
[% ELSE %]
[% IF ( multi_batch_count == 1 ) %]<span>1 batch to export</span>[% ELSE %]<span>[% multi_batch_count | html %] batches to export</span>[% END %]
[% END %]
</h3>
<form id="exportingf" name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
<input type="hidden" name="op" value="export" />
<input type="hidden" name="referer" value="[% referer | html %]" />
[% FOREACH batch_id IN batch_ids %]
<input type="hidden" name="batch_id" value="[% batch_id.batch_id | html %]" />
[% END %]
[% FOREACH label_id IN label_ids %]
<input type="hidden" name="label_id" value="[% label_id.label_id | html %]" />
[% END %]
[% FOREACH borrower_number IN borrower_numbers %]
<input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number | html %]" />
[% END %]
[% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id | html %]" /> [% END %]
<fieldset class="rows">
<ol>
<li>
<label style="width:9em" for="template_id">Select a template to be applied: </label>
<select name="template_id" id="template_id">
[% FOREACH template IN templates %]
<option value="[% template.template_id | html %]">[% template.template_code | html %]</option>
[% END %]
</select>
</li>
<li>
<label style="width:9em" for="layout_id">Select a layout to be applied: </label>
<select name="layout_id" id="layout_id">
[% FOREACH layout IN layouts %]
<option value="[% layout.layout_id | html %]">[% layout.layout_name | html %]</option>
[% END %]
</select>
</li>
<li>
<label style="width:9em" for="layout_back_id">Select a layout for back side: </label>
<select name="layout_back_id" id="layout_back_id">
<option value="0">Back side layout not used</option>
[% FOREACH layout IN layouts %]
<option value="[% layout.layout_id | html %]">[% layout.layout_name | html %]</option>
[% END %]
</select>
<span class="hint">Used for duplex printers (needs a '1 up template')</span>
</li>
<li>
<label style="width:9em" for="start_card">Enter starting card position: </label>
<input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
</li>
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Export" />
<a href="#" class="cancel gb-close">Cancel</a>
</fieldset>
</form>
[% END %]
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'greybox.inc' %]
<script>
function Done() {
window.location = "[% referer | html %]";
};
$(document).ready(function(){
$(".gb-close").on("click",function(){
parent.parent.GB_hide();
});
});
</script>
[% END %]
[% INCLUDE 'popup-bottom.inc' %]