Skip to content

Hide some metadata fields from IIIF manifest for PDF #18

Answered by jbaiter
andybuki asked this question in Q&A
Discussion options

You must be logged in to vote

So the part in the template that you want to modify is located here: https://github.com/jbaiter/pdiiif/blob/main/pdiiif-api/assets/coverpage.hbs#L245-L266

This is a loop over all metadata entries, which are tuples/arrays with two elements, with the first value (this.[0]) being the label of the manifest entry, and the second (this.[1]) the value/values.
What you want to do is to skip a loop iteration if the key matches your criterion, i.e. it equals creator. You can do this by wrapping the <div class="propertyvalue">...</div> in an {{#if ...}} block that checks your criterion.

As I was writing this comment, I noticed that the required helpers for comparing strings are currently not availab…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andybuki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants