Victor Grousset/tuxayo
7758a0248e
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>
134 lines
6.7 KiB
HTML
134 lines
6.7 KiB
HTML
[% USE Branches %]
|
|
<div id="recalls">
|
|
[% IF recalls.count %]
|
|
<table id="recalls-table">
|
|
<thead>
|
|
<tr>
|
|
[% IF checkboxes %]<th class="recall-checkbox nosort"> </th>[% END %]
|
|
<th class="recall-title anti-the">Title</th>
|
|
[% UNLESS specific_patron %]<th class="recall-patron">Requested by</th>[% END %]
|
|
<th class="recall-date">Placed on</th>
|
|
<th class="recall-expiry">Expires on</th>
|
|
<th class="recall-branch">Pickup location</th>
|
|
<th class="recall-status">Status</th>
|
|
[% UNLESS viewing_old %]<th class="recall-duedate">Due date</th>[% END %]
|
|
[% UNLESS viewing_old %]<th class="recall-actions nosort"> </th>[% END %]
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% FOREACH recall IN recalls %]
|
|
[% IF recall.completed %]<tr class="old">[% ELSE %]<tr>[% END %]
|
|
|
|
[% IF checkboxes %]
|
|
<td class="recall-checkbox">
|
|
[% IF recall.completed %]
|
|
|
|
[% ELSE %]
|
|
<input type="checkbox" value="[% recall.id | html %]" name="recall_ids">
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
|
|
<td class="recall-title">
|
|
<b><a class="recall-title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | html %]">
|
|
[% recall.biblio.title | html %]
|
|
[% FOREACH s IN recall.biblio.subtitle %]
|
|
[% s | html %]
|
|
[% END %]
|
|
</a></b>
|
|
[% IF recall.item %][% recall.item.barcode | html %][% END %]
|
|
[% recall.biblio.author | html %]
|
|
</td>
|
|
|
|
[% UNLESS specific_patron %]
|
|
<td class="recall-patron">
|
|
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 link_to="circulation_recalls" %]
|
|
</td>
|
|
[% END %]
|
|
|
|
<td class="recall-date">
|
|
[% recall.created_date | $KohaDates %]
|
|
</td>
|
|
|
|
<td class="recall-expiry">
|
|
[% IF ( recall.expiration_date ) %]
|
|
[% recall.expiration_date | $KohaDates %]
|
|
[% ELSIF ( !recall.completed ) %]
|
|
<span>Never expires</span>
|
|
[% ELSE %]
|
|
-
|
|
[% END %]
|
|
</td>
|
|
|
|
<td class="recall-branch">
|
|
[% recall.library.branchname | html %]
|
|
</td>
|
|
|
|
<td class="recall-status">
|
|
[% IF ( recall.in_transit ) %]
|
|
<span>In transit to [% recall.library.branchname | html %]</span>
|
|
[% ELSIF ( recall.waiting ) %]
|
|
<span>Ready for pickup</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.overdue ) %]
|
|
<span>Overdue to be returned</span>
|
|
[% ELSIF ( recall.fulfilled ) %]
|
|
<span>Fulfilled</span>
|
|
[% ELSE %]
|
|
<span>Requested</span>
|
|
[% END %]
|
|
</td>
|
|
|
|
[% UNLESS viewing_old %]
|
|
<td class="recall-duedate">
|
|
[% IF recall.requested and recall.checkout %]
|
|
<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>
|
|
[% END %]
|
|
|
|
[% UNLESS viewing_old %]
|
|
<td class="recall-cancel actions">
|
|
[% IF recall.completed %]
|
|
|
|
[% ELSE %]
|
|
<div class="btn-group">
|
|
<a class="btn btn-sm dropdown-toggle" data-toggle="dropdown" href="#"> Actions <span class="caret"></span></a>
|
|
<ul class="dropdown-menu pull-right">
|
|
[% IF ( recall.requested or recall.overdue ) %]
|
|
<li><a class="cancel_recall" data-id="[% recall.id | html %]" data-action="cancel"><i class="fa fa-times"></i> Cancel</a></li>
|
|
[% IF ( recall.should_be_overdue ) %]
|
|
<li><a class="overdue_recall" data-id="[% recall.id | html %]" data-action="overdue"><i class="fa fa-hourglass-end"></i> Mark as overdue</a></li>
|
|
[% END %]
|
|
[% ELSIF ( recall.waiting ) %]
|
|
<li><a class="revert_recall" data-id="[% recall.id | html %]" data-action="revert"><i class="fa fa-undo"></i> Revert waiting</a></li>
|
|
<li><a class="expire_recall" data-id="[% recall.id | html %]" data-action="expire"><i class="fa fa-times"></i> Expire</a></li>
|
|
[% ELSIF ( recall.in_transit ) %]
|
|
<li><a class="transit_recall" data-id="[% recall.id | html %]" data-action="transit"><i class="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.item.homebranch) | html %]</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
[% IF patron.borrowernumber %]
|
|
<div class="dialog message">Patron has no recalls.</div>
|
|
[% ELSE %]
|
|
<div class="dialog message">There are no recalls to show.</div>
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|