Bug 18208: Add RecordProcessor filter to inject not onloan count to MARC records
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Mar 2017 18:30:22 +0000 (15:30 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 13 Apr 2017 12:51:04 +0000 (08:51 -0400)
commitb27b77307c24a60a0a49581396f01d19f87ebdb0
tree2155d2d0838af420b2d735da0f412b3be760ab8a
parent71f34c7b34c355e0b8c0dead9f7ca49b4e1e1dc3
Bug 18208: Add RecordProcessor filter to inject not onloan count to MARC records

This patch adds a new filter for MARC records to be used with
Koha::RecordProcessor. It's purpose is to inject the information about
items not-onloan in a fixed subfield, 999$x.

To test:
- Apply the patch
- Run:
  $ prove t/db_dependent/Koha/Filter/EmbedItemsAvailability.t
=> SUCCESS: Tests pass!
- Sign off :-D

Sponsored-by: ByWater Solutions

Followed test plan, test passes OK
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Filter/MARC/EmbedItemsAvailability.pm [new file with mode: 0644]
t/db_dependent/Koha/Filter/EmbedItemsAvailability.t [new file with mode: 0755]