Bug 9377 - itemtype in duplicate biblio search
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Thu, 7 Mar 2013 16:37:16 +0000 (17:37 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 16 Mar 2013 20:23:29 +0000 (09:23 +1300)
commit297d3913450f4de897f740168f508a0d957fc359
treeda7647d780f3d1dc962850b20d4dc03163c54181
parentff4cc88b3f05f003a8e65018ef49155d5da8f18e
Bug 9377 - itemtype in duplicate biblio search

In C4::Search::FindDuplicate, when biblio has no ISBN, the duplicate search adds :
$query .= " and itemtype=$result->{itemtype}".
This is wrong when itemtype is defined in items.

This patch simply removes the itemtype from dublicate search.

Test plan :
- Go to a biblio details page
- Click on "Edit as new (duplicate)"
- If ISBN is defined, remove it
- Click on save
=> a duplicate is detected
- Change biblio item type and save
=> a duplicate is detected
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Search.pm