Bugzilla – Attachment 112684 Details for
Bug 25897
Inventory table call number sort should use cn_sort value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25897: Use cn_sort for sorting callnumbers in inventory table
Bug-25897-Use-cnsort-for-sorting-callnumbers-in-in.patch (text/plain), 2.34 KB, created by
Andrew Fuerste-Henry
on 2020-10-29 22:36:04 UTC
(
hide
)
Description:
Bug 25897: Use cn_sort for sorting callnumbers in inventory table
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2020-10-29 22:36:04 UTC
Size:
2.34 KB
patch
obsolete
>From 83e26c343a3a62e52bab5538f7e8e0d14a8af3e5 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Mon, 19 Oct 2020 00:38:31 +0000 >Subject: [PATCH] Bug 25897: Use cn_sort for sorting callnumbers in inventory > table > >Instead of using the machine sortable form of the callnumber from >cn_sort the table was only sorting on the callnumber. This tries >to fix it using the same technique as for sorting the differently >formatted dates. > >To test: >- If your database has items with suitably cataloged items, use > these. Otherwise you could use the examples from the bug report: > >- Catalog items with the following barcodes: > B 29 V55 1998 > B29 .C55 2008 > B29 .L24 1983 > B29 .L264 1998 > B29 .P666 2004 > Make sure the LOC is selected in $2 as source of classification > This makes sure the sortable form of the callnumber is calculated > correctly. >- Go to inventory >- Search for your items >- Before patch, they should sort on callnumber as above, after the > patch the correct sort order should be: > B29 .C55 2008 > B29 .L24 1983 > B29 .L264 1998 > B29 .P666 2004 > B 29 V55 1998 > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >index 8e6b66009b..9b0e517ab4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -193,7 +193,7 @@ > <tr> > [% UNLESS uploadedbarcodesflag %]<th>Seen</th>[% END %] > <th>Barcode</th> >- <th>Call number</th> >+ <th class="title-string">Call number</th> > <th>Library</th> > <th class="anti-the">Title</th> > <th>Not for loan</th> >@@ -215,7 +215,9 @@ > <td> > [% result.barcode | html %] > </td> >- <td>[% result.itemcallnumber | html %]</td> >+ <td> >+ <span title="[% result.cn_sort %]">[% result.itemcallnumber | html %]</span> >+ </td> > <td> > [% Branches.GetName( result.homebranch ) | html %] > <span class="shelvingloc">[% result.location | html %]</span> >-- >2.11.0
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 25897
:
111952
|
112684
|
112892
|
112893