Skip to content

Instantly share code, notes, and snippets.

@mems
Last active April 30, 2018 22:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mems/4739515 to your computer and use it in GitHub Desktop.
Save mems/4739515 to your computer and use it in GitHub Desktop.
Download full size image from OLCL's CONTENTdm http://www.contentdm.org/

Example here : http://cdm16038.contentdm.oclc.org/cdm/compoundobject/collection/p15017coll23/id/1842 (from list : http://cdm16038.contentdm.oclc.org/cdm/landingpage/collection/p15017coll23 Hagley Digital Archives)

Execute on each image page, the following JS:

prompt("copy this metalink file data:",'<file name="'+$.trim($("#metadata_object_title").text())+'">\n<resources>\n<url type="http">'+server_api_url + "?CISOROOT=" + thisCollection + "&CISOPTR=" + thisItemId + "&action=2&DMSCALE=100&DMWIDTH="+thisImageInfo.imageinfo.width  +"&DMHEIGHT="+thisImageInfo.imageinfo.height+"&DMX=0&DMY=0&DMTEXT=&DMROTATE=0"+'</url>\n</resources>\n</file>');

Into metalink:

<?xml version="1.0" encoding="UTF-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/">
  <files>
    PAST HERE
  </files>
</metalink>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment