This is a XSL transformations script for OAI-PMH responses. It can be embedded into the responses, like…
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="b4oai.xsl"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
</OAI-PMH>
After the transformation work is done (by the requesting browser), you'll get a nice and handy website, which also works on mobile devices (responsive), to view and browse your OAI-PMH response.
All necessary libraries are embedded over Content Delivery Networks (CDN). So there's just one transformation file (b4oai.xsl) necessary to beautify your OAI-PMH responses.
- CSS framework Bootstrap 5.2
- Bootswatch themes can be used as well!
- JavaScript library jQuery 3.1
- JavaScript library Datatables 1.12 for showing the data as tables
- JavaScript library highlight.js 11.6 for XML highlighting
- JavaScript library popper.js 2.11 for tooltips
Feel free to open an issue at GitHub.
This XSLT script is based on an XSLT script made by Daniel Berthereau.
Datatables is used to display data as tables as many as possible.
Every response has further information, which is displayed in a Bootstrap modal.
The configuration of time spans (parameters from
and until
) is supported by the frontend, too.
The XML data of a record is highlighted.