View | Details | Raw Unified | Return to bug 5904
Collapse All | Expand All

(-)a/circ/ysearch.pl (-3 / +3 lines)
Lines 44-55 if ($auth_status ne "ok") { Link Here
44
my $dbh = C4::Context->dbh;
44
my $dbh = C4::Context->dbh;
45
my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, country 
45
my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, country 
46
             FROM borrowers 
46
             FROM borrowers 
47
             WHERE surname LIKE ?
47
             WHERE (surname LIKE ?
48
             OR firstname LIKE ?
48
             OR firstname LIKE ?
49
             OR cardnumber LIKE ?);
49
             OR cardnumber LIKE ?) );
50
if (C4::Context->preference("IndependentBranchPatron")){
50
if (C4::Context->preference("IndependentBranchPatron")){
51
  if (C4::Context->userenv && (C4::Context->userenv->{flags} % 2) !=1 && C4::Context->userenv->{'branch'}){
51
  if (C4::Context->userenv && (C4::Context->userenv->{flags} % 2) !=1 && C4::Context->userenv->{'branch'}){
52
     $sql.=" AND borrowers.branchcode =".$dbh->quote(C4::Context->userenv->{'branch'}) unless (C4::Context->userenv->{'branch'} eq "insecure");
52
     $sql .=" AND borrowers.branchcode =".$dbh->quote(C4::Context->userenv->{'branch'}) unless (C4::Context->userenv->{'branch'} eq "insecure");
53
  }
53
  }
54
}
54
}
55
55
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 107-109 Patrons: Link Here
107
               yes: Do
107
               yes: Do
108
               no: "Don't"
108
               no: "Don't"
109
         - store and display surnames in upper case.
109
         - store and display surnames in upper case.
110
- 
110
     -
111
         - pref: IndependentBranchPatron
112
           choices:
113
               yes: Allow
114
               no: "Don't allow"
115
         - limit to the librarian branch in circ member auto completion.

Return to bug 5904