pulibrary / shadow_figures_cb

A CollectionBuilder version of the EAL Shadow Figures site
MIT License
0 stars 0 forks source link

reproduce current feature: image page contains links to the objects it depicts #1

Closed cwulfman closed 9 months ago

cwulfman commented 1 year ago

In the current site, selecting an object (say, equestrian torso object 2135) shows you two images. Clicking on one of them (DSCN4078.JPG) takes you to a page showing the image, plus links to the two objects it depicts: 2135 and 2136.

cwulfman commented 1 year ago

Each image page should include links to objects. The place to tinker is in the partials (in _layouts/item). These seem to be written in Liquid. In the compound_object.html partial, for example, there is a line that does filtering:

{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %}

There is some DSL at work here; need to find it. Then, presumably, this can be altered to filter by membership instead of equality.

cwulfman commented 1 year ago

Plan: use this AirTable extension to create table of images. Then create another table of Objects. Use AirTable to manage the relationships. Export from AirTable.

cwulfman commented 10 months ago

Airtable has been created. Maybe this could be the site?

cwulfman commented 9 months ago

We implemented the latest version using AirTable; Tom V. was satisfied.