-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out how to include authority data with bibliographic data during ES index #4
Comments
Koha currently only does this for the "see also" fields. It's hardcoded, and hidden behind According to cait:
Which to me sounds like "build a new thing instead of extending the existing one, and it'll probably be safe to be on-by-default". I'd still keep it in mind to make it at least a little bit generic, since I imagine it being useful for other things as well. But, for our case, a simple logic such would probably suffice: if a record contains a I'll build a prototype of this and see how it works out. |
That's what I've assumend
Generally, I agree. In the current case (Geologische Bundesanstalt) we'll have to convert their data into MARC by ourselves and so can make sure that the geographic authorities will in fact be stored in
For a prototype, a hardcoded mapping is enough. But I think it would make sense to already plan the prototype in a way that we can later replace the hardcoded mapping with mapping(s) coming from a config file. Though defining these mappings for eg a polygon will be interesting :-) Anyway, we could then also use this to eg append some data to a bibliographic record, so maybe the mappings will also need to define a "method" so something like: {
"651": [
{ "auth": "032s", "elastic": "lat", "method": "set_geopoint" },
{ "auth": "032t", "elastic": "lon", "method": "set_geopoint" },
{ "auth": "032defg", "elastic": "coordinates", "method": "set_georectangle" },
],
"100": [
{ "auth": "123x", "elastic": "author.name", "method": "append" },
]
} But again, probably this is too early now.. |
Quick and dirty, but this seems to work:
|
Submitted as a bug+patch to Koha bugzilla now for further discussion: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37821 |
In Koha Chat we were told that it should be possible to merge authority data with bibliographic data into the elasticsearch document during indexing.
034s
and034t
from authority into biblioThe text was updated successfully, but these errors were encountered: