[Bug 12331] New: can't save results to zotero
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12331 Bug ID: 12331 Summary: can't save results to zotero Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Web services Assignee: koha-bugs@lists.koha-community.org Reporter: nengard@gmail.com QA Contact: testopia@bugs.koha-community.org Created attachment 28562 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28562&action=edit zotero error Zotero works A-OK when saving an individual title but on the results page when you click the folder in the address bar you get an error. The error gives no useful info though so I'm not sure what's causing it. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12331 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bgkriegel@gmail.com, | |oleonard@myacpl.org Resolution|--- |WONTFIX --- Comment #1 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Nicole, this is not a problem of Koha, it's on Zotero's Koha translator[1] This 'translator' works extracting appropriate urls from results page They are using this code to get the result list: var titles = doc.evaluate('//span[@class="results_summary"]/span[@class="label"]/a[contains(@href, "opac-detail.pl")]|//span[@class="results_summary"]/preceding-sibling::a[contains(@href, "opac-detail.pl")]', doc, null, XPathResult.ANY_TYPE, null); Perhaps someone that understand better (Owen?) can said if that sentence gives useful results, or not. I any case, problem is on Zotero side, perhaps we could help (not me) [1] https://github.com/zotero/translators/blob/master/Library%20Catalog%20%28Koh... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12331 --- Comment #2 from Nicole C. Engard <nengard@gmail.com> --- I don't really understand all that - can you explain it such that I could report the bug to them - or could you report the bug to them? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12331 --- Comment #3 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to Nicole C. Engard from comment #2)
I don't really understand all that - can you explain it such that I could report the bug to them - or could you report the bug to them?
I'm not a user of Zotero :(, will try to explain. Zotero uses "translators"[1] to detect and add records/objects. They are JavaScript functions, and there are plenty of them [2] In the case of Koha Zotero translator [3], they have a function to detect a single record (opac-detail in url) or multiple (opac-results in url). For multiple results, they parse the html looking for something with structure <span class="results_summary"> <span class="label"> <a href="...opac-detail.pl..."> but we don't have that. perhaps something like <td class="bibliocol"> <a class="title" href="...opac-detail.pl..."> My hope was that Owen could take a look and perhaps suggest a correct XPath expression so Mr. Sebastian Karcher (creator) could fix the translator. In summary, I think the problem they have is an incorrect XPath expression when parsing multiple results. [1] https://www.zotero.org/support/translators [2] https://github.com/zotero/translators [3] https://github.com/zotero/translators/blob/master/Library%20Catalog%20(Koha)... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12331 Francisco Peixoto <fabreupeixoto@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |--- Status|CLOSED |REOPENED CC| |fabreupeixoto@gmail.com --- Comment #4 from Francisco Peixoto <fabreupeixoto@gmail.com> --- Good evening Dear Nicole and Bernardo Probably you still didn't reach any solution for this. I'am also having problems with Zotero Koha connector and I reported in the Zotero forum https://forums.zotero.org/discussion/52521/koha-translator/#Item_5 The problem I reported is a bit different but might be connected with this one. The problem I reported I face it in different catalogs even on the Bywater demo OPAC. Hope this could be a way to solve the problem. Thanks Kind regards Francisco -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org