Ignore:
Timestamp:
2017-11-14T14:08:37+13:00 (4 years ago)
Author:
kjdon
Message:

added in customJavascriptForDocumentView, customJavascriptForDOcumentEditing templates, so if you want to add some just for a collection, you don't need to copy the entire javascriptForDocumentView/Editing templates. also removed <gsf:metadata name='all'/> - this gets seen whether we are editing or not so it was always loading all metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r32058 r32065  
    260260            </xsl:text>
    261261        </script>
     262        <xsl:call-template name="customJavascriptForDocumentView"/>
    262263        </xsl:template>
     264   
     265    <!-- Use this to add in extra javascript/files for an interface, site, collection -->
     266    <xsl:template name="customJavascriptForDocumentView">
     267    </xsl:template>
     268   
    263269    <xsl:template name="javascriptForDocumentEditing">
    264270    <!--        <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script>-->
     
    287293
    288294            </script>
    289      
     295      <xsl:call-template name="customJavascriptForDocumentEditing"/>
     296    </xsl:template>
     297   
     298    <!-- Use this to add in extra javascript/files for an interface, site, collection -->
     299    <xsl:template name="customJavascriptForDocumentEditing">
    290300    </xsl:template>
    291301
     
    311321      <xsl:if test="$canDoEditing = 'true'">
    312322        <xsl:call-template name="javascriptForDocumentEditing"/>
    313         <gsf:metadata name="all"/>
    314323        <gslib:langfrag name="dse"/>
    315324        <gslib:langfrag name="de"/>
Note: See TracChangeset for help on using the changeset viewer.