]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Fieldmapper toXML repairs and additions
authorBill Erickson <berick@esilibrary.com>
Thu, 12 Apr 2012 15:07:10 +0000 (11:07 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 1 Aug 2012 18:52:33 +0000 (14:52 -0400)
commit1d03a65e7a7c19acbf6644f60a7473934702a817
tree748a23bba41560a61ffcb515591baed68b37d7ba
parenta5fd2cae1b6ad5fa1fd03a8672d4646af2554418
Fieldmapper toXML repairs and additions

1. Be sure the append the current element to the document in progress

2. Use the class hint instead of the fully qualified class_name (e.g.
Fielmapper::actor::user) to avoid XML errors:

namespace error : Failed to parse QName 'Fieldmapper:'

3. Added support for additional options including "no_virt" which tells
the routine to skip all virtual fields and "skip_fields" to support
leaving specific fields out of the output.  The main use case for skip
fields is au => ['passwd'], but other examples might include large
fields like bre => ['marc'].

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm