diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl index 4d3dc9a3ab..2c6bc6d287 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl @@ -84,6 +84,7 @@ function add_item3(borrowernumber){

Results to of found for ''

+
,''); return false" />
Select AllClear All
diff --git a/labels/pcard-member-search.pl b/labels/pcard-member-search.pl index d40da1b659..484ff31506 100755 --- a/labels/pcard-member-search.pl +++ b/labels/pcard-member-search.pl @@ -27,13 +27,14 @@ use C4::Auth; use C4::Output; use CGI; use C4::Members; +use C4::Debug; my $input = new CGI; my $batch_id = $input->param('batch_id'); my $batch_type = $input->param('type'); -warn "Passed Batch Id: $batch_id and Type: $batch_type"; +$debug and warn "[In pcard-member-search] Batch Id: $batch_id, and Type: $batch_type"; my $quicksearch = $input->param('quicksearch'); my $startfrom = $input->param('startfrom')||1; @@ -42,7 +43,7 @@ my $resultsperpage = $input->param('resultsperpage')||C4::Context->preference("P my ($template, $loggedinuser, $cookie); if($quicksearch){ ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "members/member-quicksearch-results.tmpl", + = get_template_and_user({template_name => "members/member-quicksearch-results.tmpl", # FIXME: template doesn't exist query => $input, type => "intranet", authnotrequired => 0, @@ -127,14 +128,14 @@ for (my $i=($startfrom-1)*$resultsperpage; $i < $to; $i++){ push(@resultsdata, \%row); } my $base_url = - 'member.pl?&' + 'pcard-member-search.pl?' . join( '&', map { $_->{term} . '=' . $_->{val} } ( - { term => 'member', val => $member}, - { term => 'orderby', val => $orderby }, + { term => 'member', val => $member }, + { term => 'orderby', val => $orderby }, { term => 'resultsperpage', val => $resultsperpage }, - { term => 'type', val => 'intranet' }, + { term => 'type', val => 'intranet' }, ) );