Skip to content

Commit e2b5446

Browse files
authored
Merge pull request majlis-erc#817 from majlis-erc/816-fix-bib-lookups
bib fix
2 parents 05da8de + 90fde6d commit e2b5446

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/main/formGenerator/config-persons.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@
160160
<localSchema src="schemas/person-schema.xml"/>
161161
<localSchema src="schemas/person-schema.xml"/>
162162
<xmlTemplate src="templates/persons-template.xml"/>
163+
<lookup
164+
api="/exist/apps/majlis/api/search/citation?format=xml&amp;q="
165+
formURL="forms/msSimple/lookup/bibl.xhtml"
166+
elementName="bibl"
167+
formName="bibl"
168+
lookupLabel="Look up bibliographic record."/>
163169
<elementGroups>
164170
<group groupLabel="Bibliographic reference." groupLabelConditionalElement="./*:title" groupLabelXPath="./*:title" groupNo="1" repeatable="yes">
165171
<element xpath="tei:bibl"/>
@@ -211,6 +217,12 @@
211217
</subform>
212218
<subform xpath="/tei:TEI/descendant::tei:listPerson/tei:org" formName="orgBibl" formLabel="Institution: Bibliographic reference">
213219
<formDesc>Add bibliographic references from the Zotero database.</formDesc>
220+
<lookup
221+
api="/exist/apps/majlis/api/search/citation?format=xml&amp;q="
222+
formURL="forms/msSimple/lookup/bibl.xhtml"
223+
elementName="bibl"
224+
formName="bibl"
225+
lookupLabel="Look up bibliographic record."/>
214226
<localSchema src="schemas/org-schema.xml"/>
215227
<localSchema src="schemas/org-schema.xml"/>
216228
<xmlTemplate src="templates/org-template.xml"/>

src/main/formGenerator/config-works.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@
179179
<localSchema src="schemas/work-schema.xml"/>
180180
<globalSchema src="schemas/work-schema.xml"/>
181181
<xmlTemplate src="templates/work-fulltemplate.xml"/>
182+
<lookup api="/exist/apps/majlis/api/search/biblWorksCitation?format=xml&amp;collection=manuscripts,bibl&amp;q="
183+
elementName="bibl"
184+
formName="bibl"
185+
lookupLabel="Look up bibliographic record or manuscript"/>
182186
<formDesc>Add bibliographic references from the Zotero database.</formDesc>
183187
<elementGroups>
184188
<group groupLabel="Bibliographic reference." groupLabelConditionalElement="./*:title" groupLabelXPath="./*:title" groupNo="1" repeatable="yes">

src/main/formGenerator/schemas/person-schema.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ End license statement: do not remove -->
161161
<valItem ident="shuhra" mode="add">
162162
<gloss>Attested shuhra</gloss>
163163
</valItem>
164-
<valItem ident="alternate" mode="add">
164+
<!--<valItem ident="alternate" mode="add">
165165
<gloss>Alternate name form</gloss>
166-
</valItem>
166+
</valItem>-->
167167
<valItem ident="canon" mode="add">
168168
<gloss>Canonic name form</gloss>
169169
</valItem>

0 commit comments

Comments
 (0)