denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

Custom access file UI #126

Closed gjost closed 5 years ago

gjost commented 5 years ago

See Custom access file import/update See Custom access file publication

Simply replacing the usual File.access_rel, created by appending -a.jpg to File.path_rel, with a custom filename doesn't change the Editor UI or the data emitted by ddrindex publish.

Custom access files need to be reflected in these template lines at least:

collections/detail.html       47:{% thumbnail collection.signature_abs
entities/detail.html          56:{% thumbnail entity.signature_abs
files/detail.html             42:{% thumbnail file.access_abs

collections/entities.html     68:{% thumbnail entity.signature_abs
entities/children.html        77:{% thumbnail entity.signature_abs
entities/files.html          100:{% thumbnail file.access_abs
files/edit.html               32:{% thumbnail file.access_abs

collections/list-object.html   4:{% thumbnail object.signature_url
entities/list-object.html      4:{% thumbnail object.signature_url
files/list-object.html         4:{% thumbnail object.access_url

search/search.html           155:{% thumbnail object.links.img

Custom access files must also be emitted by ddrindex publish

gjost commented 5 years ago

This belongs in ddr-local: https://github.com/densho/ddr-local/issues/247