Linking into Georeferencer from your catalog or website
Zpět na Centrum nápovědyPublikováno: 16 juli 2020An institution can integrate a link from their existing websites, online catalog, or digital repository for individual maps directly into Georeferencer service with an easy-to-use link APIs - using the institution identifiers ([CUSTOM-ID] supplied during the import of metadata into the system.¨
API for simple linking to the latest available georeference on the Georeferencer service with a custom institution identifier: https://[INSTITUTION].georeferencer.com/id/[CUSTOM-ID]
There is also a link to the officially reviewed version of georeference (confirmed by an appointed reviewer from the institution): https://[INSTITUTION].georeferencer.com/id/[CUSTOM-ID]/reviewed
Then a link to the original website of a particular map is: https://[INSTITUTION].georeferencer.com/id/[CUSTOM-ID]/link
To receive a random not yet georeferenced map from the given institution: https://[INSTITUTION].georeferencer.com/random
and links for implementing intelligent buttons (with different text or graphics depending on the status of the individual map) via JavaScript with JSONP query: https://[INSTITUTION].georeferencer.com/id/[CUSTOM-ID]/state?callback=foo
This call provides back one of 'georeferenced' or 'ungeoreferenced' or 'not_found'
JavaScript can then create different links or buttons with dependency on the status of map - for example, do not show links to maps which are not part of Georeferencer. A sample code with jQuery is available at https://jsfiddle.net/aPBRA/3/
This means you can create "INTELLIGENT BUTTONS / LINKS " telling people you need their help to georeference a map - or telling them to view an already located map - based on the status of the map.
For linking into Georeferencer you may display the button georeferencer-banner-link-small.png from the design page.
Štítky: