BZ5719: unimarc plugin fixes
* 010 now don't care of - or no - in the isbn * 225a window now higher to have all buttons displayed Signed-off-by: Sophie Meynieux <sophie.meynieux@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
0ff16446a8
commit
83e42b0285
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ sub plugin {
|
|||
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $len = 0;
|
||||
my $sth = $dbh->prepare('SELECT publishercode FROM biblioitems WHERE isbn LIKE ? OR isbn LIKE ? LIMIT 1');
|
||||
my $sth = $dbh->prepare('SELECT publishercode FROM biblioitems WHERE REPLACE(isbn, "-", "") LIKE ? OR isbn LIKE ? LIMIT 1');
|
||||
|
||||
$isbn =~ s/-//g;
|
||||
if (length ($isbn) == 13){
|
||||
|
|
|
@ -94,7 +94,7 @@ 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=200,toolbar=false,scrollbars=no');
|
||||
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');
|
||||
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue