Correct subfield format for authority lookup
authorMike Rylander <mrylander@gmail.com>
Fri, 19 Apr 2013 20:14:13 +0000 (16:14 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 16 May 2013 15:02:41 +0000 (11:02 -0400)
commit70a7f1cd22bba776b99b208ac543d8f703e4e6af
treed1202ba0be90647eb6a5d7031b62ddb40cfd97d6
parent7a3f95cb06f272e8ec0b8e0aeef645a9d516735e
Correct subfield format for authority lookup

The Authority Control Set code expects the format of subfields
that it will be used to build a MARC.Field object to be of the
form: [[code,value],...]  This commit makes that true.

Additionally, dojo.filter over a list of lists can cause the
nested array set to be flattened.  So, instead, we loop directly.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/dojo/openils/AuthorityControlSet.js
Open-ILS/xul/staff_client/server/cat/marcedit.js