Closed bitsgalore closed 7 years ago
Some more info on this: even though it is easy to query specifically for maintitle records by adding a @property definition in sru.py , this doesn't solve the problem because the type attribute isn't always used. Example:
<dc:title xml:lang="nl">Thea Beckman</dc:title>
So it seems maintitle / intermediatetitle are used sometimes, but not always and not in a consistent or predictable way.
Fixed, now display main title if it exists, otherwise use title w/o attribute: https://github.com/KBNLresearch/iromlab/commit/92fdbf3f44970ca597e7a99df1ece12a80530b0b
Examples:
http://jsru.kb.nl/sru/sru?x-collection=GGC&operation=searchRetrieve&startRecord=1&maximumRecords=1&recordSchema=dcx&query=26732653X
Here Iromlab returns:
But instead it should return this:
Other example:
http://jsru.kb.nl/sru/sru?x-collection=GGC&operation=searchRetrieve&startRecord=1&maximumRecords=1&recordSchema=dcx&query=185299814
Iromlab returns:
But should return this instead:
So search for Title may need additional check to ensure xsi:type=dcx:maintitle.
This will go wrong in omSipCreator as well.