https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32327
--- Comment #1 from Lucas Gass <[email protected]> --- This jQuery ( intranetuserjs ) can be helpful to trim the ISBN field down to just a single valid ISBN: if ( $('#cat_z3950_search').length ) { let splitISBNfields = $('#isbn').val().split(/(\s+)/); let found; splitISBNfields.forEach( function(item) { if ( item.match(/^(?=(?:\D*\d){10}(?:(?:\D*\d){3})?$)[\d-]+$/) && !found ) { $('#isbn').val(item); found = 1; } }); $('#title').val(''); $('#author').val(''); } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
