srophe / britishLibrary

Copy of the Srophe application for British Library MSS
GNU General Public License v3.0
0 stars 2 forks source link

Advanced Search options for searching decorations #377

Open wlpotter opened 1 week ago

wlpotter commented 1 week ago

We would like to add an option to search decorations to the Advanced Search page, as well as to provide a facet for narrowing results based on decoration type.

First, the search box:

Label can be "Decorations".

Xpath to search in: /TEI/teiHeader/fileDesc/sourceDesc/msDesc/physDesc/decoDesc/decoNote, could also be in msPart: /TEI/teiHeader/fileDesc/sourceDesc/msDesc//msPart/physDesc/decoDesc/decoNote

Example search "four lines of interlaced" should return record https://bl.syriac.uk/ms/10


Facet for narrowing results:

label can be "Decoration Type"

Xpath with data values: /TEI/teiHeader/fileDesc/sourceDesc/msDesc/physDesc/decoDesc/decoNote/@type, could also be in msPart: /TEI/teiHeader/fileDesc/sourceDesc/msDesc//msPart/physDesc/decoDesc/decoNote/@type

This can function like the existing facets for material and script

wlpotter commented 1 week ago

Oh wait, I forgot one additional feature. Next to the search box, could we also have a drop down that lets users select a decoration type to limit results by? This would use the same data values (decoNote/@type), essentially just another way to select the facets.

I think it would function similarly to the place type selector in the Gazetteer: https://syriaca.org/geo/search.html