Bugzilla – Attachment 156873 Details for
Bug 35006
OPAC holdings table - sort for current library column doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35006: OPAC holdings table - Fix sort for library columns
Bug-35006-OPAC-holdings-table---Fix-sort-for-libra.patch (text/plain), 4.37 KB, created by
Nick Clemens (kidclamp)
on 2023-10-11 18:07:44 UTC
(
hide
)
Description:
Bug 35006: OPAC holdings table - Fix sort for library columns
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-10-11 18:07:44 UTC
Size:
4.37 KB
patch
obsolete
>From d84aef9ec5d6b7cba699225d08085c9bb1031cf7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 10 Oct 2023 12:03:18 +0000 >Subject: [PATCH] Bug 35006: OPAC holdings table - Fix sort for library columns > >This patch updates the holdings table on the OPAC's bibliographic detail >page so that home and current library columns can be sorted correctly by >library name. There have been changes to the way the template shows >these values, but the DataTables "data-sort" attribute on the table cell >had not been updated accordingly. > >To test, apply the patch set the OpacLocationBranchToDisplay system >preference to "home and holding libraries." > >- Make sure home and holding library columns are not hidden in the > table settings under Administration -> Table settings -> OPAC -> > holdingst. >- Locate a bibliographic record in the OPAC which has multiple items > from different libraries. >- Test that the home and current library columns sort correctly by > library name. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../bootstrap/en/modules/opac-detail.tt | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index b0dd34cf77..c62cda2726 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1249,13 +1249,13 @@ > </td> > [% END %] > [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >- <td class="location" property="seller" data-order="[% ITEM_RESULT.branchname| html %]"> >+ [%# Show opac_info or branchurl from holding library %] >+ [% SET holding_library_name = Branches.GetName( ITEM_RESULT.holdingbranch ) %] >+ [% SET holding_library_url = Branches.GetURL( ITEM_RESULT.holdingbranch ) %] >+ <td class="location" property="seller" data-order="[% holding_library_name | html %]"> > <link property="itemOffered" href="#record" /> > <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> > >- [%# Show opac_info or branchurl from holding library %] >- [% SET holding_library_name = Branches.GetName( ITEM_RESULT.holdingbranch ) %] >- [% SET holding_library_url = Branches.GetURL( ITEM_RESULT.holdingbranch ) %] > [% IF ( ITEM_RESULT.holding_library_info ) %] > <a href="[% holding_library_url | url %]" class="library_info" data-info="[% ITEM_RESULT.holding_library_info | html %]" data-name="[% holding_library_name | html %]"> > <i class="fa fa-info-circle" aria-hidden="true"></i> [% holding_library_name | html %] >@@ -1276,13 +1276,13 @@ > [% END %] > > [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >- <td class="location" property="seller"> >+ [%# Show opac_info or branchurl from home library %] >+ [% SET home_library_name = Branches.GetName( ITEM_RESULT.homebranch ) %] >+ [% SET home_library_url = Branches.GetURL( ITEM_RESULT.homebranch ) %] >+ <td class="location" property="seller" data-order="[% home_library_name | html %]"> > <link property="itemOffered" href="#record" /> > <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> > >- [%# Show opac_info or branchurl from home library %] >- [% SET home_library_name = Branches.GetName( ITEM_RESULT.homebranch ) %] >- [% SET home_library_url = Branches.GetURL( ITEM_RESULT.homebranch ) %] > [% IF ( ITEM_RESULT.home_library_info ) %] > <a href="[% home_library_url | url %]" class="library_info" data-info="[% ITEM_RESULT.home_library_info | html %]" data-name="[% home_library_name | html %]"> > <i class="fa fa-info-circle" aria-hidden="true"></i> [% home_library_name | html %] >-- >2.30.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 35006
:
156797
|
156804
| 156873