Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt
Owen Leonard c2464231b0
Bug 33908: Improve translation of title tags: Acquisitions
This patch updates acquisitions, suggestions, and ERM templates so that
title tags can be more easily translated.

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

 - Acquisitions -> Acquisitions home
   - Ordered
   - Spent
   - Vendors: Search, new, edit
     - Baskets: New, edit
       - New order
         - From an empty record
         - From an existing record
         - From existing orders (copy)
         - From a suggestion
         - From a subscription
         - From an external source
         - From a staged file
     - Basket groups
     - Receive shipments
   - Uncertain prices
   - Late orders
   - Suggestions
   - Invoices
     - Invoice details
       - Invoice files
       - Receive orders
         - Transfer order
         - Cancel order
   - EDIFACT messages
   - Order search
 - ERM

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-01 11:07:41 -03:00

155 lines
7 KiB
Text

[% USE raw %]
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Add order from a subscription") | html %] &rsaquo;
[% t("Acquisitions") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="acq_newordersubscription" class="acq">
[% WRAPPER 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
[% END %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Add order from a subscription</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
<h1>Serials subscriptions</h1>
<div class="page-section">
[% IF (done_searched) %]
<label for="show_only_renewed">
<input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
Show only renewed
</label>
[% IF (subs_loop) %]
<table id="srlt">
<thead>
<tr>
<th>ISSN</th>
<th class="anti-the">Title</th>
<th> Notes </th>
<th>Vendor</th>
<th>Library</th>
<th>Call number</th>
<th>Expiration date</th>
<th class="NoSort"></th>
</tr>
</thead>
<tbody>
[% FOREACH sub IN subs_loop %]
<tr data-reneweddate="[% sub.reneweddate | html %]" >
<td>[% sub.issn | html %]</td>
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid | uri %]" class="button" title="subscription detail">[% IF (sub.title) %][% sub.title | html %][% ELSE %]
---
[% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
</td>
<td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
[% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
</td>
<td>
[% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
</td>
<td>
[% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
</td>
<td>
[% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
</td>
<td data-order="[% sub.enddate | html %]">
[% sub.enddate | $KohaDates %]
</td>
<td class="actions">
[% IF (sub.alreadyOnOrder) %]
Outstanding order
[% END %]
[% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
<a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;biblionumber=[% sub.biblionumber | uri %]&amp;from_subscriptionid=[% sub.subscriptionid | uri %]" title="Order this one" class="btn btn-default btn-xs">
<i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
</a>
[% ELSE %]
<a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[% ELSE %]
<p>Sorry, there is no result for your search.</p>
[% END %]
[% ELSE %]
<p>Use the search form on the left to find subscriptions.</p>
[% END %]
</div> <!-- /.page-section -->
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'subscriptions-search.inc' %]
[% INCLUDE 'acquisitions-menu.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/acquisitions-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %]
<script>
function updateRowsVisibility(show_only_renewed) {
if ( show_only_renewed ) {
$("#srlt [data-reneweddate='']").hide();
} else {
$("#srlt > tbody > tr").show();
}
}
$(document).ready(function() {
$("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
],
"sPaginationType": "full"
}));
$("#show_only_renewed").click(function(){
updateRowsVisibility( $(this).is(":checked") );
});
$("#show_only_renewed").prop('checked', false);
updateRowsVisibility(false);
$("#advsearch_form").show();
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]