<html><head></head><body>To all your questions, yes sure!<br>
<br>
About UNIMARC or MARC21, this is quite easy to implement, it just needs  some parameters to the report-step1 sub and template.<br>
<br>
I tested it on our pre-production server, the query takes 1s at the maximum to scan the whole DB (i did only sub selects and inner join to get a reduced dataset).<br>
<br>
"Release early, release often", i thought it would be much easier to implement first in a plugin plus it is nice to use this new feature.<br>
And really easy to install without messing with custom patches and git branches.<br>
<br>
Many ways to optimize:<br>
SQL:<br>
-create a table to store those lists, like an index?<br>
-filter or aggregate results on several fields (type of documents, subject, country, author, whatever)?<br>
<br>
Template:<br>
-How to integrate into OPAC?<br>
<br>
Also every text is hardcoded for now, I don't know yet if translation is available through the plugin system, this is to be investigated.<br>
<br>
Otherwise yes, could be merged to core code but I would need help on this because I don't know much about the core Koha architecture.<br>
<br>
Have a nice weekend,<br>
Cheers<br>
Arthur<br><br><div class="gmail_quote">Le 1 juillet 2016 17:44:54 UTC+02:00, Jonathan Druart <jonathan.druart@bugs.koha-community.org> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi Arthur,<br /><br />Reading the code it will only work for UNIMARC, you should mention it<br />in the README and tell people which changes are needed to make it work<br />for MARC21 (and add a couple of lines to explain what the plugin<br />does).<br /><br />Did you test it on a real DB, with lot of entries in old_issues? It<br />might be quite slow.<br /><br />Why did you choose to create a plugin instead of something integrated<br />to Koha (and submit the patch on bugzilla)?<br /><br />Cheers,<br />Jonathan<br /><br />2016-07-01 16:01 GMT+01:00 SUZUKI Arthur <arthur.suzuki@univ-lyon3.fr>:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hi Devs,<br /> I've been implementing a first prototype of what may looks like "Amazon buy<br /> suggestions" like "other users who have bought this also bought...."<br /> It provides a list of similar references based on what other borrow
 ers
has<br /> previously issued.<br /><br /> If anyone would like to test this it is available here :<br /> <a href="https://github.com/Liliputech/KohaReadSuggestion">https://github.com/Liliputech/KohaReadSuggestion</a><br /><br /> Hope you'll like this work in progress.<br /> Special thanks to Kile Hall whose previous and current work on Koha Plugin<br /> System has really helped me a lot while designing this.<br /> More information on installing plugins here :<br /> <a href="http://bywatersolutions.com/2013/01/23/koha-plugin-system-coming-soon">http://bywatersolutions.com/2013/01/23/koha-plugin-system-coming-soon</a>/<br /><br /> Thanks to the whole Koha community for the great software and clean code and<br /> to Kohala for the organization of the Koha Symposium in France, Lyon.<br /> Best regards,<br /><br /> Arthur Suzuki<br /> Librarians IT Team,<br /> University Jean Moulin Lyon 3<br /><hr /><br /> Koha-devel mailing list<br /> Koha-devel@lists.koha-community.org<br /> <a
href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br /> website : <a href="http://www.koha-community.org">http://www.koha-community.org</a>/<br /> git : <a href="http://git.koha-community.org">http://git.koha-community.org</a>/<br /> bugs : <a href="http://bugs.koha-community.org">http://bugs.koha-community.org</a>/<br /></blockquote><hr /><br />Koha-devel mailing list<br />Koha-devel@lists.koha-community.org<br /><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br />website : <a href="http://www.koha-community.org">http://www.koha-community.org</a>/<br />git : <a href="http://git.koha-community.org">http://git.koha-community.org</a>/<br />bugs : <a href="http://bugs.koha-community.org">http://bugs.koha-community.org</a>/<br /></pre></blockquote></div></body></html>