Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt
Victor Grousset/tuxayo 7758a0248e
Bug 30733: Simplify translatable strings
And a few minor fixes when they where causing issues for
translatability.
And rephrased a string about password reset to have it identical to
other strings with the same meaning.

Simplified via wrapping strings with <span> to split to huge
concatenated strings with a lot of %s everywhere.

== Test plan ==
This patch needs mainly proof reading. Still it's possible to do some
basic testing to demonstrate that adding a <span> in an IF doesn't
break anything.
Pick in one of the 110 modified templates a string that you know how to
display. Otherwise:
1. acquisitions => vendor => basket => add to basket =>
   search "from existing record" => add order
2. Cancel the order
3. You see without issue "Bibliographic record will not be deleted"
4. administration => Patron categories
5. Try to delete a used and unused category
6. You see as expected
   Category XXXX is in use. Deletion not possible!
   and
   Confirm deletion of category XXXX

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-17 10:16:34 -03:00

157 lines
10 KiB
Text

[% USE Koha %]
[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Your recalls history &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
[% INCLUDE 'bodytag.inc' bodyid='opac-recalls' bodyclass='scrollto' %]
[% INCLUDE 'masthead.inc' %]
<div class="main">
<nav aria-label="breadcrumb">
<ul class="breadcrumb">
<li class="breadcrumb-item">
<a href="/cgi-bin/koha/opac-main.pl">Home</a>
</li>
<li class="breadcrumb-item">
<a href="#">Your recalls history</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col col-lg-2 order-2 order-lg-1">
<div id="navigation">
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
</div>
</div>
<div class="col-md-12 col-lg-10 order-1 order-lg-2">
<div id="recalls" class="maincontent">
<h2>Recalls history</h2>
[% IF Koha.Preference('UseRecalls') %]
[% IF RECALLS.count %]
<div id="opac-user-recalls">
<table id="recalls-table" class="table table-bordered table-striped">
<thead>
<tr>
<th class="anti-the">Title</th>
<th class="psort">Placed on</th>
<th>Expires on</th>
<th>Pickup location</th>
<th>Status</th>
<th>Due date</th>
<th class="nosort">&nbsp;</th>
</tr>
</thead>
<tbody>
[% FOREACH RECALL IN RECALLS %]
<tr>
<td class="title">
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblio_id | html %]">
[% RECALL.biblio.title | html %]
[% FOREACH s IN RECALL.biblio.subtitle %]
[% s | html %]
[% END %]
</a>
[% RECALL.biblio.author | html %]
</td>
<td class="recalldate" data-order="[% RECALL.created_date | html %]">
<span title="[% RECALL.created_date | html %]">
<span class="tdlabel">Recall date:</span>
[% RECALL.created_date | $KohaDates %]
</span>
</td>
<td class="expirationdate" data-order="[% RECALL.expiration_date | html %]">
[% IF ( RECALL.expiration_date ) %]
<span title="[% RECALL.expiration_date | html %]">
<span class="tdlabel">Expiration:</span>
[% RECALL.expiration_date | $KohaDates %]
</span>
[% ELSIF ( !RECALL.completed ) %]
<span title="0000-00-00">
<span class="tdlabel">Expiration:</span>
Never expires
</span>
[% ELSE %]
<span title="0000-00-00">-</span>
[% END %]
</td>
<td class="branch">
<span class="tdlabel">Pick up location:</span>
[% RECALL.library.branchname | html %]
</td>
<td class="status">
<span class="tdlabel">Status:</span>
[% IF ( RECALL.in_transit ) %]
<span>In transit to [% RECALL.library.branchname | html %]</span>
[% ELSIF ( RECALL.waiting ) %]
<span>Ready for pickup</span>
[% ELSIF ( RECALL.overdue ) %]
<span>Overdue to be returned</span>
[% ELSIF ( RECALL.expired ) %]
<span>Expired on [% RECALL.expiration_date | $KohaDates %]</span>
[% ELSIF ( RECALL.cancelled ) %]
<span>Cancelled on [% RECALL.completed_date | $KohaDates %]</span>
[% ELSIF ( RECALL.fulfilled ) %]
<span>Fulfilled</span>
[% ELSE %]
<span>Requested</span>
[% END %]
</td>
<td class="due_date">
<span class="tdlabel">Due date</span>
[% IF ( RECALL.requested ) %]
<span>Due to be returned by [% RECALL.checkout.date_due | $KohaDates %]</span>
[% ELSIF ( RECALL.waiting and RECALL.expiration_date ) %]
<span>Pick up by [% RECALL.expiration_date | $KohaDates %]</span>
[% ELSE %]
-
[% END %]
</td>
<td class="cancelrecall">
[% IF ( RECALL.requested or RECALL.overdue ) %]
<form action="/cgi-bin/koha/opac-recall.pl" method="post">
<input type="hidden" name="op" value="cancel">
<input type="hidden" name="recall_id" value="[% RECALL.id | html %]">
<input type="hidden" name="biblionumber" value="[% RECALL.biblio_id | html %]">
<input type="submit" name="submit" class="btn btn-danger cancel_recall" value="Cancel">
</form>
[% END %]
</td>
[% END %]
</tr>
</tbody>
<table>
</div>
[% ELSE %]
<span>No recalls have been made.</span>
[% END # / # RECALLS.count %]
[% ELSE %]
<span>Recalls have not been enabled. Please contact your library.</span>
[% END %]
</div> <!-- /#recalls -->
</div> <!-- /.col-md-12 -->
</div> <!-- /.row -->
</div> <!-- /.container-fluid -->
</div> <!-- /#main -->
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% INCLUDE 'datatables.inc' %]
<script type="text/JavaScript">
//<![CDATA[
$(document).ready(function(){
$(".cancel_recall").click(function(){
return confirmDelete(_("Are you sure you want to remove this recall?"));
});
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
{ "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
]
}));
});
</script>
[% END %]