[GIT] Evergreen ILS branch main updated. 6389cb91c34717140ccff29334d807dd1ddd54a1

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, main has been updated via 6389cb91c34717140ccff29334d807dd1ddd54a1 (commit) from f4e33bed880fecb30eec30d0418f1329850a8368 (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 6389cb91c34717140ccff29334d807dd1ddd54a1 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 efd64dc988..8dfa44e75c 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 @@ -69,9 +69,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
participants (1)
-
Git User