<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-11-29 21:52 GMT-03:00 David Cook <span dir="ltr"><<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Hi all:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For those not following along at <a href="http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10662" target="_blank">http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10662</a>, we’ve recently started talking about the possibility of adding a “metadata” table to Koha.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The basic schema I have in mind would be something like: <a href="http://metadata.id" target="_blank">metadata.id</a>, metadata.record_id, metadata.scheme, metadata.qualifier, metadata.value.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The row would look like: 1, 1, marc21, 001, 123456789<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It might also be necessary to store “metadata.record_type” so as to know where metadata.record_id points. This obviously has a lot of disadvantages… redundant data between “metadata” rows, no database cascades via foreign keys, etc. However, it might be necessary in the short-term as a temporary measure.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Of course, adding “yet another place” to store metadata might not seem like a great idea. We already store metadata in biblioitems.marcxml (and biblioitems.marc), Zebra, and other biblio/biblioitems/items relational database fields. Do we really need a new place to worry about data?<br></p></div></div></blockquote><div><br></div><div>I think we should have a metadata_record table storing the serialized metadata, and more needed information (basically the fields Koha::MetadataRecord has...) and let the fulltext engine do the job for accessing those values.</div><div><br></div><div>The codebase is already too bloated trying to band-aid our "minimal" usage of the search engines' features. Of course, while trying to fix that we might find our search engine has problems and/or broken functionalities (zebra facets are so slow that are not cool). But we should definitely get rid of tons of code in favour of using the search engine more, and probably have QueryParser be the standard, having a driver for ES...</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Tomás Cohen Arazi</div><div style="font-size:12.8px">Theke Solutions (<a href="http://theke.io/" target="_blank">http://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F</div></div></div>
</div></div>