I looked a bit more into the kinds of results that are returned from both the Digitised newspapers and the Photos, objects and pictures section of Trove and decided to construct the API calls from the digitised newspapers simply because there was not that many results for crafting. I've based the code for what we demonstrated during our progress demonstration on the Trove Basic Search example from the DECO1800 resources site.
A major problem I've encountered is that Trove's API doesn't allow me to directly access the jpeg urls of scans of digitised newspapers, although I am able to access a pdf file containing these images.
Although digitised newspapers have an option to be rendered as jpeg files, I am having trouble targeting the URLs
You would think that the URLs Trove provides for the jpeg option would simply return the image src, but the URL returns a combination of image and text.
URLs for jpeg images return a combination of text and image
This means that when I try to put this URL into an src tag I get the following instead of an image:
I've talked to Michael about this during the practical sessions and he suggested trying out plugins like FancyBox. I've also looked at trying some sort of image scraping to access the images directly. At this point I'm just going to see what works. Although I could change our content to what is returned from Photos, pictures, and objects, I think that the scanned images are a better fit for the retro/vintage feel of our site.


























