]> git.koha-community.org Git - koha.git/commit
Bug 23893: Implement Koha::Object->from_api_mapping
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 11 Nov 2019 18:03:28 +0000 (15:03 -0300)
committerJoy Nelson <joy@bywatersolutions.com>
Sat, 18 Jan 2020 15:59:23 +0000 (15:59 +0000)
commit1726c98c25a38dab545834160c8a7f7d0d519ea6
tree2396e267d48682c2679aceb2b935b8c8a6a9f17e
parent8abf6d54c2360d013b04bbb4614a57a5e75c3c2e
Bug 23893: Implement Koha::Object->from_api_mapping

This patch implements the from_api_mapping method, that calculates (and
caches) the reserve mapping from the to_api_mapping method.

A generic to_api_mapping is added to simplify things a bit in the generic
to_api method and so the mappings are reusable in the way they are in
from_api_mapping.

To test:
1. Apply this patches
2. Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Object.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/Object.pm