#!/usr/bin/perl
-
-# Copyright 2000-2002 Katipo Communications
+# Copyright 2010 BibLibre
#
# This file is part of Koha.
#
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License along with
-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
-# Suite 330, Boston, MA 02111-1307 USA
+# You should have received a copy of the GNU General Public License along
+# with Koha; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
+#use warnings; FIXME - Bug 2505
use C4::Auth;
use CGI;
use C4::Context;
use C4::Branch;
use C4::Debug;
# use Data::Dumper;
+use C4::Search; # enabled_staff_search_views
use vars qw($debug $cgi_debug);
my $datefrom = $input->param("from");
my $dateto = $input->param("to");
my $basename = $input->param("basename");
-my $mime = $input->param("MIME");
#my $del = $input->param("sep");
my $output = $input->param("output") || "screen";
my $src = $input->param("src"); # this param allows us to be told where we were called from -fbcit
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 $data = GetMember('borrowernumber'=>$borrowernumber);
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
$template->param( picture => 1 ) if $picture;
$template->param( menu => 1,
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
dateformat => C4::Dates->new()->format(),
debug => $debug,
+ C4::Search::enabled_staff_search_views,
);
-#
-#### This code was never really used - maybe some day some will fix it ###
-#my @mime = ( C4::Context->preference("MIME") );
-#my $CGIextChoice = CGI::scrolling_list(
-# -name => 'MIME',
-# -id => 'MIME',
-# -values => \@mime,
-# -size => 1,
-# -multiple => 0
-#);
-#my @dels = ( C4::Context->preference("delimiter") );
-#my $CGIsepChoice = CGI::scrolling_list(
-# -name => 'sep',
-# -id => 'sep',
-# -values => \@dels,
-# -size => 1,
-# -multiple => 0
-#);
-#$template->param(
-# CGIextChoice => $CGIextChoice,
-# CGIsepChoice => $CGIsepChoice,
-#);
-#
+
if ($do_it) {
my $results = GetLogs($datefrom,$dateto,$user,\@modules,$action,$object,$info);