dag-hammarskjold-library / dlx-rest

UNDHL Files and Metadata Manager
1 stars 1 forks source link

Truncation in field search #1496

Closed viola-v closed 3 months ago

viola-v commented 4 months ago

Our manual currently states that

Truncation (*) is case-sensitive:

991:PALESTIN*

But I get no results when I try that. From #578 it looks like this used to work and I seem to remember that. Did something break?

jbukhari commented 3 months ago

Upon review, the issue is that right truncation is not working for any subfield besides $a. For example, 700:palestin* works as expected, because the target value ins is $a. Whereas for 991:palestin*, the target value is in $d.

This only effects cases where the beginning of the string is supposed to match. For example 991:*palestin* works as expected.

jbukhari commented 3 months ago

Fix pending dlx release v1.4.10 https://github.com/dag-hammarskjold-library/dlx/milestone/10?closed=1