Skip to content
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
heritage-connector-demos/2_bookmarklet/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Bookmarklet - Show me the connections!

A bookmarklet to show connections from one page its direct connections in the graph. Meant to be a quick way to prototype future collection website widgets.

We thank Roderic Page for his work for the TANC Heritage PIDs project, which inspired the idea and the code for this.

Screenshot of working bookmarklet

Installation:

If you've never used a bookmarklet before, it might be worth running through these instructions for different browsers.

  1. Copy the below text. This is the code which runs the bookmarklet.
javascript:(function(a){%20a=document.createElement('script');a.type='text/javascript';a.src='//cdn.jsdelivr.net/gh/TheScienceMuseum/heritage-connector-demos@da00a27/2_bookmarklet/script.js';document.getElementsByTagName('body')[0].appendChild(a);})();
  1. Add a new bookmark to your browser and call it whatever you want. Paste the text you copied into the 'URL' field.

Usage:

Go to one of the pages in Heritage Connector and click the bookmarklet. A sidebar will pop up showing all the connections Heritage Connector has made from the current page to other SMG and Wikidata pages (as in the screenshot).

The bookmarklet works on any SMG pages that are in Heritage Connector. These include pages from:

It also works on pages on the V&A collection site specified in this readme.


Kalyan Dutia.