From 4701869d8e4a1fd57b2ee1c1600b56a98e962e09 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Tue, 10 Apr 2018 14:45:47 -0400 Subject: [PATCH] LP1760893 Add Holdings Part dropdown should list items in order Without a defined sort, the Part dropdown when editing a holding simply displays in database order. Let's be more deterministic about it. In this case, while slightly surprising, consensus opinion was that reverse order on label_sortkey provides the best overall usability. This is obviously true on records with many parts, but can help in all cases. Signed-off-by: Dan Pearl Signed-off-by: Dan Wells --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index a9c28c976e..c27170ac43 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -272,7 +272,8 @@ function(egCore , $q) { return egCore.pcrud.search('bmp', {record : rec, deleted : 'f'}, - null, {atomic : true} + {order_by: {bmp : 'label_sortkey DESC'}}, + {atomic : true} ).then(function(list) { service.bmp_parts[rec] = list; return list; -- 2.43.2