<form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
+ <!-- TMPL_IF NAME="do_it" --><input type="hidden" name="do_it" value="<!--TMPL_VAR NAME="do_it" -->" /><!-- /TMPL_IF -->
+ <input type="hidden" name="module" value="<!--TMPL_VAR NAME="module" -->" />
+ <input type="hidden" name="action" value="<!--TMPL_VAR NAME="action" -->" />
+ <input type="hidden" name="object" value="<!--TMPL_VAR NAME="object" -->" />
+ <input type="hidden" name="src" value="<!--TMPL_VAR NAME="src" -->" />
<fieldset>
<legend>Additional parameters</legend>
<p>
// }
// if (dateFrom > today) {
// alert("The starting date cannot be in the future.");
- // document.getElementById(from_id).select();
+ // document.getElementById(from_id).select();
// return false;
// }
// }
</tr>
<tr>
<td>
- <input type="submit" value="filter" />
+ <input type="submit" value="Apply Filter" />
<input type="hidden" name="do_it" value="1" />
</td>
<td>
use C4::Output;
use C4::Log;
use C4::Items;
+use Data::Dumper;
use vars qw($debug);
=cut
my $input = new CGI;
+
$debug or $debug = $input->param('debug') || 0;
my $do_it = $input->param('do_it');
my $module = $input->param("module");
}
);
-warn "Source of call was $src";
-
if ($src eq 'circ') { # if we were called from circulation, use the circulation menu and get data to populate it -fbcit
use C4::Members;
my $borrowernumber = $object;
my $data = GetMember($borrowernumber,'borrowernumber');
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
$template->param( picture => 1 ) if $picture;
- $template->param( menu => 1,
- title => $data->{'title'},
- initials => $data->{'initials'},
- surname => $data->{'surname'},
- borrowernumber => $borrowernumber,
- firstname => $data->{'firstname'},
- cardnumber => $data->{'cardnumber'},
- categorycode => $data->{'categorycode'},
- address => $data->{'address'},
- address2 => $data->{'address2'},
- city => $data->{'city'},
- phone => $data->{'phone'},
- phonepro => $data->{'phonepro'},
- email => $data->{'email'},
- branchcode => $data->{'branchcode'},
+ $template->param( menu => 1,
+ title => $data->{'title'},
+ initials => $data->{'initials'},
+ surname => $data->{'surname'},
+ borrowernumber => $borrowernumber,
+ firstname => $data->{'firstname'},
+ cardnumber => $data->{'cardnumber'},
+ categorycode => $data->{'categorycode'},
+ address => $data->{'address'},
+ address2 => $data->{'address2'},
+ city => $data->{'city'},
+ phone => $data->{'phone'},
+ phonepro => $data->{'phonepro'},
+ email => $data->{'email'},
+ branchcode => $data->{'branchcode'},
);
}
my $results = GetLogs($datefrom,$dateto,$user,$module,$action,$object,$info);
my $total = scalar @$results;
+ warn "Total records retrieved = $total";
foreach my $result (@$results){
if ($result->{'info'} eq 'item'){
# get item information so we can create a working link
object => $object,
action => $action,
info => $info,
+ src => $src,
);
output_html_with_http_headers $input, $cookie, $template->output;
} else {