Skip to content

Instantly share code, notes, and snippets.

View eulereadgbe's full-sized avatar

Elvi Nemiz eulereadgbe

  • Southeast Asian Fisheries Development Center, Aquaculture Department
View GitHub Profile
@eulereadgbe
eulereadgbe / theme.xsl
Last active March 4, 2020 04:08
Added top 10 most downloaded items to /statistics-home
<xsl:template match="dri:div[@id='aspect.statistics.StatisticsTransformer.div.home' and @n='home']//dri:table[@id='aspect.statistics.StatisticsTransformer.table.list-table' and @rend='tableWithTitle detailtable']">
<xsl:variable name="statsURL" select="confman:getProperty('solr-statistics.server')"/>
<xsl:apply-templates select="document(concat($statsURL,'/select?q=type:2+-isBot:true+statistics_type:view&amp;wt=xml&amp;indent=true&amp;facet=true&amp;facet.field=id&amp;facet.sort=count&amp;facet.limit=10'))" mode="most-visited"/>
<xsl:apply-templates select="document(concat($statsURL,'/select?q=type:0+-isBot:true+statistics_type:view&amp;wt=xml&amp;indent=true&amp;facet=true&amp;facet.field=owningItem&amp;fq=bundleName:ORIGINAL&amp;facet.sort=count&amp;facet.limit=10'))" mode="most-downloaded"/>
</xsl:template>
<xsl:template match="/" mode="most-downloaded">
<h3 class="ds-table-head">Total Downloads</h3>
<div class="table-responsive">
<table clas
@eulereadgbe
eulereadgbe / Install DSpace 6 with Mirage 2 theme.ipynb
Created October 30, 2021 13:29 — forked from otuoma/Install DSpace 6 with Mirage 2 theme.ipynb
How to install DSpace 6 with Mirage 2 enabled
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eulereadgbe
eulereadgbe / bookview-banner.html
Created February 10, 2022 01:15 — forked from terrywbrady/bookview-banner.html
Sample FlexPaper Document Viewer for XMLUI
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
<div id="close"><a href="javascript:window.close();">Close Book Viewer</a></div>