Fieldmapper toXML repairs and additions
authorBill Erickson <berick@esilibrary.com>
Thu, 12 Apr 2012 15:07:10 +0000 (11:07 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 12 Apr 2012 15:43:16 +0000 (11:43 -0400)
commit9ba6cd4b02d01aa4bd75e937771f8233f468a0d2
tree1cd3ff4d5b6d1d5dafeab8606a46c55e8fd901b5
parentb5f8b4bb4344d1a06834dee859ecff371d41621c
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm