[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha loadmodules.pl,1.12,1.13
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha loadmodules.pl,1.12,1.13 |
Date: |
Tue, 04 Mar 2003 08:16:22 -0800 |
Update of /cvsroot/koha/koha
In directory sc8-pr-cvs1:/tmp/cvs-serv12073
Modified Files:
loadmodules.pl
Log Message:
MARC search fixes and improvements. Now, ALL searches are indexed and should be
very fast with any statement.
a few improvments, and it will be useable even with a NON-MARC installation of
koha.
Index: loadmodules.pl
===================================================================
RCS file: /cvsroot/koha/koha/loadmodules.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** loadmodules.pl 13 Feb 2003 18:02:10 -0000 1.12
--- loadmodules.pl 4 Mar 2003 16:16:18 -0000 1.13
***************
*** 36,40 ****
}
-
sub acquisitions {
my $aq_type = C4::Context->preference("acquisitions") || "normal";
--- 36,39 ----
***************
*** 56,65 ****
my $marc_p = C4::Context->boolean_preference("marc");
$marc_p = 1 unless defined $marc_p;
my $query = new CGI;
my $type = $query->param('type');
! if ($marc_p) {
! print
$input->redirect("/cgi-bin/koha/search.marc/search.pl?type=$type");
} else {
! print $input ->redirect("/cgi-bin/koha/catalogue-home.pl");
}
}
--- 55,73 ----
my $marc_p = C4::Context->boolean_preference("marc");
$marc_p = 1 unless defined $marc_p;
+ my $keyword=$input->param('keyword');
my $query = new CGI;
my $type = $query->param('type');
! if ($keyword) {
! if ($marc_p) {
! print
$input->redirect("/cgi-bin/koha/search.marc/search.pl?type=$type");
! } else {
! print $input
->redirect("/cgi-bin/koha/search.pl?keyword=$keyword");
! }
} else {
! if ($marc_p) {
! print
$input->redirect("/cgi-bin/koha/search.marc/search.pl?type=$type");
! } else {
! print $input
->redirect("/cgi-bin/koha/catalogue-home.pl");
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha loadmodules.pl,1.12,1.13,
Paul POULAIN <=
- Prev by Date:
[Koha-cvs] CVS: koha/search.marc search.pl,1.5,1.6
- Next by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters admin-home.tmpl,1.11,1.12 aqbookfund.tmpl,1.8,1.9 aqbudget.tmpl,1.5,1.6 authorised_values.tmpl,1.5,1.6 checkmarc.tmpl,1.2,1.3 itemtypes.tmpl,1.4,1.5 koha2marclinks.tmpl,1.5,1.6 marc_subfields_structure.tmpl,1.15,1.16 systempreferences.tmpl,1.6,1.7 thesaurus.tmpl,1.7,1.8
- Previous by thread:
[Koha-cvs] CVS: koha/search.marc search.pl,1.5,1.6
- Next by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters admin-home.tmpl,1.11,1.12 aqbookfund.tmpl,1.8,1.9 aqbudget.tmpl,1.5,1.6 authorised_values.tmpl,1.5,1.6 checkmarc.tmpl,1.2,1.3 itemtypes.tmpl,1.4,1.5 koha2marclinks.tmpl,1.5,1.6 marc_subfields_structure.tmpl,1.15,1.16 systempreferences.tmpl,1.6,1.7 thesaurus.tmpl,1.7,1.8
- Index(es):