|
42 | 42 |
|
43 | 43 | <!-- Add lookup options for elements with controlled vocabularly, must have an api already working. Example the Srophe apps person or places api --> |
44 | 44 | <lookups> |
45 | | - <lookup api="/exist/apps/majlis/api/search/mutual?format=xml&q=" |
| 45 | + <lookup api="/exist/apps/majlis/api/search/mutual?format=xml&q=" |
46 | 46 | formURL="forms/msSimple/lookup/mutual.xhtml" |
47 | 47 | elementName="mutual" |
48 | 48 | formName="mutual" |
49 | 49 | lookupLabel="Look up mutual relations."/> |
50 | | - <lookup api="/exist/apps/majlis/api/search/active?format=xml&q=" |
| 50 | + <lookup api="/exist/apps/majlis/api/search/active?format=xml&q=" |
51 | 51 | formURL="forms/msSimple/lookup/mutual.xhtml" |
52 | 52 | elementName="active" |
53 | 53 | formName="active" |
54 | 54 | lookupLabel="Look up subject of relation."/> |
55 | | - <lookup api="/exist/apps/majlis/api/search/passive?format=xml&q=" |
| 55 | + <lookup api="/exist/apps/majlis/api/search/passive?format=xml&q=" |
56 | 56 | formURL="forms/msSimple/lookup/mutual.xhtml" |
57 | 57 | elementName="passive" |
58 | 58 | formName="passive" |
|
88 | 88 | <lookup api="/exist/apps/majlis/api/search/title?format=xml&q=" formURL="forms/msSimple/lookup/title.xhtml" xpath="not(parent::*:bibl)" elementName="title" formName="title" lookupLabel="Look up title"/> --> |
89 | 89 | <popup formName="worksTEI" elementName="title" label="New work"/> |
90 | 90 | <lookup |
91 | | - api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
| 91 | + api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
92 | 92 | formURL="forms/msSimple/lookup/bibl.xhtml" |
93 | 93 | elementName="bibl" |
94 | 94 | formName="bibl" |
|
99 | 99 | /name of request - usually specifies the type of request or element to be searched. |
100 | 100 | @format - xml/json/html |
101 | 101 | @collection - collections to be searched, should match collections in your data directory |
| 102 | + @prefixElement - a prefix to use for the returned element e.g. 'tei', mutually exclusive with @wrapElement |
102 | 103 | @wrapElement - element that will contain the search results, if different from the name of the request |
103 | 104 | example the following searches all persNames, but returns results wrapped in author element for insertion into TEI record: |
104 | 105 | /exist/apps/majlis/api/search/persName?format=xml&wrapElement=tei:author&q= |
|
303 | 304 | formName="author" |
304 | 305 | lookupLabel="Look up author record."/> |
305 | 306 | <lookup |
306 | | - api="/exist/apps/majlis/api/search/title?format=xml&collection=works&q=" |
| 307 | + api="/exist/apps/majlis/api/search/title?format=xml&collection=works&prefixElement=tei&q=" |
307 | 308 | formURL="forms/msSimple/lookup/title.xhtml" |
308 | 309 | elementName="title" |
309 | 310 | formName="title" |
|
492 | 493 | <globalSchema src="schemas/mss-compiled.odd"/> |
493 | 494 | <xmlTemplate src="templates/full-mss-template.xml"/> |
494 | 495 | <lookup |
495 | | - api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&q=" |
| 496 | + api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&prefixElement=tei&q=" |
496 | 497 | formURL="forms/msSimple/lookup/persName.xhtml" |
497 | 498 | elementName="persName" |
498 | 499 | formName="persName" |
499 | 500 | lookupLabel="Look up person record."/> |
500 | 501 | <lookup |
501 | | - api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&q=" |
| 502 | + api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&prefixElement=tei&q=" |
502 | 503 | formURL="forms/msSimple/lookup/placeName.xhtml" |
503 | 504 | elementName="placeName" |
504 | 505 | formName="placeName" |
|
518 | 519 | <globalSchema src="schemas/mss-compiled.odd"/> |
519 | 520 | <xmlTemplate src="templates/full-mss-template.xml"/> |
520 | 521 | <lookup |
521 | | - api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
| 522 | + api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
522 | 523 | formURL="forms/msSimple/lookup/bibl.xhtml" |
523 | 524 | elementName="bibl" |
524 | 525 | formName="bibl" |
|
530 | 531 | formName="idno" |
531 | 532 | lookupLabel="Look up manuscript record."/> |
532 | 533 | <lookup |
533 | | - api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&q=" |
| 534 | + api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&prefixElement=tei&q=" |
534 | 535 | formURL="forms/msSimple/lookup/persName.xhtml" |
535 | 536 | elementName="persName" |
536 | 537 | formName="persName" |
537 | 538 | lookupLabel="Look up person record."/> |
538 | 539 | <lookup |
539 | | - api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&q=" |
| 540 | + api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&prefixElement=tei&q=" |
540 | 541 | formURL="forms/msSimple/lookup/placeName.xhtml" |
541 | 542 | elementName="placeName" |
542 | 543 | formName="placeName" |
543 | 544 | lookupLabel="Look up place record."/> |
544 | | - <lookup api="/exist/apps/majlis/api/search/mutual?format=xml&q=" |
| 545 | + <lookup api="/exist/apps/majlis/api/search/mutual?format=xml&q=" |
545 | 546 | formURL="forms/msSimple/lookup/mutual.xhtml" |
546 | 547 | elementName="mutual" |
547 | 548 | formName="mutual" |
548 | 549 | lookupLabel="Look up mutual relations."/> |
549 | | - <lookup api="/exist/apps/majlis/api/search/active?format=xml&q=" |
| 550 | + <lookup api="/exist/apps/majlis/api/search/active?format=xml&q=" |
550 | 551 | formURL="forms/msSimple/lookup/mutual.xhtml" |
551 | 552 | elementName="active" |
552 | 553 | formName="active" |
553 | 554 | lookupLabel="Look up subject of relation."/> |
554 | | - <lookup api="/exist/apps/majlis/api/search/passive?format=xml&q=" |
| 555 | + <lookup api="/exist/apps/majlis/api/search/passive?format=xml&q=" |
555 | 556 | formURL="forms/msSimple/lookup/mutual.xhtml" |
556 | 557 | elementName="passive" |
557 | 558 | formName="passive" |
|
648 | 649 | <globalSchema src="schemas/mss-compiled.odd"/> |
649 | 650 | <xmlTemplate src="templates/full-mss-template.xml"/> |
650 | 651 | <lookup |
651 | | - api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
| 652 | + api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
652 | 653 | formURL="forms/msSimple/lookup/bibl.xhtml" |
653 | 654 | elementName="bibl" |
654 | 655 | formName="bibl" |
655 | 656 | lookupLabel="Look up bibliographic record."/> |
656 | 657 | <lookup |
657 | | - api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&q=" |
| 658 | + api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&prefixElement=tei&q=" |
658 | 659 | formURL="forms/msSimple/lookup/persName.xhtml" |
659 | 660 | elementName="persName" |
660 | 661 | formName="persName" |
|
673 | 674 | <localSchema src="schemas/mss-manuscript-history.xml"/> |
674 | 675 | <globalSchema src="schemas/mss-compiled.odd"/> |
675 | 676 | <lookup |
676 | | - api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&q=" |
| 677 | + api="/exist/apps/majlis/api/search/persName?format=xml&collection=persons&prefixElement=tei&q=" |
677 | 678 | formURL="forms/msSimple/lookup/persName.xhtml" |
678 | 679 | elementName="persName" |
679 | 680 | formName="persName" |
680 | 681 | lookupLabel="Look up person record."/> |
681 | 682 | <lookup |
682 | | - api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&q=" |
| 683 | + api="/exist/apps/majlis/api/search/placeName?format=xml&collection=places&prefixElement=tei&q=" |
683 | 684 | formURL="forms/msSimple/lookup/placeName.xhtml" |
684 | 685 | elementName="placeName" |
685 | 686 | formName="placeName" |
|
704 | 705 | <xmlTemplate src="templates/full-mss-template.xml"/> |
705 | 706 | <lookup elementName="title" suppress="true"/> |
706 | 707 | <lookup |
707 | | - api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
| 708 | + api="/exist/apps/majlis/api/search/citation?format=xml&q=" |
708 | 709 | formURL="forms/msSimple/lookup/bibl.xhtml" |
709 | 710 | elementName="bibl" |
710 | 711 | formName="bibl" |
|
0 commit comments