Limb Gallery

Many french archives use Arkhênum’s Limb Gallery software to publish their digital collections. IIIF Manifests are available for items in Limb Gallery but the links are not always published in the interface. This bookmarklet opens the IIIF Manifest from a viewer, but also from a permalink or item webpage.

Installation

Drag the button below to the favorites bar of your browser in order to install this bookmarklet. Alternatively, you can copy the code below and paste it in the address or URL field of a new bookmark.

Get IIIF Manifest

Testing

Some links to test the bookmarklet:

Item Institution
Plan de Dieppe, item permalink https://patrimoine.dieppe.fr/idurl/1/14995
Plan de Dieppe, item page (collection) https://patrimoine.dieppe.fr/collection/item/14995-plan-de-dieppe-avec-les-fortifications-et-les-travaux-projetes
Plan de Dieppe, viewer https://patrimoine.dieppe.fr/viewer/14995/?offset=#page=1&viewer=picture&o=bookmarks&n=0&q=
Cadastre vue générale de Bazas ville et campagne, item page (records) https://archives-numeriques.ville-bazas.fr/records/item/9038-cadastre-vue-generale-de-bazas-ville-et-campagne

Due to different configurations this bookmarket will not work for all CONTENTdm collections. Feel free to open an issue to add support for a specific collection.

Source code

javascript: (function () {
    // Get all the relevant parts from the url
    // See https://regex101.com/r/t7nUZQ/1
    const regexPattern = /http.*:\/\/(?<base>.*?)\/(idurl\/\w*\/|viewer\/|collection\/item\/|records\/item\/)(?<id>\w*)/;
    const matches = window.location.href.match(regexPattern).groups;
    // Construct the manifest url
    const manifestUrl =
        'https://' +
        matches.base +
        '/iiif/' +
        matches.id +
        '/' +
        'manifest';
    // Navigate to the manifest
    location = manifestUrl;
})()

Minimized version:

javascript:(function(){const regexPattern=/http.*:\/\/(?<base>.*?)\/(idurl\/\w*\/|viewer\/|collection\/item\/|records\/item\/)(?<id>\w*)/;const matches=window.location.href.match(regexPattern).groups;const manifestUrl='https://'+matches.base+'/iiif/'+matches.id+'/'+'manifest';location=manifestUrl})();