]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 8 Jan 2020 14:38:22 +0000 (14:38 +0000)
commitb9af3d71b130ed72db899a9191249d9bc9505ec6
tree7d90055f5c0522c9f775e18e116304ecbc312109
parent474f5a3bfdb31bcab3cd04523c206807f09ed7ba
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>
Koha/Object.pm