koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/opac search [dev_week]


From: Joshua Ferraro
Subject: [Koha-cvs] koha/opac search [dev_week]
Date: Sun, 24 Sep 2006 20:18:02 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         dev_week
Changes by:     Joshua Ferraro <kados>  06/09/24 20:18:02

Modified files:
        opac           : search 

Log message:
        don't need Biblio.pm anymore

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/search?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.4&r2=1.1.2.5

Patches:
Index: search
===================================================================
RCS file: /sources/koha/koha/opac/Attic/search,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -b -r1.1.2.4 -r1.1.2.5
--- search      23 Sep 2006 21:47:25 -0000      1.1.2.4
+++ search      24 Sep 2006 20:18:02 -0000      1.1.2.5
@@ -2,7 +2,7 @@
 # Script to perform searching
 # For documentation try 'perldoc /path/to/search'
 #
-# $Header: /sources/koha/koha/opac/Attic/search,v 1.1.2.4 2006/09/23 21:47:25 
kados Exp $
+# $Header: /sources/koha/koha/opac/Attic/search,v 1.1.2.5 2006/09/24 20:18:02 
kados Exp $
 #
 # Copyright 2006 LibLime
 #
@@ -150,7 +150,6 @@
 use C4::Interface::CGI::Output;
 use C4::Auth;
 use C4::Search;
-use C4::Biblio;
 use C4::Koha;
 use POSIX qw(ceil floor);
 
@@ -223,11 +222,11 @@
 $template->param(branchloop => address@hidden,);
 
 # load the itemtypes (Called Collection Codes in the template -- used for circ 
rules )
-my ($itemtypecount,@item_type_loop) = getitemtypes();
+my ($itemtypecount,@item_type_loop) = GetItemtypes();
 $template->param(itemtypeloop=>address@hidden,);
 
 # load the itypes (Called item types in the template -- just authorized values 
for searching)
-my ($itypecount,@itype_loop) = get_itypes();
+my ($itypecount,@itype_loop) = GetCcodes();
 $template->param(itypeloop=>address@hidden,);
 
 # load the languages ( for switching from one template to another )
@@ -329,7 +328,7 @@
 @servers = split("\0",$params->{'server'}) if $params->{'server'};
 unless (@servers) {
        #FIXME: this should be handled using Context.pm
-       @servers = ("localhost:9900/biblios");
+       @servers = ("biblioserver");
 }
 
 # operators include boolean and proximity operators and are used
@@ -400,7 +399,7 @@
 my @sup_results_array;
 for (my $i=0;$i<address@hidden;$i++) {
        my $server = $servers[$i];
-       if ($server =~/localhost/) { # this is the local server
+       if ($server =~/biblioserver/) { # this is the local bibliographic server
                $hits = $results_hashref->{$server}->{"hits"};
                my @newresults = searchResults( 
$search_desc,$hits,$results_per_page,$offset,@{$results_hashref->{$server}->{"RECORDS"}});
                $total = $total + $results_hashref->{$server}->{"hits"};




reply via email to

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