]> git.koha-community.org Git - koha.git/commit
Bug 22144: (QA follow-up) Prepare the ground for other formats
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 23 Jan 2019 16:25:33 +0000 (13:25 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 30 Jan 2019 11:50:48 +0000 (11:50 +0000)
commit7e5a9f93b458391d210a815db19c576376ca5137
treee535c09b2a3386c57ccdb85964eb34c38ffb378d
parenta681830f2ba36496eb7b86d562d1a625b7e04c94
Bug 22144: (QA follow-up) Prepare the ground for other formats

This patch refactors the original implementation so it is ready for
supporting other formats. It also adds some error handling.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Biblio/Metadata.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Biblio/Metadata.pm
t/db_dependent/Koha/Biblio/Metadata.t [new file with mode: 0644]