Bug 32871: Fix cataloguing/value_builder/unimarc_field_225a.pl
Use event parameter This is part of the refactoring happening in bug 30975 Test plan: 1. Verify that the plugin continues to work as before Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
f7beb484eb
commit
c9ddf42075
1 changed files with 4 additions and 3 deletions
|
@ -62,8 +62,9 @@ sub plugin_javascript {
|
|||
<script>
|
||||
|
||||
|
||||
function Clic$function_name(index) {
|
||||
function Clic$function_name(event) {
|
||||
/* find the 010a value and the 210c. it will be used in the popup to find possibles collections */
|
||||
event.preventDefault();
|
||||
var isbn_found = 0;
|
||||
var editor_found = 0;
|
||||
|
||||
|
@ -81,8 +82,8 @@ sub plugin_javascript {
|
|||
}
|
||||
}
|
||||
|
||||
defaultvalue = document.getElementById(\"$field_number\").value;
|
||||
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_225a.pl&index=\"+index+\"&result=\"+defaultvalue+\"&editor_found=\"+editor_found,\"unimarc225a\",'width=500,height=400,toolbar=false,scrollbars=no');
|
||||
defaultvalue = document.getElementById(event.data.id).value;
|
||||
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_225a.pl&index=\"+event.data.id+\"&result=\"+defaultvalue+\"&editor_found=\"+editor_found,\"unimarc225a\",'width=500,height=400,toolbar=false,scrollbars=no');
|
||||
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue