Skip to content

Commit

Permalink
Update oaipmh-documentation-english.md
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy authored Nov 4, 2021
1 parent 68760da commit 8c15b64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions oaipmh/oaipmh-documentation-english.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ For example if `metadataPrefix=marcxml_expanded` is used for a bilbiographic rec
The Libris OAI-PMH implementation allows one extra parameter which is not a part of the OAI-PMH specification. This parameter is called `x-withDeletedData` and may be used with the verbs `GetRecord` and `ListRecords`. If `x-withDeletedData` is set to `true` this results in data being delivered for records even if those records are marked deleted. This violates the OAI-PMH specification, which explicitly forbids both extra parameters and delivering deleted data. The parameter has been included anyway, because it is necessary for certain Libris functionality.

#### Example
To harvest (from the Libris QA-environment) all bibliographic records (with a list of holding records attached) for which there exists holding records with the sigel `S` and that have been modified between 13/2 and 12:00 14/2 (UTC):
To harvest all bibliographic records (with a list of holding records attached) for which there exists holding records with the sigel `S` and that have been modified between 2018-02-13 and 12:00 2018-02-14 (UTC):

```
$ curl "https://libris.kb.se/api/oaipmh/?verb=ListRecords&metadataPrefix=marcxml_includehold_expanded&from=2018-02-13&until=2018-02-14T12:00:00Z&x-withDeletedData=true&set=bib:S"
<?xml version="1.0" encoding="UTF-8"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2018-02-15T10:54:18.606Z</responseDate><request verb="ListRecords" metadataPrefix="marcxml_includehold_expanded" from="2018-02-13" until="2018-02-14" x-withDeletedData="true" set="hold:S">http://export-qa.libris.kb.se:8080/oaipmh/</request><ListRecords><record><header><identifier>https://libris-qa.kb.se/pt0pfgtv1hf8p2t</identifier>
...
```

0 comments on commit 8c15b64

Please sign in to comment.