Parts combobox sorting - Angular Holdings Editor / volcopy editor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
EG 3.11.1
I'm seeing some strange sorting in the Part combobox in the Angular holdings editor.
I've attached a screenshot, but here is the list.
2016-10-17 ( OCT 17 )
2016-11-07 ( NOV 07 )
2016-12-19 ( DEC 19 )
2017-05-08 ( May 8 )
2016-10-31 ( OCT 31 )
2019-01-14 ( Jan 14 )
2019-02-25 ( Feb 25 )
2019-01-28 ( Jan 28 )
This appears to match what an unordered db query returns
select label from biblio.
So I think it just isn't being sorted.
It appears as if the commit for bug 1888723 was trying to add sorting for the parts data in volcopy.service.ts, fetchBibParts().
Maybe something just isn't quite right in that code.
Maybe the pcrud.search call can just set the order instead of sorting in javascript?
tags: | removed: pullrequest |
Changed in evergreen: | |
status: | New → Confirmed |
Working branch at user/stompro/ lp2037674_ angular_ holdings_ part_sort
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ stompro/ lp2037674_ angular_ holdings_ part_sort
I'm unsure what the last part of the .subscribe( function is doing. But it worked fine to tell the pcrud.search to sort the results.
I added a descending sort to the call. When the parts sorting for the holdings editor for the AngularJS client was discussed, the reverse sort was agreed upon also. Bug 1760893 for the discussion then. Which is great because that is what we wanted.
Here is an example of how to reverse the parts sorting for the Angular Monograph Parts interface and for Angular holds placement also in case that is useful to anyone. /gitlab. com/LARL/ evergreen- larl/-/ commit/ d71d672f85adae5 66e00380f3c094c f88899a4ee
https:/
Josh