koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/search.marc search.pl [rel_2_2]


From: paul poulain
Subject: [Koha-cvs] koha/search.marc search.pl [rel_2_2]
Date: Fri, 01 Sep 2006 09:43:17 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     paul poulain <tipaul>   06/09/01 09:43:17

Modified files:
        search.marc    : search.pl 

Log message:
        open template 1st to set userenv

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/search.marc/search.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.22.2.11&r2=1.22.2.12

Patches:
Index: search.pl
===================================================================
RCS file: /cvsroot/koha/koha/search.marc/search.pl,v
retrieving revision 1.22.2.11
retrieving revision 1.22.2.12
diff -u -b -r1.22.2.11 -r1.22.2.12
--- search.pl   20 Jun 2006 16:21:43 -0000      1.22.2.11
+++ search.pl   1 Sep 2006 09:43:17 -0000       1.22.2.12
@@ -97,7 +97,15 @@
 
 my $startfrom=$query->param('startfrom');
 $startfrom=0 if(!defined $startfrom);
-my ($template, $loggedinuser, $cookie);
+my ($template, $loggedinuser, $cookie)
+    = get_template_and_user({template_name => "search.marc/result.tmpl",
+            query => $query,
+            type => $type,
+            authnotrequired => 0,
+            flagsrequired => {borrowers => 1},
+            flagsrequired => {catalogue => 1},
+            debug => 1,
+            });
 my $resultsperpage;
 
 if ($op eq "do_search") {
@@ -150,15 +158,6 @@
        }
         exit
        }
-       ($template, $loggedinuser, $cookie)
-               = get_template_and_user({template_name => 
"search.marc/result.tmpl",
-                               query => $query,
-                               type => $type,
-                               authnotrequired => 0,
-                               flagsrequired => {borrowers => 1},
-                               flagsrequired => {catalogue => 1},
-                               debug => 1,
-                               });
 
        # multi page display gestion
        my $displaynext=0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]