Ignore:
Timestamp:
2022-12-10T22:04:37+13:00 (15 months ago)
Author:
davidb
Message:

OCR'd txt now stored in each <div> as a data field

File:
1 edited

Legend:

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

    r37011 r37017  
    3333    <xsl:param name="assocfilepath"/>
    3434   
     35    <gsf:variable name="GVDocumentOCRJSON"><gsf:metadata name="GVDocumentOCRJSON"/></gsf:variable>
     36    <gsf:variable name="docSectionID"><xsl:value-of select="util:replace(@nodeID, '.', '_')}"/></gsf:variable>
     37   
    3538    <div style="padding-top: 10px; padding-bottom: 10px;">
    3639      Google Vision OCR JSON:
     
    3841    <xsl:attribute name="href">
    3942      <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name = 'httpPath']"/>
    40       <xsl:text>/index/assoc/</xsl:text><xsl:value-of disable-output-escaping="yes" select="$assocfilepath" /><xsl:text>/</xsl:text>gv_document_ocrgoogle-vision-output.json
     43      <xsl:text>/index/assoc/</xsl:text><xsl:value-of disable-output-escaping="yes" select="$assocfilepath" /><xsl:text>/</xsl:text><xsl:value-of select="$GVDocumentOCRJSON"/>
    4144    </xsl:attribute>
    42     gv_document_ocrgoogle-vision-output.json
     45    <xsl:value-of select="$GVDocumentOCRJSON"/>
    4346      </a>
    4447    </div>
    45     <gsf:variable name="GVDocumentOCRJSON"><gsf:metadata name="GVDocumentOCRJSON"/></gsf:variable>
    46     <gsf:variable name="docSectionID"><xsl:value-of select="util:replace(@nodeID, '.', '_')}"/></gsf:variable>
    4748    <gsf:script>
    4849      load_gv_dococr_json(gs.variables.GVDocumentOCRJSON,gs.variables.docSectionID,display_gv_ocr_bounding_boxes);
Note: See TracChangeset for help on using the changeset viewer.