]> git.koha-community.org Git - koha.git/commit
Bug 18579: Make EmbedItemsAvailability handle control fields correctly
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 May 2017 16:07:37 +0000 (13:07 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 12 May 2017 12:43:18 +0000 (08:43 -0400)
commit542ac21b94a8eec05b3f194f5ffbe4e19f511738
tree1c63666f305d9e140efc7a3284009a724d62c514
parent3e1d76dbc0e98bb8a0d66c99a9c9b1afa936e62e
Bug 18579: Make EmbedItemsAvailability handle control fields correctly

This patch makes the EmbedItemsAvailability filter handle the biblio.biblionumber > control field mapping gracefully.
Right now, it was assuming a regular data field was used, and such is not the case for UNIMARC (001).

To test:
- Apply the tests patch
- Run:
  $ sudo koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/db_dependent/Koha/Filter/EmbedItemsAvailability.t
=> FAIL: Tests fail to run
- Apply this patch
- Run:
 k$ prove t/db_dependent/Koha/Filter/EmbedItemsAvailability.t
=> SUCCESS: Tests pass!
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
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