This is currently only built for Unix based operating systems such as Mac OSX and Linux
Make sure you already have Python 2.7 and pip installed
pip install tadc-import-validator
# Here we assume that $TALIS_API_CLIENT_ID and $TALIS_API_CLIENT_SECRET are set in your environment | |
# A sub shell runs the persona-token script and will return the token we need in the Authorization Bearer header. | |
curl -v -X GET -H "Authorization: Bearer $(persona-token $TALIS_API_CLIENT_ID $TALIS_API_CLIENT_SECRET)"\ | |
-H "Cache-Control: no-cache"\ | |
"https://rl.talis.com/2/$TENANT_SHORT_CODE/lists/$LIST_GUID" |
curl -X GET -H "Authorization: Bearer $YOUR_TOKEN_HERE"\ | |
-H "Cache-Control: no-cache"\ | |
"https://rl.talis.com/2/$TENANT_SHORT_CODE/lists/$LIST_GUID" |
# Assuming that TALIS_API_CLIENT_ID and TALIS_API_CLIENT_SECRET are set in your environment | |
curl -sS -u $TALIS_API_CLIENT_ID:$TALIS_API_CLIENT_SECRET\ | |
https://users.talis.com/oauth/tokens\ | |
-d 'grant_type=client_credentials' |
#!/bin/bash | |
# Usage: persona-token <client_id> <client_secret> | |
# you are advised to add your client secret to an environment variable so that you are not leaving secrets in your command history. | |
PERSONA_HOST='users.talis.com' | |
CLIENT=$1 | |
SECRET=$2 | |
TOKEN=$(curl -sS -u $CLIENT:$SECRET http://${PERSONA_HOST}/oauth/tokens -d 'grant_type=client_credentials'|sed -e 's/{"access_token":"\(.*\)","expires_in":\(.*\),"token_type":"\(.*\)","scope":"\(.*\)"}/\1/g') | |
echo $TOKEN |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install yaz
yaz-client will then be available and you can use it like this:
run the program and you get a Z> prompt.
javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js';(d.head||d.documentElement).appendChild(s)})(document); |
#!/bin/bash | |
#usage: ./getDOIfiles myRisFile.ris | |
if [[ -z $CROSSREF_PID ]] | |
then | |
echo "CROSSREF_PID is not set in your env" | |
exit | |
fi |
cd ~ | |
sudo apt-get update | |
sudo apt-get install unzip curl python-software-properties openjdk-7-jre -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.2.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
cd /tmp/ | |
sudo apt-get update | |
sudo apt-get install unzip curl python-software-properties -y | |
#sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
sudo add-apt-repository ppa:ferramroberto/java | |
sudo apt-get update | |
sudo apt-get install sun-java6-jre sun-java6-plugin -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz |