Changeset 37086 for gs3-installations/intermuse/trunk/sites/intermuse
- Timestamp:
- 2023-01-02T00:42:00+13:00 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/transform/pages/document-iiif-manifest.xsl
r37085 r37086 30 30 <xsl:strip-space elements="*"/> 31 31 --> 32 33 <!-- **** is this variable used anymore in thie file???? --> 34 <xsl:variable name="httpDocument"> 35 <xsl:value-of select="$library_name"/> 36 <xsl:text>/collection/</xsl:text> 37 <xsl:value-of select="/page/pageResponse/collection/@name"/> 38 <xsl:text>/document/</xsl:text> 39 <xsl:value-of select="/page/pageRequest/paramList/param[@name = 'd']/@value"/> <!-- or use $docID from default/transform/pages/document.xsl ???? --> 40 </xsl:variable> 41 42 32 43 33 <xsl:variable name="iiifPresentationRootIdentifier">http-greenstone://<xsl:value-of select="$site_name"/>/<xsl:value-of select="$collNameChecked"/>/<xsl:value-of select="$docID"/></xsl:variable> 44 34 35 <!-- **** should be able to get rid of this, however at the moment it seems to be used in some supporting file !!!! --> 36 45 37 <xsl:variable name="bookswitch">mirador</xsl:variable> 46 38 … … 174 166 175 167 <xsl:template name="sectionImage"> 176 <!-- OBSOLETE when removing forced bookswith = mirador --> 177 <!-- make it do nothing !! --> 178 <xsl:if test="$bookswitch != 'mirador'"> 179 <gsf:image type="screen"/> 180 </xsl:if> 168 <!-- don't need this template to generate anything in the IIIF-Manifest JSON case --> 181 169 </xsl:template> 182 170 … … 238 226 <xsl:call-template name="documentContentSimpleIIIFImage"/> 239 227 <xsl:call-template name="documentPost"/> 240 <xsl:call-template name="documentPostMirador3"/> 228 <!-- 229 <xsl:call-template name="documentPostMirador3OLD"/> 230 --> 241 231 </xsl:template> 242 232 … … 253 243 254 244 255 <!-- **** improve name !!!! --> 256 <xsl:template name="documentPostMirador3"> 245 <xsl:template name="documentPostMirador3OLD"> 257 246 258 247 <!-- Container element of Mirador whose id should be passed to the instantiating call as "id" --> … … 265 254 <xsl:template name="wrappedDocumentTopLevel"> 266 255 267 <xsl:choose> 268 <xsl:when test="$bookswitch = 'mirador'"> 269 <!-- <xsl:call-template name="documentPre"/> --> 270 <div style="display:block;"> <!-- For embedded mirador3 viewer, used to be none **** --> 271 <xsl:call-template name="wrappedDocument"/> <!-- without ed=1, this template misses the binds in of documentPre and documentPost --> 272 </div> 273 <!-- <xsl:call-template name="documentPost"/> --> 274 <xsl:call-template name="documentPostMirador3"/> 275 </xsl:when> 276 277 <!-- OBSOLETE when removing forced bookswith = mirador --> 278 <xsl:otherwise> 279 <xsl:call-template name="wrappedDocument"/> <!-- without ed=1, this template misses the binds in of documentPre and documentPost --> 280 </xsl:otherwise> 281 282 </xsl:choose> 256 <!-- <xsl:call-template name="documentPre"/> --> 257 <xsl:call-template name="wrappedDocument"/> <!-- without ed=1, this template misses the binds in of documentPre and documentPost --> 258 <!-- <xsl:call-template name="documentPost"/> --> 259 <!-- 260 <xsl:call-template name="documentPostMirador3OLD"/> 261 --> 262 283 263 </xsl:template> 284 264 … … 286 266 <!-- **** see about eliminating the following => shouldn't be needed! !!!! --> 287 267 <!-- content of a simple document. Will not be used for editing mode --> 288 <xsl:template name="documentPostInProgress ">268 <xsl:template name="documentPostInProgressOLD"> 289 269 290 270 … … 350 330 351 331 <xsl:template name="wrappedSectionImage"> 332 <!-- don't need this template to generate anything in the IIIF-Manifest JSON case --> 333 </xsl:template> 334 335 <xsl:template name="wrappedSectionImageOLD"> 352 336 <xsl:variable name="screenImageWidth"><gsf:metadata name="ScreenWidth"/></xsl:variable> 353 337 <xsl:variable name="screenImageHeight"><gsf:metadata name="ScreenHeight"/></xsl:variable> … … 399 383 400 384 <xsl:template match="/page/pageResponse/document"> 401 <xsl:if test="$bookswitch = 'off' or ($bookswitch != 'on' and $bookswitch != 'flashxml')">402 <div id="bookdiv" style="visibility:hidden; height:0px; display:inline;"><xsl:text> </xsl:text></div>403 404 <div id="float-anchor" style="width: 30%; min-width:180px; float:right; margin: 0 0 10px 20px;">405 406 <!-- add in some text just in case nothing has been added to this div-->407 <xsl:text> </xsl:text>408 </div>409 </xsl:if>410 411 385 <!-- display the document --> 412 386 <xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.