This is quite a neat plugin to create links between records that usually works on all 7xx. But in latest 20.11 (and possibly higher up as my research turned up no changes), this is broken. To test: * link marc21_linking_section.pl as value builder to 773 a or another 77x subfield. * Make sure some of the important subfields like a, t, w, etc. are visible in your framework * Create a new record within that framework within the standard editor * Look for your 7xx subfield with the plugin and click the plugin icon * Search for the record to link * Click on choose * Verify a new window opens and the subfields are not filled in the framework
Sometimes the additional window closes, but no information is transferred to the framework fields.
Ok, another revelation: If I like it to $a and there is an author, the author will be filled in. But $t with the title remains empty. So the issue appears to be related to filling in multiple subfields from one plugin.
There is a syntax error in the plugin pop up shown in the console: Uncaught SyntaxError: expected expression, got '%' function finish() { opener.document.f.field_value[[ % index % ]].value = document.f_pop.result.value; self.close(); return false; }
I fixed the JavaScript error, but still no luck.
OK, adding another parentNode here, seems to do the trick: var subfields = whichfield.parentNode.parentNode.parentNode.getElementsByTagName('input');
I fix both on 22399 with my version 'closest' rather than several 'parentNode'
(In reply to Nick Clemens from comment #6) > I fix both on 22399 with my version > > 'closest' rather than several 'parentNode' Sorry, not seeing it there - can you explain a bit more?
(In reply to Katrin Fischer from comment #7) > (In reply to Nick Clemens from comment #6) > > I fix both on 22399 with my version > > > > 'closest' rather than several 'parentNode' > > Sorry, not seeing it there - can you explain a bit more? Oops, 28828 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28828
Nick provided a fix on bug 28828. *** This bug has been marked as a duplicate of bug 22399 ***
*** This bug has been marked as a duplicate of bug 28828 ***