Discogs@Drew



After you copy & paste the Discogs URL into enterData.pl's text box and click "fetch discog's metadata" edit.pl parses the $releaseId out of the URL and retrieves a JSON document and parses out the title, names, label, and year and puts them in a form for editing.

When you click on "add to the DoYo record collection" the data is POSTed to add2DoYo.pl which then

  1. builds a JSON instance, POSTs it to /instance-storage/instances, and retrieves the new instanceId,
  2. builds a JSON holdingsRecord, POSTs it to /holdings-storage/holdlings, and retrieves the new holdingsRecordId,
  3. and builds a JSON item and POSTs it to /item-storage/items
Using the instanceId that was collected at the end of step 1 above a link can be provided...

https://drew.locate.ebsco.com/instances/$instanceId

...making it easy to find the newly created instance-holdingsRecord-item in Locate so that you can check your work.

Making extra-library collections discoverable via Locate.