Koha/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt
Owen Leonard 3be7ff5679
Bug 33916: Improve translation of title tags: Labels
This patch label 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:

- Cataloging -> Label creator home
  - Manage -> Label batches
    - Edit ->
      - Click the "Add item(s)" button without entering any barcodes or
        item numbers in the form.
        - Test the search form and search results
  - Manage -> Layouts
  - Manage -> Label templates
  - Manage -> Printer profiles
  - New -> Label batch
  - New -> Layout
  - New -> Label template
  - New -> Printer profile
  - New -> Barcode range
- Cataloging -> Barcode image generator
- Cataloging -> Quick spine label creator

Signed-off-by: Salah Ghedda <salah.ghedda@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-20 17:38:31 -03:00

76 lines
2.8 KiB
Text

[% USE raw %]
[% USE Asset %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Spine labels") | html %] &rsaquo;
[% t("Tools") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
[% Asset.css("css/spinelabel.css") | $raw %]
<style>
@media print {
.noprint { display: none; }
}
</style>
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
</head>
[% IF ( BarcodeNotFound ) %]
<body id="labels_spinelabel-print" class="tools labels">
<div class="dialog message">The barcode [% Barcode | html %] was not found.</div>
<nav class="navbar navbar-default navbar-fixed-bottom noprint">
<div class="container-fluid">
<fieldset class="action">
<button class="btn btn-default close-window">Close</button>
</fieldset>
</div>
</nav>
[% ELSE %]
<body id="labels_spinelabel-print" class="tools labels">
<div id="spinelabel" class="[% Branches.GetLoggedInBranchcode | html %]" data-loggedinbranch="[% Branches.GetLoggedInBranchcode | html %]" data-homebranch="[% itemhomebranch | html %]" data-holdingbranch="[% itemholdingbranch | html %]">
[% content | $raw %]
</div>
<nav class="navbar navbar-default navbar-fixed-bottom noprint">
<div class="container-fluid">
<fieldset class="action">
<button class="btn btn-primary print-label"><i class="fa fa-print"></i> Print this label</button>
<button class="btn btn-default edit-label"><i class="fa fa-lock"></i> Edit this label</button>
</fieldset>
</div>
</nav>
[% END %]
[% Asset.js( "lib/jquery/jquery-3.6.0.min.js" ) | $raw %]
[% Asset.js( "lib/jquery/jquery-migrate-3.3.2.min.js" ) | $raw %]
[% IF ( autoprint ) %]
[% INCLUDE 'slip-print.inc' #printThenClose %]
[% END %]
<script>
$(document).ready(function(){
$(".print-label").on("click", function(e){
e.preventDefault();
window.print();
window.close();
});
$(".close-window").on("click", function(e){
e.preventDefault();
window.close();
});
$('.edit-label').click( function() {
$('#spinelabel').attr('contenteditable', function(index, attr){
return attr == 'true' ? null : 'true';
});
$('.edit-label .fa').toggleClass('fa-lock').toggleClass('fa-unlock');
});
});
</script>
[% INCLUDE 'popup-bottom.inc' %]