[Koha-bugs] [Bug 14639] Extend Koha::MetadataRecord to handle serialization format

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 3 16:56:33 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14639

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 41315
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41315&action=edit
Bug 14639: (regression tests) Extend Koha::MetadataRecord to handle
serialization format

In order to use Koha::MetadataRecord as a container for moving records
around it is important to let it carry the serialization format
of the record object it was built with, so it is easier and cheaper to
make decisions about records.

This patch introduces regression tests for the changes to be made.
The 'format' param is introduced, and also sets default values:
  schema => 'marc21'
  format => 'usmarc'
so the default behaviour is preserved, and no changes are needed in places
Koha::MetadataRecord is used.
->new also returns undef if no record is passed, and raises a carped warning.

To test:
- Apply the patch
- Run the new tests
  $ prove t/Koha_MetadataRecord.t
=> FAIL: Tests shoud fail as the changes are not implemented on
Koha::MetadataRecord

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list