Bug 12088

Summary: Improve date handling and sorting in holds to pull report
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, katrin.fischer
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12127    
Bug Blocks: 12089    
Attachments: Bug 12088 - Improve date handling and sorting in holds to pull report
Bug 12088 [Revised] Improve date handling and sorting in holds to pull report
Bug 12088 [Revised] Improve date handling and sorting in holds to pull report
[PASSED QA] Bug 12088 [Revised] Improve date handling and sorting in holds to pull report

Description Owen Leonard 2014-04-15 16:15:56 UTC
pendingreserves.tt includes a call to dt_add_type_uk_date(), which should be replaced with the title-string method for sorting dates. Additionally, sorting of the title column could be improved by adding the "anti-the" sorting method.
Comment 1 Owen Leonard 2014-04-15 17:40:40 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2014-04-23 14:21:38 UTC Comment hidden (obsolete)
Comment 3 David Cook 2014-04-24 00:05:43 UTC Comment hidden (obsolete)
Comment 4 Katrin Fischer 2014-04-26 13:19:17 UTC
I am sorry, but this patch no longer applies:

Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y
Applying: Bug 12088 [Revised] Improve date handling and sorting in holds to pull report
fatal: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt).
Comment 5 Galen Charlton 2014-04-28 17:38:50 UTC
Patch applies now that its dependency has been pushed.  Setting status back to signed off.
Comment 6 Katrin Fischer 2014-04-28 18:10:44 UTC
Created attachment 27740 [details] [review]
[PASSED QA] Bug 12088 [Revised] Improve date handling and sorting in holds to pull report

The holds to pull report could be improved by improving sorting on the
title and date columns. This patch adds "anti-the" sorting to the title
column and "title-string" sorting to the date column.

Date formatting of another variable has been moved to the template for
formatting using KohaDates.

The patch includes other corrections for HTML validity.

To test, apply the patch and view the holds to pull report.
 - Sorting by date should work correctly regardless of dateformat system
   preference setting.
 - Sorting of the title columns should correctly ignore articles.
 - Formatting of the "Reported on" date should be correct.

Revision incorporates the corrections made by Bug 12127 and converts
those changes to use class-based sorting.

Signed-off-by: David Cook <dcook@prosentient.com.au>

The patch works as described. Thanks for including and improving the
changes from Bug 12127, Owen!

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes QA script and tests.
No regressions found, works as advertised.
Comment 7 Galen Charlton 2014-04-28 18:45:09 UTC
Pushed to master.  Thanks, Owen!