From fdb719a673c88e48fee5df9e7a4d2f1f92a8ef1f Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 28 Oct 2020 16:15:39 +1300 Subject: [PATCH] Bug 19532: (follow-up) Fixing OPAC display and staff client errors - fixes the displays of opac-recalls.pl and opac-recall.pl - fix the error on Recalls to pull page - fix JS error preventing Recalled link from showing in checkouts table - fix cancelling of recall when checking out item --- circ/circulation.pl | 3 +-- .../prog/en/modules/recalls/recalls_to_pull.tt | 3 +-- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-recall.tt | 28 ++++++++++++++-------- .../opac-tmpl/bootstrap/en/modules/opac-recalls.tt | 24 ++++++++++++------- 5 files changed, 36 insertions(+), 24 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index f9eed57f8b..d47a9d2927 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -178,7 +178,7 @@ if ( $restoreduedatespec && $restoreduedatespec eq "highholds_empty" ) { my $issueconfirmed = $query->param('issueconfirmed'); my $cancelreserve = $query->param('cancelreserve'); my $cancel_recall = $query->param('cancel_recall'); -my $recall_id = $query->param('recall_id'); +my $recall_id = $query->param('recall_id'); my $debt_confirmed = $query->param('debt_confirmed') || 0; # Don't show the debt error dialog twice my $charges = $query->param('charges') || q{}; @@ -417,7 +417,6 @@ if (@$barcodes) { } unless($confirm_required) { my $switch_onsite_checkout = exists $messages->{ONSITE_CHECKOUT_WILL_BE_SWITCHED}; - my $recall_id = $messages->{RECALLED}; my $issue = AddIssue( $patron->unblessed, $barcode, $datedue, $cancelreserve, undef, undef, { onsite_checkout => $onsite_checkout, auto_renew => $session->param('auto_renew'), switch_onsite_checkout => $switch_onsite_checkout, cancel_recall => $cancel_recall, recall_id => $recall_id, } ); $template_params->{issue} = $issue; $session->clear('auto_renew'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt index 347429e923..e129ccc983 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt @@ -61,8 +61,7 @@ [% recall.patrons_count | html %] [% recall.first_recall.patron.firstname | html %] [% recall.first_recall.patron.surname | html %] - [% INCLUDE 'biblio-default-view.inc' biblionumber=recall.first_recall.biblio.biblionumber %] - [% INCLUDE 'biblio-title.inc' biblio=recall.first_recall.biblio %] + [% INCLUDE 'biblio-title.inc' biblio=recall.first_recall.biblio link=1 %] [% IF recall.first_recall.biblio.author %] by [% recall.first_recall.biblio.author | html %][% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index d67bac2fb1..ef50bc4319 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -439,7 +439,7 @@ $(document).ready(function() { // Do nothing } else if ( oObj.can_renew_error == "recalled" ) { msg += "" - + "" + RECALLED + "" + + "" + __("Recalled") + "" + ""; span_style = "display: none"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt index eb6d286048..3c3a2bb604 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt @@ -13,20 +13,28 @@ [% INCLUDE 'masthead.inc' %]
- +
-
-
+
+
-
+

Confirm recalls for: [% INCLUDE 'patron-title.inc' patron = logged_in_user %] ([% logged_in_user.cardnumber | html %])

[% IF nosyspref %] @@ -163,8 +171,8 @@ [% END %] [% END %]
-
-
+
+
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt index b434185fe9..973258a7f1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt @@ -8,18 +8,24 @@ [% INCLUDE 'bodytag.inc' bodyid='opac-recalls' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %]
- +
-
-
+
+
-
+

Recalls history

[% IF Koha.Preference('UseRecalls') %] @@ -125,8 +131,8 @@ Recalls have not been enabled. Please contact your library. [% END %]
-
-
+
+
-- 2.11.0