This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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/ | |
*/ | |
callbackCitedbycount = function(){ | |
if (sciverse.areSearchResultsValid()) { | |
var resultObj = sciverse.getSearchResults(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.truncable-txt').append('<span class="read-more trigger-js"> <a class="read-more__txt small">[+] Show more</a></span>' + | |
'<span class="read-less trigger-js"> <a class="read-less__txt small">[-] Show less</a></span>'); | |
var bindReadMore = function(){ | |
$('.read-more').on('click', function(e) { | |
e.preventDefault(); | |
var parent = $(this).parent(); | |
parent.trigger("destroy"); | |
parent.removeClass('truncable-txt--is-truncated'); | |
parent.addClass('truncable-txt--is-not-truncated'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch --all | |
git checkout master #may have to git stash first, but, don't forget, you need to be ON THE MASTER BRANCH before you proceed | |
git pull upstream master | |
git push origin master | |
git pull origin master #not necessary but a nice sanity check | |
git checkout BRANCHNAME | |
git rebase -i master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
import json | |
import xml.etree.ElementTree as ElementTree | |
from javax.servlet.http import HttpServlet | |
from net.sf.ehcache import Cache; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output omit-xml-declaration="yes" indent="yes"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:key name="kConcByCode" match="CONCEPT" use="DESCRIPTOR"/> | |
<xsl:key name="useFor" match="CONCEPT" use="NON-DESCRIPTOR"/> | |
<xsl:template match="/"> | |
<node id="ASFA" label="ASFA Thesaurus"> | |
<isComposedBy> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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.app.mediafilter; | |
import org.dspace.core.ConfigurationManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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.app.mediafilter; | |
import org.dspace.core.ConfigurationManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DSpace 5 | |
select | |
h.handle, | |
rp.policy_id, | |
bit.sequence_id, | |
bitmv.text_value, | |
bit.internal_id, | |
brp.policy_id | |
from handle h | |
join item i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
OlderNewer