[Koha-bugs] [Bug 6440] Koha's OAI-PMH does not support sets
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 23 17:05:46 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6440
--- Comment #5 from Julian Maurice <julian.maurice at biblibre.com> 2012-01-23 16:05:46 UTC ---
Created attachment 7296
--> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7296
Bug 6440: Implement OAI-PMH Sets
New sql tables:
- oai_sets: contains the list of sets, described by a spec and a name
- oai_sets_descriptions: contains a list of descriptions for each set
- oai_sets_mappings: conditions on marc fields to match for biblio to be
in a set
- oai_sets_biblios: list of biblionumbers for each set
New admin page: allow to configure sets:
- Creation, deletion, modification of spec, name and descriptions
- Define mappings which will be used for building oai sets
Implements OAI Sets in opac/oai.pl:
- ListSets, ListIdentifiers, ListRecords, GetRecord
New script misc/migration_tools/build_oai_sets.pl:
- Retrieve marcxml from all biblios and test if they belong to defined
sets. The oai_sets_biblios table is then updated accordingly
Use OPACBaseURL in oai_dc xslt
---
To test:
- Run updatedatabase.pl
- Go to OAI Sets administration page (Administration > OAI Sets Configuration)
- Create some sets with some mappings (mappings define if biblios belong to a
set or not, they're in the form of conditions FIELD$SUBFIELD = VALUE, multiple
conditions can be defined for a set)
- Check some biblios are matching the conditions to belong to one set or more
- Run misc/migration_tools/build_oai_sets.pl
- Now you can test with $OPACBaseUrl/cgi-bin/koha/oai.pl
OAI-PMH spec is here http://www.openarchives.org/OAI/openarchivesprotocol.html
Some examples:
http://mylibrary.org/cgi-bin/koha/oai.pl?verb=ListSets
http://mylibrary.org/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc&set=set1
http://mylibrary.org/cgi-bin/koha/oai.pl?verb=ListIdentifiers&set=set2
http://mylibrary.org/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=oai_dc&identifier=KOHA-OAI-TEST:3
The response of ListRecords and GetRecord must include setSpecs in header
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list