See https://github.com/Georgetown-University-Libraries/CompareSierraPermissions
- Select 2 Sierra Users
- Submit form
- View differences
public class NameChecksum extends DefaultFileTest { | |
public String toString() { | |
return "Sort By Checksum"; | |
} | |
public String getShortName(){return "Checksum";} | |
public String getDescription() { | |
return "This test reports the checksum for a given filename.\n" + | |
"The summary report will identify files with the same checksum value.\n" + |
<xsl:template match="dri:trail"> | |
<li> | |
<xsl:attribute name="class"> | |
<xsl:text>ds-trail-link </xsl:text> | |
<xsl:if test="position()=1"> | |
<xsl:text>first-link </xsl:text> | |
</xsl:if> | |
<xsl:if test="position()=last()"> | |
<xsl:text>last-link</xsl:text> | |
</xsl:if> |
See https://github.com/Georgetown-University-Libraries/CompareSierraPermissions
<!doctype html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var spData = null; | |
function doData(json) { | |
spData = json.feed.entry; | |
} | |
$(document).ready(function () { | |
$(document).find("head").append("<style id='gu-custom-css' type='text/css'/>"); | |
$("#gu-custom-css").append(".holding-msg {font-weight: bold; margin-top: 9px; margin-bottom: 9px;}"); | |
$("#gu-custom-css").append(".holding-header-sep {border-top: dashed 1px #8d817b; padding-top: 9px;}"); | |
$("#gu-custom-css").append("div.chart .selection {fill: #679146; stroke: #6caddf;}"); | |
$("#gu-custom-css").append(".savedItemsFolder .badgeContainer .badge {background-color: #679146;}"); | |
$("#gu-custom-css").append(".fulltext {background-color: #679146;}"); | |
$("#gu-custom-css").append(".fulltext .fulltext-inner:before {border-color: #004990 transparent transparent !important;}"); | |
$("#gu-custom-css").append(".resultsPane .rollup {border-left: 4px solid #6caddf;}"); | |
$("#gu-custom-css").append(".resultsPane .imagesRollup .grid {margin-top: 0.6rem;}"); |
Add the following to solr.xml
<core name="tstatistics" instanceDir="tstatistics" />
Build solrFix-2.0.jar using the pom file listed above
Run the solrFix jar repeatedly until all records have been copied from "statitistics" to "tstatistics". This calls the SolrTouch class which reads each statistics record and copies it (exluding uid and version). This will force the re-initialization of these fields.
This process runs into heap or garbage collection contstraints when processing large numbers of items. On line #63, tune the process to set a maximum number of records to process at one time. (Recommended: 100,000 to 500,000)
/** | |
* 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/ | |
*/ | |
package org.dspace.ctask.georgetown; | |
import java.io.IOException; |
/** | |
* 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/ | |
*/ | |
package org.dspace.statistics; | |
import au.com.bytecode.opencsv.CSVReader; |
This sample code has been migrated to https://github.com/Georgetown-University-Libraries/SummonCustomization |