Skip to content

Instantly share code, notes, and snippets.

@arbakker
Last active November 24, 2022 15:38
Show Gist options
  • Save arbakker/88a1564d9e6a5cbd62a45f4fa818caf7 to your computer and use it in GitHub Desktop.
Save arbakker/88a1564d9e6a5cbd62a45f4fa818caf7 to your computer and use it in GitHub Desktop.
Bookmarklet NGR CSW GetRecord #ngr #geonetwork #csw #js #bookmarklet

Bookmarklet NGR CSW GetRecord

To use the bookmarklets save the JavaScript snippets as bookmarks (copy paste the JavaScript snippet in the URL field) in your browser.

image

Then use the bookmarklets by opening the bookmark:

image

Bookmarklet 1 - NGR - CSW GetRecordById

javascript: (() => {
  let uuid = prompt(
    "Go to NGR HTML metadata record page.\n\nEnter metadata identifier:"
  );
  if (uuid) {
    location.assign(
      `https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/${uuid}`
    );
  }
})();

Bookmarklet 2 - NGR - HTML Record

javascript: (() => {
  let uuid = prompt(
    "Do NGR CSW GetRecordById request.\n\nEnter metadata identifier:"
  );
  if (uuid) {
    location.assign(
      `https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&ID=${uuid}`
    );
  }
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment