Changeset 37111


Ignore:
Timestamp:
2023-01-06T22:52:51+13:00 (4 weeks ago)
Author:
davidb
Message:

Change to using document_extra.js in web/ext/structured-image/js; some other code tidy up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/transform/pages/document.xsl

    r37105 r37111  
    3131   
    3232    <gsf:variable name="iiifPresentationRootIdentifier">http-greenstone://<xsl:value-of select="$site_name"/>/<xsl:value-of select="$collNameChecked"/>/<xsl:value-of select="$docID"/></gsf:variable>
    33 
    34     <!--
    35     <div style="padding-top: 10px; padding-bottom: 10px;">
    36       IIIF Server Info URL:
    37       <a href="/gs-cantaloupe/iiif/2/{$site_name}:{$collNameChecked}:{$identifier}/info.json">
    38     /gs-cantaloupe/iiif/2/<xsl:value-of select="$site_name"/>:<xsl:value-of select="$collNameChecked"/>:<xsl:value-of select="$identifier"/>/info.json
    39     </a>
    40     </div>
    41 
    42     <div style="padding-top: 10px; padding-bottom: 10px;">
    43       IIIF Server Image URL:
    44       <a href="/gs-cantaloupe/iiif/2/{$site_name}:{$collNameChecked}:{$identifier}/full/full/0/default.jpg">
    45     /gs-cantaloupe/iiif/2/<xsl:value-of select="$site_name"/>:<xsl:value-of select="$collNameChecked"/>:<xsl:value-of select="$identifier"/>/full/full/0/default.jpg
    46       </a>
    47     </div>
    48 
    49     <div style="padding-top: 10px; padding-bottom: 10px;">
    50       Single Page Manifest
    51       <a href="{$httpDocument}?book=mirador&amp;excerptid=run-iiif-manifest">
    52     <xsl:value-of select="$httpDocument"/>?excerptid=run-iiif-manifest
    53       </a>
    54     </div>
    55     -->
    5633   
    5734    <gsf:script>
     
    193170      console.log("**** chosenTitle = " + gs.variables.chosenTitle);
    194171    </gsf:script>
     172
     173    <!--
    195174    <gsf:script src="{$httpCollection}/js/document_viewer.js"/>
     175    -->
     176
     177    <gsf:script src="ext/structured-image/js/document_extra.js"/>
    196178    <style>
    197179       div.ocr-boundingbox-overlay {
     
    208190    </style>
    209191
    210     <xsl:if test="$bookswitch = 'mirador'">
    211       <!-- <gsf:script src="https://unpkg.com/mirador@latest/dist/mirador.min.js"/> -->
    212      
    213       <gsf:script src="ext/structured-image/mirador3/dist/mirador-with-annotations.js"/>
    214 
    215      
     192    <xsl:if test="$bookswitch = 'mirador'">     
     193      <gsf:script src="ext/structured-image/mirador3/dist/mirador-with-annotations.js"/>     
    216194      <!-- Mirador, by default, uses Roboto font, so load it in -->
    217195      <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
Note: See TracChangeset for help on using the changeset viewer.