]> git.koha-community.org Git - koha.git/commit
Bug 24531: Fix OAI-PMH sets for records with repeated fields
authorMagnus Enger <magnus@libriotech.no>
Wed, 29 Jan 2020 22:59:44 +0000 (23:59 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 14 Feb 2020 12:00:35 +0000 (12:00 +0000)
commitd1a0921fd106bc910fff2fed74344bbad4d33f55
treebb9be0e3911cc1049b1bc845816c1534293ec0f3
parent3a49e02a5d184a7be800df3e6d0037584fdf3251
Bug 24531: Fix OAI-PMH sets for records with repeated fields

Currently, an OAI-PMH set mapping will only match if the value it
is looking for occurs in the first instance of a repeated field.

To test:
- Apply the first patch with two new tests
- Run something like this:
  sudo koha-shell -c "prove -v t/db_dependent/OAI/Sets.t" kohadev
- Verify that the last test fails
- Apply this secind patch
- Rerun the test file above
- Verify that all tests now pass

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/OAI/Sets.pm