lp1182605 Abstracting out common functionality from code that sorts call numbers... user/catalystit/lp1182605-lc_call_numbers_sort_improperly
authorVictoria Lewis <vcamklewis@gmail.com>
Wed, 30 Apr 2014 22:09:07 +0000 (15:09 -0700)
committerVictoria Lewis <vcamklewis@gmail.com>
Wed, 30 Apr 2014 22:09:07 +0000 (15:09 -0700)
commit6f0025ca26def67593a7da4e8312b2722e40c334
treefbd3355919c042007e8923142b3998ae06235792
parenta7f43f35e765629edebb991b824c30ba010d3b3f
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
Open-ILS/xul/staff_client/server/circ/util.js