fc95762725
This patch allows Koha OAI repository to support deleted records. The OAI-PMH:DeletedRecord syspref is introduced and can be set to: - persistent (in case Koha's deletedbiblio table will never be emptied or truncated) - transient (in case Koha's deletedbiblio table might be emptied or truncated at some point) Test plan: - After applying the patch, test that: - Deleted records appear in ListRecords and ListIdentifiers requests. - Filter parameters (from, until, set and resumptionToken) still work and are applied to ListRecords and ListIdentifiers requests. - Identify request shows if the repository is considered persistent or transient, according to the OAI-PMH:DeletedRecord syspref. - Deleted records that used to belong to a set are still displayed in those sets and marked as deleted. - GetRecord requests work on deleted records, which are marked as deleted. Requests examples: /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc&from=2015-02-20T11:08:33Z /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc&set=new_specSet1 /cgi-bin/koha/oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:2&metadataPrefix=oai_dc /cgi-bin/koha/oai.pl?verb=Identify Signed-off-by: Frederic Demians <f.demians@tamil.fr> It works in all situations described in the test plan. Great addition. Thanks. Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
62 lines
2.5 KiB
Text
62 lines
2.5 KiB
Text
Web services:
|
|
OAI-PMH:
|
|
-
|
|
- pref: OAI-PMH
|
|
choices:
|
|
yes: Enable
|
|
no: Disable
|
|
- "Koha's"
|
|
- '<a href="http://www.openarchives.org/pmh/">OAI-PMH</a> server.'
|
|
-
|
|
- Identify records at this site with the prefix
|
|
- pref: "OAI-PMH:archiveID"
|
|
- ": ."
|
|
-
|
|
- Only return
|
|
- pref: "OAI-PMH:MaxCount"
|
|
class: integer
|
|
- records at a time in response to a ListRecords or ListIdentifiers query.
|
|
-
|
|
- "YAML OAI Koha server configuration file:"
|
|
- pref: "OAI-PMH:ConfFile"
|
|
class: file
|
|
- . If empty, Koha OAI Server operates in normal mode, otherwise it operates in extended mode. In extended mode, it's possible to parameter other formats than marcxml or Dublin Core. OAI-PMH:ConfFile specify a YAML configuration file which list available metadata formats and XSL file used to create them from marcxml records.
|
|
-
|
|
- pref: "OAI-PMH:AutoUpdateSets"
|
|
choices:
|
|
yes: Enable
|
|
no: Disable
|
|
- automatic update of OAI-PMH sets when a bibliographic record is created or updated
|
|
-
|
|
- Koha's deletedbiblio table
|
|
- pref: "OAI-PMH:DeletedRecord"
|
|
choices:
|
|
persistent: will never be emptied or truncated (persistent)
|
|
transient: might be emptied or truncated at some point (transient)
|
|
- "."
|
|
ILS-DI:
|
|
-
|
|
- pref: ILS-DI
|
|
choices:
|
|
yes: Enable
|
|
no: Disable
|
|
- ILS-DI services for OPAC users
|
|
-
|
|
- Allow IP addresses
|
|
- pref: ILS-DI:AuthorizedIPs
|
|
class: Text
|
|
- to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Leave the field blank to allow any IP address.
|
|
Reporting:
|
|
-
|
|
- Only return
|
|
- pref: SvcMaxReportRows
|
|
class: integer
|
|
- rows of a report requested via the reports web service.
|
|
IdRef:
|
|
-
|
|
- pref: IdRef
|
|
choices:
|
|
yes: Enable
|
|
no: Disable
|
|
- the IdRef webservice from the opac detail page. IdRef allows to request authorities from the Sudoc database.
|
|
- Please note that this feature is available only for UNIMARC.
|