majlis-erc / manuForma

The manuForma application is designed to make TEI data creation and distributed editing faster and easier.
6 stars 1 forks source link

Lookup for more than one record type #587

Closed mMoliere closed 4 months ago

mMoliere commented 4 months ago

@wsalesky For the Bibliography in Persons we want to be able to reference records from the manuscripts, bibl, and the works collections. I'm unsure how to make this request to the API or if this is even possible. (I have played with different formulations for the API request but none worked out.)

wsalesky commented 4 months ago

Done. Multiple collections can be specified in the collection parameter, separated by a comma. See config documentation for how to. https://github.com/majlis-erc/manuForma/blob/main/forms/formGenerator/config-documentation.xml#L76

Example lookup, searching multiple collections:

<lookup api="/exist/apps/majlis/api/search/biblWorksCitation?format=xml&amp;collection=manuscripts,bibl&amp;q=" 
            elementName="bibl" 
            formName="bibl" 
            lookupLabel="Look up bibliographic record"/>