Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
<li><aclass="cancel_recall"data-id="[% recall.recall_id | html %]"data-action="cancel"><iclass="fa fa-times"></i> Cancel</a></li>
<li><aclass="cancel_recall"data-id="[% recall.id | html %]"data-action="cancel"><iclass="fa fa-times"></i> Cancel</a></li>
[% IF ( recall.should_be_overdue ) %]
<li><aclass="overdue_recall"data-id="[% recall.recall_id | html %]"data-action="overdue"><iclass="fa fa-hourglass-end"></i> Mark as overdue</a></li>
<li><aclass="overdue_recall"data-id="[% recall.id | html %]"data-action="overdue"><iclass="fa fa-hourglass-end"></i> Mark as overdue</a></li>
[% END %]
[% ELSIF ( recall.waiting ) %]
<li><aclass="revert_recall"data-id="[% recall.recall_id | html %]"data-action="revert"><iclass="fa fa-undo"></i> Revert waiting</a></li>
<li><aclass="expire_recall"data-id="[% recall.recall_id | html %]"data-action="expire"><iclass="fa fa-times"></i> Expire</a></li>
<li><aclass="revert_recall"data-id="[% recall.id | html %]"data-action="revert"><iclass="fa fa-undo"></i> Revert waiting</a></li>
<li><aclass="expire_recall"data-id="[% recall.id | html %]"data-action="expire"><iclass="fa fa-times"></i> Expire</a></li>
[% ELSIF ( recall.in_transit ) %]
<li><aclass="transit_recall"data-id="[% recall.recall_id | html %]"data-action="transit"><iclass="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.item.homebranch) | html %]</a></li>
<li><aclass="transit_recall"data-id="[% recall.id | html %]"data-action="transit"><iclass="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.item.homebranch) | html %]</a></li>
<li>Item <i>[% RECALLED.biblio.title | html %]</i> ([% RECALLED.item.barcode | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.borrowernumber | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.branchcode ) | html %] since [% RECALLED.waitingdate | $KohaDates %]</li>
<li>Item <i>[% RECALLED.biblio.title | html %]</i> ([% RECALLED.item.barcode | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.waiting_date | $KohaDates %]</li>
[% ELSIF RECALLED.requested or RECALLED.overdue %]
<li>Item <i>[% RECALLED.biblio.title | html %]</i> [% IF RECALLED.item %]([% RECALLED.item.barcode | html %])[% END %] has been recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.borrowernumber | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.branchcode ) | html %] since [% RECALLED.recalldate | $KohaDates %]</li>
<li>Item <i>[% RECALLED.biblio.title | html %]</i> [% IF RECALLED.item %]([% RECALLED.item.barcode | html %])[% END %] has been recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.created_date | $KohaDates %]</li>
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a>
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
[% IF recall.item %]
<div class="recall-found-barcode">
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>)
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
</div>
[% END %]
</h3>
</div>
<div class="modal-body">
[% IF ( recall.recallnotes ) %]
[% IF ( recall.notes ) %]
<h4>Notes:</h4>
<p>[% recall.recallnotes | html %]</p>
<p>[% recall.notes | html %]</p>
<hr />
[% END %]
<h5>Recall placed by:</h5>
@ -800,12 +800,12 @@
[% END %]
</ul>
[% IF ( transfertodo ) %]
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
[% ELSE %]
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
<h4><strong>Recall at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
[% END %]
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]">
<input type="hidden" name="recall_id" value="[% recall.id | html %]">
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a>
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
[% IF recall.item %]
<div class="recall-found-barcode">
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>)
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
</div>
[% END %]
</h3>
</div>
<div class="modal-body">
[% IF ( recall.recallnotes ) %]
[% IF ( recall.notes ) %]
<h4>Notes:</h4>
<p>[% recall.recallnotes | html %]</p>
<p>[% recall.notes | html %]</p>
<hr />
[% END %]
<h5>Recall placed by:</h5>
@ -901,12 +901,12 @@
[% END %]
</ul>
[% IF ( transfertodo ) %]
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
[% ELSE %]
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
[% END %]
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]">
<input type="hidden" name="recall_id" value="[% recall.id | html %]">
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | uri %]">
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
[% recall.biblio.title | html %]
[% FOREACH s IN recall.biblio.subtitle %]
[% s | html %]
@ -60,14 +60,14 @@
<br><i>Barcode: [% recall.item.barcode | html %]</i>
</td>
<td class="recall-patron">
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
</td>
<td class="recall-library">[% recall.library.branchname | html %]</td>
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | uri %]">
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
[% recall.biblio.title | html %]
[% FOREACH s IN recall.biblio.subtitles %]
[% s | html %]
@ -109,14 +109,14 @@
<br><i>Barcode: [% recall.item.barcode | html %]</i>
</td>
<td class="recall-patron">
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
</td>
<td class="recall-library">[% recall.library.branchname | html %]</td>