API For Archival Collection Tree Browsing
- URI Syntax:
{prefix}/(eadid|component_id)/tree.(json|xml)
- Parameters:
mode=(arrangement|full|walk|sparse|walkarrangement|sparsearrangement)
E.G.: http://example.edu/prefix/AC044_c0122/tree.xml?mode=sparse
# Take params from the DZI syntax and turn them into an IIIF request | |
# | |
# Copyright (C) 2009 CodePlex Foundation | |
# Copyright (C) 2010-2013 OpenSeadragon contributors | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# - Redistributions of source code must retain the above copyright notice, |
from PIL import Image | |
from PIL.ExifTags import GPSTAGS | |
from PIL.ExifTags import TAGS | |
# Keys are listed here: | |
# https://github.com/python-pillow/Pillow/blob/master/PIL/ExifTags.py | |
def _map_key(k): | |
try: | |
return TAGS[k] |
#!/usr/bin/env python | |
# | |
# Unwatch from all Github repositories. Note that it will only work with up to | |
# 100 repos at a time (pagination is not implemented), so you may need to run | |
# more than once. | |
# | |
# Depends: | |
# requests : http://docs.python-requests.org/en/master/ | |
# | |
# Output (to stdout): |
require 'rdf/rdfxml' | |
require 'csv' | |
# Gets the ISO639-2 languages from id.loc.gov and saves it as CSV. | |
SRC_URI="http://id.loc.gov/vocabulary/iso639-2.rdf" | |
MADS_LANGUAGE = RDF::URI.new("http://www.loc.gov/mads/rdf/v1#Language") | |
MADS_CODE = RDF::URI.new("http://www.loc.gov/mads/rdf/v1#code") | |
SAVE_AS = File.expand_path("../../../db/fixtures/iso639-2.csv", __FILE__) |
#!/bin/bash | |
# Script takes a single argument, which is a path in an image file. | |
# NOTE: this file will be replaced with the version that this script deems to be 'correct' | |
file=$1 | |
TMP="/tmp/pulfa/img_harvester/rotation-calc" | |
# Clean up if there are files from the last run | |
# (leaving them around is handy for debugging) | |
if [ -d $TMP ]; then |
#!/bin/bash | |
for md_file in $(find . -name "*.md"); do | |
gsed -r -i -e 's/([A-z])\.\s{2,3}([A-Z])/\1. \2/g' $md_file | |
done |
require 'iiif/presentation' | |
MY_IIIF_IMAGE_SERVER = 'http://libimages1.princeton.edu/loris/' | |
SOME_IIIF_IMAGES = [ | |
{ id: 'pudl0001%2F4609321%2Fs42%2F00000006.jp2', label: "Page 1" }, | |
{ id: 'pudl0001%2F4609321%2Fs42%2F00000007.jp2', label: "Page 2" }, | |
{ id: 'pudl0001%2F4609321%2Fs42%2F00000008.jp2', label: "Page 3" }, | |
{ id: 'pudl0001%2F4609321%2Fs42%2F00000009.jp2', label: "Page 4" }, | |
{ id: 'pudl0001%2F4609321%2Fs42%2F00000010.jp2', label: "Page 5" } | |
] |
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"id": "https://plum.princeton.edu/concern/scanned_resources/pt722jw092/manifest", | |
"type": "sc:Manifest", | |
"label": [ | |
"Reports of the Princeton University expeditions to Patagonia, 1896-1899 : J. B. Hatcher in charge" | |
], | |
"viewingHint": "paged", | |
"viewingDirection": "left-to-right", | |
"rendering": { |
{prefix}/(eadid|component_id)/tree.(json|xml)
mode=(arrangement|full|walk|sparse|walkarrangement|sparsearrangement)
E.G.: http://example.edu/prefix/AC044_c0122/tree.xml?mode=sparse
Deprecated. Moved here: https://docs.google.com/document/d/1GY9_CfvFb5WCFOoSQ54DwzoMKPXmh5UrBgBuN5QXjUg/edit#
dc:replaces