Closed mMoliere closed 9 months ago
@wsalesky In some subforms of manuscripts, the lookup adds the IDs to the wrong field:
In Heritage data and Bibliography, whenever the look up feature adds an entry the URL is added to an attribute of title.
title
What we want instead is that the URL is added to ptr/@target.
https://github.com/majlis-erc/manuForma/blob/a38920379f0dff9e461e4db5907aaf3976f8fd49/forms/templates/full-mss-template.xml#L216
and
https://github.com/majlis-erc/manuForma/blob/a38920379f0dff9e461e4db5907aaf3976f8fd49/forms/templates/full-mss-template.xml#L257
However, in Codicological definition the look up works as expected: the URL is added into the ptr element:
ptr
I have tried to understand the difference that makes it work there.
I tried to replace the instruction:
<lookup elementName="bibl" suppress="true"/>
with
<lookup api="/exist/apps/majlis/api/search/titleBibl?format=xml&=collection=bibl&q=" formURL="forms/mssTEI/lookup/titleBibl.xhtml" elementName="bibl" formName="titleBibl" lookupLabel="Look up reference"/>
But that didn't solve anything.
@mMoliere Has this been resolved? (With the other fix for the bibl lookup?)
@mMoliere Yes!
@wsalesky In some subforms of manuscripts, the lookup adds the IDs to the wrong field:
In Heritage data and Bibliography, whenever the look up feature adds an entry the URL is added to an attribute of
title
.What we want instead is that the URL is added to ptr/@target.
https://github.com/majlis-erc/manuForma/blob/a38920379f0dff9e461e4db5907aaf3976f8fd49/forms/templates/full-mss-template.xml#L216
and
https://github.com/majlis-erc/manuForma/blob/a38920379f0dff9e461e4db5907aaf3976f8fd49/forms/templates/full-mss-template.xml#L257
However, in Codicological definition the look up works as expected: the URL is added into the
ptr
element:I have tried to understand the difference that makes it work there.
I tried to replace the instruction:
<lookup elementName="bibl" suppress="true"/>
with
<lookup api="/exist/apps/majlis/api/search/titleBibl?format=xml&=collection=bibl&q=" formURL="forms/mssTEI/lookup/titleBibl.xhtml" elementName="bibl" formName="titleBibl" lookupLabel="Look up reference"/>
But that didn't solve anything.