Changeset 37073


Ignore:
Timestamp:
2022-12-29T00:09:07+13:00 (5 weeks ago)
Author:
davidb
Message:

DocumentHeading moved back into collectionConfig.xml so monitoring for metadata works for document view

File:
1 edited

Legend:

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

    r36973 r37073  
    99    exclude-result-prefixes="java util gsf">
    1010
    11 <!--
    12     <xsl:template name="documentHeading">
    13       <span style="font-weight:bold; font-size: 120%;">
    14         <xsl:call-template name="choose-title"/>
    15       </span>
    16       <gsf:metadata-table>
    17         <gsf:metadata name="ex.im.Work"/>
    18         <gsf:metadata name="ex.im.Artist"/>
    19         <gsf:metadata name="ex.im.Venue"/>
    20         <gsf:metadata name="ex.im.Composer"/>
    21       </gsf:metadata-table>
    22     </xsl:template>
    23 -->
    2411 
    25     <!-- content of a simple document. Will not be used for editing mode -->
    26     <xsl:template name="documentPost">
    27 
    28             <div style="padding-top: 10px; padding-bottom: 10px;">
    29               <gsf:variable name="OID"><xsl:value-of select="@nodeID"/></gsf:variable>
    30               IIIF Server Info URL:
    31               <a href="/gs-cantaloupe/iiif/2/{$site_name}:{$collNameChecked}:{$OID}/info.json">
    32                 /gs-cantaloupe/iiif/2/<xsl:value-of select="$site_name"/>:<xsl:value-of select="$collNameChecked"/>:<xsl:value-of select="$OID"/>/info.json
    33               </a>
    34             </div>
    35 
    36             <!--
    37             canDoEditing = <xsl:value-of select="$canDoEditing"/> <br />
    38             editingTurnedOn = <xsl:value-of select="$editingTurnedOn"/>
    39             -->
    40            
    41               <!--
    42            
    43             <xsl:choose>
    44               <xsl:when test="$canDoEditing = 'true' and $editingTurnedOn = 'true'">
    45              
    46               <xsl:when test="$canDoEditing = 'true'">
    47 -->               
    48                 <gsf:script src="https://unpkg.com/mirador@latest/dist/mirador.min.js"/>
    49 
    50 
    51                 <!-- By default uses Roboto font. Be sure to load this or change the font -->
    52                 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
    53                 <!-- Container element of Mirador whose id should be passed to the instantiating call as "id" -->
    54                
    55                 <div style="position: relative; width: 100%; height: 800px;">
    56                   <div id="my-mirador"> <xsl:comment>filler</xsl:comment></div>
    57                 </div>
    58                
    59                 <gsf:script>
    60                  
    61 var mirador = Mirador.viewer({
    62   "id": "my-mirador",
    63   "manifests": {
    64     "https://intermuse.sowemustthink.space/greenstone3/sample-manifest.json": {
    65       "provider": "IntermusE"
    66     }
    67     },
    68   "window" : { "panels" : { "annotations": true, "attribution": false } },
    69   "annotations": {
    70     "htmlSanitizationRuleSet": 'iiif', // See src/lib/htmlRules.js for acceptable values
    71     "filteredMotivations": ['oa:commenting', 'oa:tagging', 'sc:painting', 'commenting', 'tagging'],
    72   },   
    73   "windows": [
    74     {
    75       "loadedManifest": "https://intermuse.sowemustthink.space/greenstone3/sample-manifest.json",
    76       "canvasIndex": 2,
    77       "thumbnailNavigationPosition": 'far-bottom'
    78     }
    79   ]
    80 });
    81                 </gsf:script>
    82 
    83                 <!--
    84               </xsl:when>
    85             </xsl:choose>
    86 -->
    87      
    88     </xsl:template>
    89    
    9012   
    9113</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.