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)
committerDan Wells <dbw2@calvin.edu>
Wed, 27 Aug 2014 01:48:05 +0000 (21:48 -0400)
commit0dadd7a8436bd4ad961535529c5f14c116496ffa
treebb98ed736ab3921d2c4c80e345ae6b9b4a0b2514
parentf0f6fb38b898f41a80e3e3356091f1764a71f8c9
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>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/xul/staff_client/server/circ/util.js