lp1182605 Abstracting out common functionality from code that sorts call numbers...
authorVictoria Lewis <vcamklewis@gmail.com>
Wed, 30 Apr 2014 22:09:07 +0000 (15:09 -0700)
committerRemington Steed <rjs7@calvin.edu>
Tue, 26 Aug 2014 20:45:13 +0000 (16:45 -0400)
commit18587bab654005dbad7b00e308213b24c2df57c9
treed1c001620617518a84fb65cf1b180eb5bdb42495
parent62b6f34868fc6c18018c1343cfc194ced05e3c40
lp1182605 Abstracting out common functionality from code that sorts call numbers by label_sortkey

Code had been added to insure that LC call numbers are sorting as they should by asset.call_number.label_sortkey.
Code was duplicated in the 'call_number column' in the 'columns' group and in the 'hold_columns'group.

I abstracted the logic out of 'sort_value' and 'render' in the 'call_number' column in the 'columns' group and from
'render' in the 'call_number' column in the 'hold_columns' group to a utility function  called
'sort_call_numbers_by_label_sortkey'.

Signed-off-by: Victoria Lewis <vcamklewis@gmail.com>
modified:   xul/staff_client/server/circ/util.js
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/xul/staff_client/server/circ/util.js