Bugzilla – Attachment 172611 Details for
Bug 30221
Make the tables on opac-user.tt column configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30221: add the checkout branch to the checkouts table on opac-user.pl
Bug-30221-add-the-checkout-branch-to-the-checkouts.patch (text/plain), 3.65 KB, created by
Lucas Gass (lukeg)
on 2024-10-10 14:40:33 UTC
(
hide
)
Description:
Bug 30221: add the checkout branch to the checkouts table on opac-user.pl
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-10-10 14:40:33 UTC
Size:
3.65 KB
patch
obsolete
>From a797b4e7bff9095132bcada49520afa9a6d54da5 Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >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 <lucas@bywatersolutions.com> >--- > admin/columns_settings.yml | 4 +++- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 ++++-- > opac/opac-user.pl | 2 ++ > 3 files changed, 9 insertions(+), 3 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 5a03b787e4d..e5770acaf28 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -2124,7 +2124,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 5f842d31467..6fed55e28ce 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -335,8 +335,9 @@ > [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] > <th id="title" data-colname="title" class="all anti-the">Title</th> > <th id="author" data-colname="author">Author</th> >- <th id="duedate" data-colname="datedue" class="psort">Due</th> >- [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] >+ <th id="duedate" data-colname="duedate" class="psort">Due</th> >+ <th id="checkout_branch" data-colname="checkout_branch">Checkout branch</th> [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] >+ > <th data-colname="itemtype">Item type</th> > [% END %] > [% IF ( show_barcode ) %] >@@ -427,6 +428,7 @@ > [% ISSUE.date_due | $KohaDates as_due_date => 1 %] > </td> > [% END %] >+ <td class="checkout_branch" data-order="[% ISSUE.branchname | html %]">[% ISSUE.branchname | html %]</td> > [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %] > <td class="itype"> > <span class="tdlabel">Item type:</span> >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index a1b8b9f9100..e026c44fc8f 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -283,6 +283,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.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30221
:
172214
|
172451
|
172452
|
172453
|
172454
|
172455
|
172456
|
172581
|
172610
| 172611 |
172613
|
172615
|
172616
|
172618
|
172620
|
174014
|
174015
|
174016
|
174046
|
174047
|
174048