Ignore:
Timestamp:
2023-06-07T19:33:08+12:00 (12 months ago)
Author:
anupama
Message:

In the PDF Collection tutorial, the 2 PDFs that were converted to paged images are structured as well. I felt they needed to have book icons rather than page icons to depict them. The existing XSL was only setting the bookicon for doctype hierarchy with nodeType root, not for doctype paged despite nodeType being root. I have added the latter as an additional condition to produce the book icon and tested that the PDF Collection looks right now and the reports collection looks unchanged (correct as before).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/expand-gsf.xsl

    r37418 r37756  
    436436                            <xslt:when test="@docType='hierarchy' and @nodeType='root'">
    437437                                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'book_image')"/>
     438                            </xslt:when>
     439                            <xslt:when test="@docType='paged' and @nodeType='root'">
     440                              <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'book_image')"/>
    438441                            </xslt:when>
    439442                            <xslt:otherwise>
Note: See TracChangeset for help on using the changeset viewer.