lxcprojects / keywords

Kinship and Longing project site
http://docs.k4bl.org/
Other
0 stars 3 forks source link

Images #7

Closed egpalazzolo closed 1 year ago

egpalazzolo commented 1 year ago

Finally went in and added properly sized images (1140x) to get the simple derivatives. Now, trying to figure out how to get those to render instead of the json manifests (I've deleted the IIIF files from all of the folders). I think that the code for selecting which images to display on the keywords.html pages in the _layouts/generic_collection_item.html but after playing around a little with commenting out parts of the liquid code and even deleting the openseadragon folder under _site/js/openseadragon, still not figuring out how to get the .html files for the individual document pages to get rid of the code looking for a json manifest to supply the images. Would love some help figuring out how to get the new, simple formats to work!

jabrah commented 1 year ago

Looks like there's a few things going on here. One important aspect is that running the derivatives task doesn't update the individual pages for the documents (e.g. _keywords/d0005.md) which were initially generated by the wax:pages task.

You could either manually update these pages to match the thumbnail and full columns from the original CSV, or you could delete these pages and rerun the wax:pages task. Although, when I tested this, the wax:pages task resulted in slightly different data that may actually break facets -- I saw different delimiters (; instead of |)

I'm not 100% on switching over to the simple image viewer, as opposed to the OpenSeaDragon viewer, I'll leave another comment when I know more about that

jabrah commented 1 year ago

Looks like the simplest thing we could do at the moment is to add something like image_viewer: simple to each page. The gallery seems to be assuming that the OSD is being used for everything (the generic_collection_item layout sets image_viewer: openseadragon)

Here's an example of an updated page pointing to the simple image derivatives and not using OSD image viewer:

---
pid: d0010
label: Picard, the Cook
filing_date: '1743-06-18'
full_index: 1743-06-18-01
doc_origin: New Orleans
language: French
archive: Louisiana Historical Center
governing_body: French Superior Council
names_black: d'Orgon|Chaume|Jean Baptiste Picard Masson
names_white:
names_native: Judicial Acts, Criminal Cases / Acts, "Report (of Event, Action, Crime,
  etc.)"
doc_type: Report of a murderous assault on Picard, a cook, by Chaume, a white creole
  soldier. Includes citation of an "Negre nommé Brutae"
abstract: https://docs.google.com/document/d/1ISlpYEjXEPWP8Z1uuJaS0sUQwQrsy0eQHyYfa4VhAGE/edit?usp=sharing
google_doc_prototype: https://docs.google.com/document/d/1ISlpYEjXEPWP8Z1uuJaS0sUQwQrsy0eQHyYfa4VhAGE/edit?usp=sharing
keywords: work
lhc_scans: https://www.lacolonialdocs.org/document/5740
layout: keywords_item
collection: keywords
comments:
order: '10'
thumbnail: "/img/derivatives/simple/d0010_d0010-02/thumbnail.jpg"
full: "/img/derivatives/simple/d0010_d0010-02/fullwidth.jpg"
image_viewer: simple
---

We can investigate a longer-term solution down the road, since this manual intervention won't scale well if there are many documents

jabrah commented 1 year ago

Simple image viewer can't show multi-page documents, so we'll stick with the IIIF.