From 5a23be11357c0942989584fcc2a22c222d7ace44 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 12 Oct 2017 12:38:45 +0200 Subject: [PATCH] Adjust XSLT output transformation --- oai2transform.xsl | 763 +++++++++++++++++++++++++--------------------- 1 file changed, 410 insertions(+), 353 deletions(-) diff --git a/oai2transform.xsl b/oai2transform.xsl index 0180e6e..2d1b616 100644 --- a/oai2transform.xsl +++ b/oai2transform.xsl @@ -1,446 +1,503 @@ - + - -td.value { - vertical-align: top; - padding-left: 1em; - padding: 3px; -} -td.key { - background-color: #e0e0ff; - padding: 3px; - text-align: right; - border: 1px solid #c0c0c0; - white-space: nowrap; - font-weight: bold; - vertical-align: top; -} -.dcdata td.key { - background-color: #ffffe0; -} -body { - margin: 1em 2em 1em 2em; -} -h1, -h2, -h3 { - font-family: sans-serif; - clear: left; -} -h1 { - padding-bottom: 4px; - margin-bottom: 0px; -} -h2 { - margin-bottom: 0.5em; -} -h3 { - margin-bottom: 0.3em; - font-size: medium; -} -.link { - border: 1px outset #88f; - background-color: #c0c0ff; - padding: 1px 4px 1px 4px; - font-size: 80%; - text-decoration: none; - font-weight: bold; - font-family: sans-serif; - color: black; -} -.link:hover { - color: red; -} -.link:active { - color: red; - border: 1px inset #88f; - background-color: #a0a0df; -} -.oaiRecord, -.oaiRecordTitle { - background-color: #f0f0ff; - border-style: solid; - border-color: #d0d0d0; -} -h2.oaiRecordTitle { - background-color: #e0e0ff; - font-size: medium; - font-weight: bold; - padding: 10px; - border-width: 2px 2px 0px 2px; - margin: 0px; -} -.oaiRecord { - margin-bottom: 3em; - border-width: 2px; - padding: 10px; -} + + * { + font-family: "Lucida Sans Unicode", sans-serif; + } + body { + margin: 1em 2em 1em 2em; + } + h1, + h2, + h3, + h4 { + clear: left; + } + h1 { + padding-bottom: 4px; + margin-bottom: 0px; + } + h2 { + margin-bottom: 0.5em; + } + h3 { + margin-bottom: 0.3em; + font-size: medium; + } + h4 { + margin-bottom: 0.2em; + font-size: small; + } + table { + margin-top: 10px; + } + td.key { + background-color: #e0e0ff; + padding: 3px; + text-align: right; + border: 1px solid #c0c0c0; + white-space: nowrap; + vertical-align: top; + } + td.value { + vertical-align: center; + padding-left: 1em; + padding: 3px; + } + .link { + border: 1px outset #88f; + background-color: #c0c0ff; + padding: 1px 4px; + font-size: 80%; + text-decoration: none; + color: black; + } + .link:hover { + color: gray; + } + .link:active { + color: red; + border: 1px inset #88f; + background-color: #a0a0df; + } + .results { + margin-bottom: 1.5em; + } + div.quicklinks { + border-bottom: 2px solid #ccc; + border-top: 2px solid #ccc; + } + ul { + margin: 2px 0; + padding: 4px; + text-align: left; + clear: left; + } + ul li { + font-size: 80%; + display: inline; + list-style: none; + } + ol { + padding: 0; + } + ol>li { + list-style: none; + padding: 0 5px 5px; + margin: 0 0 1em; + border: 1px solid #c0c0c0; + } + p { + margin: 0; + padding: 5px; + } + p.info { + font-size: 80%; + } + .xmlSource { + font-size: 70%; + border: solid #c0c0a0 1px; + background-color: #ffffe0; + padding: 2em 2em 2em 0; + } + .xmlBlock { + padding-left: 2em; + } + .xmlTagName { + color: #800000; + font-weight: bold; + } + .xmlAttrName { + font-weight: bold; + } + .xmlAttrValue { + color: #0000c0; + } + -.results { - margin-bottom: 1.5em; -} -ul.quicklinks { - margin-top: 2px; - padding: 4px; - text-align: left; - border-bottom: 2px solid #ccc; - border-top: 2px solid #ccc; - clear: left; -} -ul.quicklinks li { - font-size: 80%; - display: inline; - list-style: none; - font-family: sans-serif; -} -p.intro { - font-size: 80%; -} - - + + + + + - -.xmlSource { - font-size: 70%; - border: solid #c0c0a0 1px; - background-color: #ffffe0; - padding: 2em 2em 2em 0em; -} -.xmlBlock { - padding-left: 2em; -} -.xmlTagName { - color: #800000; - font-weight: bold; -} -.xmlAttrName { - font-weight: bold; -} -.xmlAttrValue { - color: #0000c0; -} - + + + + OAI-PMH 2.0 Request Results + + + +

OAI-PMH 2.0 Request Results

+ + + +

You are viewing an HTML version of the XML OAI-PMH response. To see the underlying XML as it appears to any OAI-PMH harvester use your web browser's view source option or disable XSLT processing.

+

This XSL script was originally written by Christopher Gutteridge at University of Southampton for the EPrints project and was later adapted by Sebastian Meyer at Open Culture Consulting to be more generally applicable to other OAI-PMH interfaces. It is available on GitHub for free!

+ + +
- + + + - - - - OAI-PMH 2.0 Request Results - - - -

OAI-PMH 2.0 Request Results

- -

You are viewing an HTML version of the XML OAI response. To see the underlying XML as it appears to any OAI harvester use your web browser's view source option or disable XSLT processing.

- - - - -
+ + + + + + + + +
Datestamp of Response
Request URL
Request Parameters + verb =
+ metadataPrefix =
+ identifier =
+ from =
+ until =
+
+ + +

Error

+

The request could not be completed due to the following error.

+
+ +
+
+ +

+

The request was completed with the following results.

+
+ + + + + +
+
+
+
- - - - - - - - - - -
Datestamp of Response
Request URL
- - -

OAI Error

-

The request could not be completed due to the following error.

-
- -
-
- -

Request was of type .

-
- - - - - -
-
-
-
- - - - - - -
Error Code
-

+ + + + +
Error Code
+

- -

Repository

- - - - - - - - - - - - - - -
Name
Base URL
Protocol Version
Earliest Datestamp
Deleted Record Policy
Granularity
-
- - - Admin Email - + +
    +
  1. +

    Repository Identification

    + + + + + + + + + + + + + + + +
    Name
    Base URL
    Protocol Version
    Earliest Datestamp
    Deleted Record Policy
    Granularity
    Administrative Email
    +
  2. +
- - - - - - - - - - - - - - - - - - - -

This is a list of metadata formats available for the record "". Use these links to view the metadata:

-
- -

This is a list of metadata formats available from this repository. Click on a format's prefix to get all available records' identifiers.

-
-
- + + +

This is a list of metadata formats available for the record .

+
+ +

This is a list of metadata formats available from this repository.

+
+
+
    + +
-

Metadata Format

- - - - - - - -
Prefix
Namespace
Schema
-
- - - +
  • +

    Metadata Format

    + + + + + + + + +
    Prefix
    Namespace
    Schema
    +
  • - -

    OAI Record:

    -
    - - -
    + +

    This is a list of records' identifiers available for the metadata format .

    +
      + +
    +
    - -

    OAI Record Header

    - - - - - -
    OAI Identifier - - available formats -
    Datestamp
    - -

    This record has been deleted.

    -
    + +
  • +

    Record Header

    + + + + + + + + +
    Identifier
    Datestamp
    Deleted + + yes + no + +
    +
  • +
    + + + +

    This is a list of records available for the metadata format .

    +
      + +
    + +
    + + + +

    This is the record in the metadata format .

    +
      + +
    +
    + + + +
  • + + +
  • +
    + + +

    Record

    + + + + + + +
    Identifier
    Datestamp
    +

    This record has been deleted.

    -   - + -

    There are more results.

    - - - - - - - - - -
    Submitted Records
    Total Records
    Expiration Datestamp
    Resumption Token - - Resume
    +

    There are more results.

    + + + + + + + + + + +
    Submitted Records
    Total Records
    Expiration Datestamp
    Resumption Token
    -

    Unknown Metadata Format

    -
    - -
    +

    Metadata Format

    +
    + +
    - -
    -

    DublinCore Metadata

    - - -
    -
    + +

    Metadata Format DublinCore

    + + +
    -Title + Title +
    -Author or Creator + Author or Creator +
    -Subject and Keywords + Subject and Keywords +
    -Description + Description +
    -Publisher + Publisher +
    -Other Contributor + Other Contributor + -Date + Date + -Resource Type + Resource Type + -Format + Format + -Resource Identifier + Resource Identifier + -Source + Source + -Language + Language + -Relation - - - - - URL - URL not shown as it is very long. - - - - - - - - - - - + Relation + + + + + + + + + -Coverage + Coverage + -Rights Management + Rights Management + -
    - <></> -
    +
    + <></> +
    - ="" + =""