From a7ef1dd0b2c9954d016e3fa2631cb6118d59acf0 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Mon, 7 Oct 2024 10:28:55 +0200 Subject: [PATCH] Bug 30221: add the checkout branch to the checkouts table on opac-user.pl Signed-off-by: Lucas Gass --- admin/columns_settings.yml | 4 +++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++--- opac/opac-user.pl | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 6ac3c768ce3..05195f419cb 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2527,7 +2527,9 @@ modules: - columnname: author - - columnname: datedue + columnname: duedate + - + columnname: checkout_branch - columnname: itemtype - diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index ab33a46a139..fa1c368dd0a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -313,8 +313,8 @@ Title Author Checked out on - Due - [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] + Due + Checkout branch [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] Item type [% END %] [% IF ( show_barcode ) %] @@ -399,7 +399,6 @@ [% IF ( ISSUE.recall ) %]
This item has been recalled. Please return by the new due date.[% END %] - [% ISSUE.author | html %] [% ISSUE.issuedate | $KohaDates as_due_date => 1 %] [% IF ( ISSUE.overdue ) %] @@ -407,6 +406,7 @@ [% ELSE %] [% ISSUE.date_due | $KohaDates as_due_date => 1 %] [% END %] + [% ISSUE.branchname | html %] [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index e0671b33aa5..99c3abb85bf 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -292,6 +292,8 @@ if ( $pending_checkouts->count ) { # Useless test my $biblio_object = Koha::Biblios->find( $issue->{biblionumber} ); $issue->{biblio_object} = $biblio_object; + my $library_object = Koha::Libraries->find($issue->{branchcode}); + $issue->{branchname} = $library_object->branchname; push @issuedat, $issue; $count++; -- 2.39.5