]> git.koha-community.org Git - koha.git/commit
Bug 12252: OAI-PMH result includes item data
authorRobin Sheat <robin@catalyst.net.nz>
Wed, 14 May 2014 02:39:03 +0000 (14:39 +1200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Thu, 17 Sep 2015 14:01:46 +0000 (11:01 -0300)
commit80aa17d266fdaea68a8669f41cab3054cff1b995
tree8b535c2dd0a17fc5d1e0f04ab9de05acf24a95c6
parent7349777f14b8d4c11f74da2098568a6966800e5a
Bug 12252: OAI-PMH result includes item data

GetRecord for OAI-PMH was pulling the MARCXML directly from the
database. Now it uses GetMarcBiblio and includes the item data with it,
making it more generally useful.

Test plan:
* Run an OAI-PMH query, for example:
http://koha/cgi-bin/koha/oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:52&metadataPrefix=marcxml
  to fetch biblionumber 52
* Note that it doesn't include the 952 data
* Apply the patch
* Do the same thing, but this time see that the 952 data is at the
  bottom of the MARCXML.

Note:
* This patch also includes a small tidy-up in C4::Biblios to group
  things semantically a bit better, so I don't spend ages looking for a
  function that was staring me in the face all along again.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Works as described. Simple yet useful patch.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Frederic Demians <f.demians@tamil.fr>
952/995 item fields are back in response to GetRecord OAI verb.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
C4/Biblio.pm
opac/oai.pl