GetRecord in OAI when two bases are exposed
- Article Type: General
- Product: Aleph
- Product Version: 20, 21, 22, 23
Description
We have two bases (ABC01 and ABC02) that should be exposed via publishing-based OAI data provider.
In oaipubconf.xml we have:
...
<set>
<setSpec>ABC01</setSpec>
<setName>ABC01</setName>
<internalSet>ABC01_OAI:marc21</internalSet>
</set>
<set>
<setSpec>ABC02</setSpec>
<setName>ABC02</setName>
<internalSet>ABC02_OAI:marc21</internalSet>
</set>
...
As it is written in documentation the first set should be the default set containing all records. But currently it only contains ABC01-records. So GetRecords works fine for ABC01-records but not for ABC02-records. How to solve this?
Resolution
You must have an additional set that has ABC01- plus ABC02-records.
The following setup solved the problem:
Setup in tab_publish of ABC01:
ABC01_ABC02 N FULL OAI_MARC21_XML
ABC01_OAI N FULL OAI_MARC21_XML
Setup of tab_publish of ABC02:
ABC01_ABC02 N FULL OAI_MARC21_XML
ABC02_OAI N FULL OAI_MARC21_XML
oaipubconf.xml:
...
<set>
<setSpec>COMPLETE</setSpec>
<setName>ABC01 and ABC02</setName>
<internalSet>ABC01_ABC02:marc21</internalSet>
</set>
<set>
<setSpec>ABC01</setSpec>
<setName>ABC01</setName>
<internalSet>ABC01_OAI:marc21</internalSet>
</set>
<set>
<setSpec>ABC02</setSpec>
<setName>ABC02</setName>
<internalSet>ABC02_OAI:marc21</internalSet>
</set>
...
Note: It is important that the combined set (in our case ABC01_ABC02) is the first set in oaipubconf.xml.
Please restart p_publish_04 for set ABC01_ABC02 twice (once in ABC01, once in ABC02).
- Article last edited: 29-Sep-2016