}
sub Search {
- my ( $filter, $orderby, $limit, $columns_out, $search_on_fields, $searchtype ) = @_;
+ my ( $filter, $orderby, $limit, $columns_out, $search_on_fields, $searchtype, $not_attributes ) = @_;
my $search_string;
my $found_borrower;
}
}
- if ( !$found_borrower && C4::Context->preference('ExtendedPatronAttributes') && $search_string ) {
+ if ( !$found_borrower && C4::Context->preference('ExtendedPatronAttributes') && $search_string && !$not_attributes ) {
my $matching_records = C4::Members::Attributes::SearchIdMatchingAttribute($search_string);
if(scalar(@$matching_records)>0) {
if ( my $fr = ref $filter ) {
<div class="browse">
Browse by last name:
[% FOREACH letter IN alphabet.split(' ') %]
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=[% letter %]&batch_id=[% batch_id %]">[% letter %]</a>
+ <a href="/cgi-bin/koha/patroncards/members-search.pl?not_attributes=1&member=[% letter %]&batch_id=[% batch_id %]">[% letter %]</a>
[% END %]
</div>
my $category = $cgi->param('category') || undef;
my $member = $cgi->param('member') || '';
my $orderby = $cgi->param('orderby') || undef;
+my $not_attributes = $cgi->param('not_attributes') || undef;
my @categories=C4::Category->all;
my %categories_display;
$member =~ s/\*/%/g;
if ($member || $category) {
- my $results = $category ? Search({''=>$member, categorycode=>$category}, $orderby)
- : Search($member, $orderby);
+ my $results = $category ? Search({''=>$member, categorycode=>$category}, $orderby, undef, undef, undef, undef, $not_attributes )
+ : Search($member, $orderby, undef, undef, undef, undef, $not_attributes);
my $count = $results ? @$results : 0;
my @resultsdata = ();