Changeset 37093


Ignore:
Timestamp:
2023-01-02T17:45:31+13:00 (5 weeks ago)
Author:
davidb
Message:

Given how the nested hierarchical traversal of a document has been simplied from the original document.xsl, only want to generate an IIIF canvas-image element when processing a leaf node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document-iiif-manifest.xsl

    r37090 r37093  
    1919  -->
    2020
    21   <!-- **** this only defines xsl-variables => change filename? -->
    22   <xsl:include href="layouts/header-core.xsl"/>
     21  <xsl:include href="layouts/header-vars.xsl"/>
    2322
    2423  <xsl:include href="pages/document-shared.xsl" />
    25   <!-- **** this only defines xsl-variables => change filename? --> 
    26   <xsl:include href="pages/document-core.xsl" />
     24  <xsl:include href="pages/document-vars.xsl" />
    2725
    2826 
     
    3331  <xsl:strip-space elements="*"/>
    3432  -->
    35 
    3633 
    3734  <xsl:variable name="iiifPresentationRootIdentifier">http-greenstone://<xsl:value-of select="$site_name"/>/<xsl:value-of select="$collNameChecked"/>/<xsl:value-of select="$docID"/></xsl:variable>
     
    208205    <xsl:variable name="httpCollection">library/sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:variable>
    209206
    210     <xsl:variable name="chosenTitle">
     207    <xsl:variable name="toplevelChosenTitle">
    211208      <xsl:choose>
    212209    <xsl:when test="@docType='simple'">
     
    224221    "@type": "sc:Manifest",
    225222    "@id": "<xsl:value-of select="$iiifPresentationRootIdentifier"/>/manifest",
    226     "label": "<xsl:value-of select="$chosenTitle"/>",
     223    "label": "<xsl:value-of select="$toplevelChosenTitle"/>",
    227224    "attribution": "The Internet of Musical Events (InterMusE): Digital Scholarship, Community, and the Archiving of Performance",
    228225    "license": "https://**** To Be Determined ****",
     
    260257  <xsl:template name="wrapDocumentNodes">
    261258
    262     <xsl:call-template name="sectionContent"/>
     259    <xsl:if test="@nodeType = 'leaf'">
     260      <!-- for iiif-manifest JSON, put out a flat-list of images => only interested in leaf nodes -->
     261      <xsl:call-template name="sectionContent"/>
     262    </xsl:if>
    263263   
    264264    <xsl:if test="documentNode">
Note: See TracChangeset for help on using the changeset viewer.