esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

Remove one of the hardcoded "field" machine names from the IIIF Content Search Controller and replace with the configs #439

Open DiegoPino opened 2 months ago

DiegoPino commented 2 months ago

What?

Here. https://github.com/esmero/format_strawberryfield/blob/ff592d8cec210365423596620d1f2174c21de6f6/src/Controller/IiifContentSearchController.php#L299

In specific

$hits_per_file_and_sequence['sbf_metadata']['uri'] ...

should be

$hits_per_file_and_sequence['sbf_metadata'][\\ONE OF THE CONFIGURED FIELD MACHINE NAMES WE USE TO MATCH URLS\\]

If not right now you have to use the default 1.3.0 release Index field config which requires an "uri" field to be indexed for SBF Documents.

@alliomeria for your iiif-eyes