
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, rel_3_13 has been updated via 5a84eb972c62dffe2074fd2a02b2740734e6297a (commit) from f0456c35e1b9fd2a9b75067d3b2ce71e3df4c827 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5a84eb972c62dffe2074fd2a02b2740734e6297a Author: Tiffany Little <tlittle@georgialibraries.org> Date: Wed Nov 13 14:29:41 2024 -0500 LP2088000 Change sort on parts grid Use the label_sortkey column to sort rather than just label. Release-note: Sorts bib record parts by label_sortkey rather than label so that labels such as Vol. 1, Vol. 2, Vol. 3 are sorted as expected. Co-authored By: Steven Mayo <smayo@georgialibraries.org> Signed-off-by: Steven Mayo <smayo@georgialibraries.org> Signed-off-by: Carol Witt <wittc@cwmars.org> Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org> diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts index cff75b1628..a17a87e7e6 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts @@ -66,9 +66,11 @@ export class PartsComponent implements OnInit { const orderBy: any = {}; if (sort.length) { // Sort provided by grid. - orderBy.bmp = sort[0].name + ' ' + sort[0].dir; + // Labels sort by label_sortkey instead of label + let sort_name = sort[0].name === 'label' ? 'label_sortkey' : sort[0].name; + orderBy.bmp = sort_name + ' ' + sort[0].dir; } else { - orderBy.bmp = 'label'; + orderBy.bmp = 'label_sortkey'; } const searchOps = { ----------------------------------------------------------------------- Summary of changes: Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- Evergreen ILS