-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OAI-PMH: add XSL stylesheet instructions (#725)
- Loading branch information
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ The OpenAIRE OAI sets is included by default in InvenioRDM. | |
The prefix that will be applied to the generated OAI-PMH ids. Should be set to the domain of the repository (f.e. `inveniordm.docs.cern.ch`): | ||
|
||
```python | ||
OAISERVER_ID_PREFIX = 'inveniordm.docs.cern.ch': | ||
OAISERVER_ID_PREFIX = 'inveniordm.docs.cern.ch' | ||
``` | ||
|
||
#### Admin Emails | ||
|
@@ -75,3 +75,15 @@ OAISERVER_ADMIN_EMAILS = [ | |
'[email protected]', | ||
] | ||
``` | ||
|
||
## XSL Stylesheet | ||
|
||
To enhance the presentation of OAI 2.0 results for users navigating to the OAI Server, you can define an XSL Stylesheet to transform XML into HTML. | ||
|
||
To use a local XSL Stylesheet, you can download a pre-defined XSL Stylesheet for OAI 2.0 from the [EPrints repository](https://raw.githubusercontent.com/eprints/eprints3.4/refs/heads/master/lib/static/oai2.xsl) (GNU Lesser General Public License v3 licensed). Place the file in the `static` folder within your instance, run `invenio-cli assets build`, and set the relative URL in the `invenio.cfg`: | ||
|
||
```python | ||
OAISERVER_XSL_URL = '/static/oai2.xsl' | ||
``` | ||
|
||
now when you navigate to the OAI Server, the XSL Stylesheet will be applied to the XML results. |