koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/search.marc search.pl,1.22.2.1,1.22.2.2


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/search.marc search.pl,1.22.2.1,1.22.2.2
Date: Fri, 25 Mar 2005 09:05:46 -0800

Update of /cvsroot/koha/koha/search.marc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27687/search.marc

Modified Files:
      Tag: rel_2_2
        search.pl 
Log Message:
minor but nice feature : if a search gives only 1 answer, reach it immadiatly

Index: search.pl
===================================================================
RCS file: /cvsroot/koha/koha/search.marc/search.pl,v
retrieving revision 1.22.2.1
retrieving revision 1.22.2.2
diff -C2 -r1.22.2.1 -r1.22.2.2
*** search.pl   7 Mar 2005 09:49:10 -0000       1.22.2.1
--- search.pl   25 Mar 2005 17:05:41 -0000      1.22.2.2
***************
*** 132,136 ****
                                                                                
address@hidden, address@hidden, address@hidden,
                                                                                
$startfrom*$resultsperpage, $resultsperpage,$orderby,$desc_or_asc);
! 
        ($template, $loggedinuser, $cookie)
                = get_template_and_user({template_name => 
"search.marc/result.tmpl",
--- 132,140 ----
                                                                                
address@hidden, address@hidden, address@hidden,
                                                                                
$startfrom*$resultsperpage, $resultsperpage,$orderby,$desc_or_asc);
!       if ($total == 1) {
!        # if only 1 answer, jump directly to the biblio
!            print 
$query->redirect("/cgi-bin/koha/MARCdetail.pl?bib="address@hidden>{biblionumber});
!                exit
!       }
        ($template, $loggedinuser, $cookie)
                = get_template_and_user({template_name => 
"search.marc/result.tmpl",




reply via email to

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