Bug 6440: Implement OAI-PMH Sets
authorJulian Maurice <julian.maurice@biblibre.com>
Mon, 23 Jan 2012 15:25:51 +0000 (16:25 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 20 Mar 2012 10:38:26 +0000 (11:38 +0100)
commit3b0d4e04e09f37e8dcbaba71abd47980bfef7059
tree20a78627f2d9c371d2f47aac2163cadc4a493c32
parentaac5379b22ba123e3f577c949f05dc904d32d687
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

New system preference OAI-PMH:AutoUpdateSets. If on, update sets
automatically when a biblio is created or updated.

Use OPACBaseURL in oai_dc xslt
19 files changed:
C4/Biblio.pm
C4/OAI/Sets.pm [new file with mode: 0644]
admin/oai_set_mappings.pl [new file with mode: 0755]
admin/oai_sets.pl [new file with mode: 0755]
installer/data/mysql/atomicupdate/oai_sets.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref
koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/oai_set_mappings.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/oai_sets.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl
kohaversion.pl
misc/migration_tools/build_oai_sets.pl [new file with mode: 0755]
opac/oai.pl