Bugzilla – Attachment 15942 Details for
Bug 9377
itemtype in duplicate biblio search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (remove itemtype)
0001-Bug-9377-itemtype-in-duplicate-biblio-search.patch (text/plain), 1.23 KB, created by
Fridolin Somers
on 2013-03-07 16:43:05 UTC
(
hide
)
Description:
Proposed patch (remove itemtype)
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-03-07 16:43:05 UTC
Size:
1.23 KB
patch
obsolete
>From a61a48ae8e4c58b79e97650bfb8fd4b8f4f9e6f1 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 7 Mar 2013 17:37:16 +0100 >Subject: [PATCH] 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 >--- > C4/Search.pm | 2 -- > 1 file changed, 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 50f7d2b..ce6129d 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -112,8 +112,6 @@ 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->{author} ) { > $result->{author} =~ s /\\//g; > $result->{author} =~ s /\"//g; >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9377
:
14535
|
14557
|
15798
|
15942
|
15964