This file contains hidden or 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
id | name | title | category | notes | owner_org | |
---|---|---|---|---|---|---|
7285f5c2-412a-4264-95fe-39c658d8be3z | hdlcusp10212z | A New Dataset test | some category | This is a test | 1de1bfef-1450-4b1f-9783-aba1419a5fd4 | |
7285f5c2-412a-4264-95fe-39c658d8be3z2 | hdlcusp10213z | A 2nd New Dataset test | some category | This is a test | 1de1bfef-1450-4b1f-9783-aba1419a5fd4 |
This file contains hidden or 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
import ckanapi | |
import csv | |
from copy import deepcopy | |
def update_dataset_api_call(connection, dataset_data): | |
''' | |
This function uses the provided connection to make an api call that updates the dataset title | |
:param connection: | |
:return: None |
This file contains hidden or 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
import ckanapi | |
mysite = ckanapi.RemoteCKAN('http://xxxx', | |
apikey='xxx', | |
user_agent='ckanapiexample/1.0 (+http://example.com/my/website)') | |
data = { | |
"title": "UrbanSound", | |
"license_title": "Creative Commons Attribution", | |
"maintainer": "", |
This file contains hidden or 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
{ | |
"scheming_version": 1, | |
"dataset_type": "dataset", | |
"about": "A reimplementation of the default CKAN dataset schema", | |
"about_url": "http://github.com/ckan/ckanext-scheming", | |
"dataset_fields": [ | |
{ | |
"field_name": "title", | |
"label": "Title", | |
"preset": "title", |
This file contains hidden or 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
jQuery(document).ready(function() { | |
// get all the elements that have a class name '.resource-name' | |
var links = jQuery(".resource-name"); | |
// go through the elements and add a link after each one based on the text each element contains | |
for(var i =0; i<links.length; i++){ | |
// turn the current item into a jquery object | |
var el = jQuery(links[i]); | |
This file contains hidden or 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
/* | |
* Script to customize Summon UI ver 2 made by Wittawat Meesangnil | |
* Hi SerSol, this seems safe enough, if you think this script breaks anything - let us know. | |
* Many thanks to @daveyp, @mreidsma, and @godmarback | |
*/ | |
//fixing OCT 15 2014 - Summon now load stuffs from CDN with LAB.js, everything is async, non-blocking | |
//think of this as a wake up call, and learn how to "hacking Summon - the elegant way" | |
//our custom translation here - they've finally fixed it |
This file contains hidden or 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
<?php | |
/* | |
* A simple example function using 360Link API to make a pop-up window to display all the databases | |
* for a full text article in Summon 1.0 | |
* and assign license links which are created in Mondo License Grinder | |
* Made and modified by Jenny Jing, Qinqin Lin | |
* Last Modified: Dec. 16, 2014 | |
*/ | |
function get_xml_result($url) { //this function is copied online: http://journal.code4lib.org/articles/108 | |
This file contains hidden or 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
/* | |
* Script to log summon usage statistics & customize Summon UI | |
* http://gvsu.summon.serialssolutions.com/search?s.cmd=nextPage%28%29&s.light=t&s.pn=4&s.q=test | |
* Authors: Matthew Reidsma & Adam Luckenbaugh | |
* Version 1.2 | |
* Last Edited by: Jenny Jing & Sharifi Ahmed, 05/24/2015 | |
* Function: find the ISSN and DOI in each record displayed in Summon result page, and use them as the input for 360Link API, in order to generate the links in the mini-popup window. | |
*/ | |
$(document).ready(function() { |
This file contains hidden or 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:variable name=”providerData”> | |
<xsl:value-of select=”slim:subfield[@code='z']” /> | |
</xsl:variable><xsl:variable name=”providerTrimmed”> | |
<xsl:value-of select=”substring-after($providerData, ‘- ‘)” /> | |
</xsl:variable><xsl:variable name=”provider”> | |
<xsl:choose> | |
<xsl:when test=”string-length($providerTrimmed)>0″> | |
<xsl:value-of select=”$providerTrimmed” /> | |
</xsl:when> | |
<xsl:otherwise> |
This file contains hidden or 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
/* Script to database provider name in the 360 Link search result page and add the license Info link to that provider. | |
<script type="text/javascript" language="JavaScript" src="http://xxx/jquery-1.9.0.js"></script> | |
Please copy the "http://code.jquery.com/jquery-1.9.0.js" to your web site and replace the URL. | |
Please insert the URL of this JavaScript file "http://xxx/get_license.js"in 360 Link Admin>Header. | |
*/ | |
$(document).ready(function() | |
{ |