Changeset 33228


Ignore:
Timestamp:
06/26/19 16:55:47 (18 months ago)
Author:
davidb
Message:

Hack to make emptying the berrybasket a single click operation

Location:
main/trunk/model-interfaces-dev/heritage-nz
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/heritage-nz/transform/pages/berry.xsl

    r33198 r33228  
    1212  <xsl:template name="pageTitle"><a href="{$library_name}/collection/pdf-reports/page/about">Digital Library Home</a><gslib:rightArrow/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.title')"/></xsl:template>
    1313
     14
     15    <!-- the page content -->
     16    <xsl:template match="/page">
     17      <gslib:langfrag name="berry"/>
     18        <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
     19        <script type="text/javascript" src="interfaces/default/js/berrybasket/berrycheckout.js"><xsl:text> </xsl:text></script>
     20        <xsl:call-template name="customJavascript"/>
     21        <xsl:call-template name="customCSS"/>
     22        <script type="text/javascript">
     23            <xsl:text disable-output-escaping="yes">
     24                var doc;
     25                var docList = new Array();
     26            </xsl:text>
     27            <xsl:for-each select="/page/pageResponse/berryList/item">
     28                <xsl:text disable-output-escaping="yes">doc = new Array();</xsl:text>
     29                <xsl:for-each select="@*">
     30                    <xsl:text disable-output-escaping="yes">doc["</xsl:text>
     31                    <xsl:value-of select="name()" />
     32                    <xsl:text disable-output-escaping="yes">"]='</xsl:text>
     33                    <xsl:value-of select="." />
     34                    <xsl:text disable-output-escaping="yes">';</xsl:text>
     35                </xsl:for-each>
     36                <xsl:text disable-output-escaping="yes">docList[</xsl:text>
     37                <xsl:value-of select="position()-1"/>
     38                <xsl:text>] = doc;</xsl:text>
     39            </xsl:for-each>
     40        </script>
     41
     42        <table class="navList" id="berryCheckoutOptions">
     43            <tr>
     44                <td id="fullview" class="current"><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.full_view')"/></span></td>
     45                <td id="textview"><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.text_view')"/></span></td>
     46                <td id="email"><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.email_view')"/></span></td>
     47            </tr>
     48            <div class="clear"><xsl:text> </xsl:text></div>
     49        </table>
     50<!--
     51        <input type="checkbox" name="selall-checkbox" id="select-all-checkbox" value="select-all" onclick="toggleSelectAll(this)">Select All</input>
     52        <input type="checkbox" name="delsel-checkbox" id="delete-selected-checkbox" value="delete-all" onclick="deleteSelected()">Delete Selected</input>
     53        <input type="checkbox" name="delall-checkbox" id="delete-all-checkbox" value="delete-all" onclick="deleteAll()">Delete All</input>
     54-->
     55        <div id="berryBasketContent"><span><xsl:text> </xsl:text></span></div>
     56
     57
     58        <div id="berryBasketDeleteAll">
     59          To delete individual berries, drag its berry icon to the trashcan.  Or else
     60          <style> #bbdeleteallbutton:hover { background-color: #773030;}</style>
     61          <div id="bbdeleteallbutton" class="ui-button ui-widget ui-state-default ui-corner-all"
     62               style="color: white; padding: 5px;" onclick="deleteAll()">
     63            Delete All
     64          </div>
     65        </div>
     66
     67
     68    </xsl:template>
     69
     70
     71
    1472  <!-- add in our custom berry basket code -->
    1573  <xsl:template name="customJavascript">
Note: See TracChangeset for help on using the changeset viewer.