@@ -, +, @@ - Go to a biblio details page - Click on "Edit as new (duplicate)" - If ISBN is defined, remove it - Click on save - Change biblio item type - Click on save - Set "item-level_itypes" syspref to "specific record" - Come back to biblio details page - Click on "Edit as new (duplicate)" - If ISBN is defined, remove it - Click on save - Change biblio item type --- C4/Search.pm | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -112,8 +112,13 @@ sub FindDuplicate { # quotes around the value $result->{title} =~ s/(and|or|not)//g; $query = "ti,ext=$result->{title}"; - $query .= " and itemtype=$result->{itemtype}" - if ( $result->{itemtype} ); + + if ( $result->{itemtype} + && !C4::Context->preference('item-level_itypes') ) + { + $query .= " and itemtype=$result->{itemtype}"; + } + if ( $result->{author} ) { $result->{author} =~ s /\\//g; $result->{author} =~ s /\"//g; --