Changeset 37094


Ignore:
Timestamp:
2023-01-02T17:47:37+13:00 (16 months ago)
Author:
davidb
Message:

Name change to better refelct the Javascript value (window.location.origin) it is looking to emulate

File:
1 edited

Legend:

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

    r37093 r37094  
    103103    <!-- ***** need to work out domain name to use from raw XML message, say processing something from the above -->
    104104   
    105     <xsl:variable name="document-location-origin">https://intermuse.sowemustthink.space</xsl:variable>
     105    <xsl:variable name="window-location-origin">https://intermuse.sowemustthink.space</xsl:variable>
    106106
    107107    <xsl:variable name="section"><xsl:value-of select="position()" /></xsl:variable>
     
    160160
    161161          "resource": {
    162             "@id":     "<xsl:value-of select="$document-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />/full/full/0/default.jpg",
     162            "@id":     "<xsl:value-of select="$window-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />/full/full/0/default.jpg",
    163163            "@type":   "dctypes:Image",
    164164            "format":  "image/jpeg",
     
    167167            "service": {
    168168              "@context": "http://iiif.io/api/image/2/context.json",
    169               "@id":      "<xsl:value-of select="$document-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />",
     169              "@id":      "<xsl:value-of select="$window-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />",
    170170              "profile":  "https://iiif.io/api/image/2/profiles/level2.json"
    171171            }
     
    174174          }],
    175175          "thumbnail": {
    176             "@id":   "<xsl:value-of select="$document-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />/full/,150/0/default.jpg",
     176            "@id":   "<xsl:value-of select="$window-location-origin" /><xsl:value-of select="$iiifImageRootIdentifier" />/full/,150/0/default.jpg",
    177177        "@type": "dctypes:Image"
    178178          }
Note: See TracChangeset for help on using the changeset viewer.