From 2f7a787556f62cfa4b1d1a6992afc0c53b7d45c4 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 9 Oct 2012 17:34:58 +0200 Subject: [PATCH 1/2] Bug 8570 follow-up removing tabs & improving indentation Signed-off-by: Paul Poulain --- acqui/z3950_search.pl | 42 ++++++++++++++++++------------------- cataloguing/z3950_search.pl | 4 ++-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index e1df23c0f3..68cd0d6a5d 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -46,28 +46,28 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); -my $dbh = C4::Context->dbh; -my $error = $input->param('error'); -my $biblionumber = $input->param('biblionumber'); -$biblionumber = 0 unless $biblionumber; -my $frameworkcode = $input->param('frameworkcode'); -my $title = $input->param('title'); -my $author = $input->param('author'); -my $isbn = $input->param('isbn'); -my $issn = $input->param('issn'); -my $lccn = $input->param('lccn'); +my $dbh = C4::Context->dbh; +my $error = $input->param('error'); +my $biblionumber = $input->param('biblionumber'); +$biblionumber = 0 unless $biblionumber; +my $frameworkcode = $input->param('frameworkcode'); +my $title = $input->param('title'); +my $author = $input->param('author'); +my $isbn = $input->param('isbn'); +my $issn = $input->param('issn'); +my $lccn = $input->param('lccn'); my $lccall = $input->param('lccall'); -my $subject= $input->param('subject'); -my $dewey = $input->param('dewey'); -my $controlnumber = $input->param('controlnumber'); -my $op = $input->param('op'); -my $booksellerid = $input->param('booksellerid'); -my $basketno = $input->param('basketno'); +my $subject = $input->param('subject'); +my $dewey = $input->param('dewey'); +my $controlnumber = $input->param('controlnumber'); +my $op = $input->param('op'); +my $booksellerid = $input->param('booksellerid'); +my $basketno = $input->param('basketno'); -my $page = $input->param('current_page') || 1; -$page = $input->param('goto_page') if $input->param('changepage_goto'); -my $show_next = 0; -my $total_pages = 0; +my $page = $input->param('current_page') || 1; +$page = $input->param('goto_page') if $input->param('changepage_goto'); +my $show_next = 0; +my $total_pages = 0; my $noconnection; my $attr = ''; @@ -342,7 +342,7 @@ warn "query ".$query if $DEBUG; $template->param(show_nextbutton=>1) if $show_next; $template->param(show_prevbutton=>1) if $page != 1; - # print $template->output if $firstresult !=1; + # print $template->output if $firstresult !=1; $firstresult++; } # while nremaining diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index f8968e3dfd..fd4eff9e13 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -94,8 +94,8 @@ $template->param( title => $title, author => $author, controlnumber=> $controlnumber, - stdid => $stdid, - srchany => $srchany, + stdid => $stdid, + srchany => $srchany, biblionumber => $biblionumber, dewey => $dewey, subject => $subject, From d5cf28406b0b73fcb602071a3c0deeb1da201df4 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 7 Sep 2012 15:22:18 -0300 Subject: [PATCH 2/2] Bug 8741 - crontab.example missing username, fails in some systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple addition of the koha user to the sample cron file. Might help non-tech users to get things like incremental indexing to work. Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Kyle M Hall Signed-off-by: Paul Poulain --- misc/cronjobs/crontab.example | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index ed8f117ea9..012747ca0c 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -29,10 +29,10 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # by manipulating those variables in the command. # # For example, on the same codebase: -# */10 * * * * KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null +# */10 * * * * __KOHA_USER__ KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null # # For example, on a separate codebase: -# */10 * * * * KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/home/koha/kohaclone /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null +# */10 * * * * __KOHA_USER__ KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/home/koha/kohaclone /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null # # ADDITIONAL INFO: # See the perldoc of individual scripts to determine what other options @@ -43,42 +43,42 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # Cron/crontab will choke without it. # # SCHEDULED JOBS: -# m h dom mon dow command +# m h dom mon dow user command # OVERDUE NOTICES -0 1 * * * $KOHA_CRON_PATH/overdue_notices.pl -t +0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/overdue_notices.pl -t # FINES -5 1 * * * $KOHA_CRON_PATH/fines.pl +5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/fines.pl # ADVANCE NOTICES -10 1 * * * $KOHA_CRON_PATH/advance_notices.pl -c +10 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/advance_notices.pl -c # PROCESS LONG OVERDUES # updates item status from available to longoverdue for items long overdue -# 19 1 * * * $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm +# 19 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm # SEND EMAILS -15 * * * * $KOHA_CRON_PATH/process_message_queue.pl +15 * * * * __KOHA_USER__ $KOHA_CRON_PATH/process_message_queue.pl # Hourly holds queue updated -52 * * * * $KOHA_CRON_PATH/holds/build_holds_queue.pl >/dev/null 2>&1 +52 * * * * __KOHA_USER__ $KOHA_CRON_PATH/holds/build_holds_queue.pl >/dev/null 2>&1 # Cancel expired holds -0 1 * * * $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1 +0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1 # Update popularity counts for biblio records -0 2 * * * $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1 +0 2 * * * __KOHA_USER__ $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1 # ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs -*/10 * * * * $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null +*/10 * * * * __KOHA_USER__ $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null # services_throttle -- resets the xISBN service -59 23 * * * $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1 +59 23 * * * __KOHA_USER__ $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1 # clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use! -16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 +16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 # delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete. -@weekly $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1 +@weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1