TPAC: Complete column sorting in some screens

Bug #1086934 reported by Dan Pearl
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

OpenSRF all
PG all
Linux all
EG <= 2.2 has erroneous half-implementation
EG 2.3 removes any vestige of sorting

Bug #1010277 repaired the half-implementation of the sorting of column headers in holds.tt2, circs.tt2, and circ_history.tt2 by removing the half implementation (incorrect column head tooltips). This is an enhancement request to reintroduce the sorting capability.

I have a test implementation that accomplishes this.

Note that the fix for #1010277 also made improvements in the internationalization of strings which should be preserved.

Revision history for this message
Lebbeous Fogle-Weekley (lebbeous) wrote :

Great, but where is this test implementation? If you've identified the issue and already done the work (or most of the work), please share the code!

Revision history for this message
Dan Pearl (dpearl) wrote : RE: [Bug 1086934] Re: TPAC: Complete column sorting in some screens

It's coming! I'm a newbie at this stuff.

Ben Shum (bshum)
Changed in evergreen:
status: New → In Progress
assignee: nobody → Dan Pearl (dpearl)
importance: Undecided → Wishlist
milestone: none → 2.4.0-alpha
Revision history for this message
Dan Pearl (dpearl) wrote :
tags: added: pullrequest
Revision history for this message
Dan Pearl (dpearl) wrote :

Withdrawing pullrequest to do more checking

Revision history for this message
Dan Pearl (dpearl) wrote :

Restored pullrequest, along with an amended commit. Same branch.

The code needed to support the multi-page presentation.

Kathy Lussier (klussier)
Changed in evergreen:
status: In Progress → Confirmed
assignee: Dan Pearl (dpearl) → nobody
Revision history for this message
Kathy Lussier (klussier) wrote :

Hey Dan,

I'm adding a needsreleasenote tag to this. Although it's a smallish enhancements, it probably warrants an entry in the next release notes. You can add the entry in docs/RELEASE_NOTES_NEXT.

Kathy

tags: added: needsreleasenote
Revision history for this message
Pasi Kallinen (paxed) wrote :

In the sort_head() block you're wrapping the variable containing the translatable string in l(). I believe this causes problems for i18n.

So, instead of :

sort_head("sort_title", "Title")

You should wrap translatable strings directly in the l() macro:

sort_head("sort_title", l("Title"))

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I can easily address Pasi's concern in a collab branch, unless Dan Pearl beats me to it.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Dan Pearl's branch needs a rebase on master. There are conflicts in Open-ILS/src/templates/opac/css/style.css.tt2 and Open-ILS/src/templates/opac/parts/misc_util.tt2. While I was confident that I can resolve the first one, I'm not as confident on the second.

I am going to remove the pullrequest tag until such time as Dan or someone rebases the branch and addresses Pasi's i18n concerns above.

tags: removed: pullrequest
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-alpha1 → 2.4.0-beta
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-beta → 2.4.0-rc
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-rc → 2.5.0-alpha
Dan Wells (dbw2)
Changed in evergreen:
milestone: 2.5.0-m1 → none
Revision history for this message
Dan Pearl (dpearl) wrote :

I'll take care of rebase. Thanks klussier for the alert.

Revision history for this message
Dan Pearl (dpearl) wrote :

Now in place. Release notes added.

tags: added: pullrequest
removed: needsreleasenote
Revision history for this message
Dan Pearl (dpearl) wrote :
Kathy Lussier (klussier)
Changed in evergreen:
milestone: none → 2.next
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I loaded Dan's branch on my development machine this afternoon and had a quick look.

Overall, it looks like the branch does what is says on the tin. My only nit is that the triangle that appears next to the header of the field that is being sorted does not also cause the sort to happen. Typically, those icons are clickable just like the text label next to them. My expectation when clicking it would be the same as what happens when click the sort field again, it would reverse the direction of the sort.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Something else that I have noticed after loading this branch. There is now a discrepancy in the headers between the different places where sorting can happen in the patron's account area.

For instance, sorting my list entries does not add the triangle to the header, and the column sizes to do not appear to adjust.

When sorting in a patron's circ_history with Dan's code, I get the triangle, and the column widths appear to change. (It is rather odd sorting by author, when a patron has dozens of things with no author in their history.)

I think it would be beneficial to make the look consistent with the different "tables" that get sorted in the My Account area.

Revision history for this message
Bill Erickson (berick) wrote :

Pushed an UNTESTED rebased branch with some minor merge conflicts resolved to:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/berick/lp1086934-tpac-col-sort-rebase

Tossing this into a bug-squashing-day test branch....

Revision history for this message
Kathy Lussier (klussier) wrote :
Revision history for this message
Kathy Lussier (klussier) wrote :
tags: added: signedoff
Changed in evergreen:
milestone: 2.next → 2.9-beta
Revision history for this message
Ben Shum (bshum) wrote :

Pushed to master, thanks for testing Kathy.

Changed in evergreen:
milestone: 2.9-beta → 2.next
Changed in evergreen:
milestone: 2.next → 2.9-beta
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.