[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/serials member-search.pl [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/serials member-search.pl [rel_3_0] |
Date: |
Mon, 27 Nov 2006 15:15:33 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/11/27 15:15:33
Modified files:
serials : member-search.pl
Log message:
bornameSearch is now from Members.pm instead of Search.pm.
+ code cleaning.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/serials/member-search.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.2&r2=1.1.2.3
Patches:
Index: member-search.pl
===================================================================
RCS file: /sources/koha/koha/serials/member-search.pl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- member-search.pl 21 Nov 2006 10:45:54 -0000 1.1.2.2
+++ member-search.pl 27 Nov 2006 15:15:33 -0000 1.1.2.3
@@ -15,49 +15,43 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# Member Search.pl script used to search for members to add to a routing list
+=head1 member-search.pl
+
+Member Search.pl script used to search for members to add to a routing list
+
+=cut
+
use strict;
use CGI;
-use C4::Koha;
-use C4::Auth;
-use C4::Date;
-use C4::Output;
-use C4::Acquisition;
+use C4::Auth; # get_template_and_user
use C4::Interface::CGI::Output;
-use C4::Context;
-use HTML::Template;
-use C4::Search;
-use C4::Serials;
+use C4::Members; # BornameSearch
my $query = new CGI;
my $subscriptionid = $query->param('subscriptionid');
-my $op = $query->param('op');
my $searchstring = $query->param('member');
-my $dbh = C4::Context->dbh;
-my $env;
-
- my ($template, $loggedinuser, $cookie)
-= get_template_and_user({template_name => "serials/member-search.tmpl",
+my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+ {
+ template_name => "serials/member-search.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
- flagsrequired => {serials => 1},
+ flagsrequired => { serials => 1 },
debug => 1,
- });
-
+ }
+);
-if($searchstring){
- my ($count, $members) = &BornameSearch($env, $searchstring, "surname");
+if ($searchstring) {
+ my ( $count, $members ) = &BornameSearch( '', $searchstring, "surname" );
$template->param(
subscriptionid => $subscriptionid,
memberloop => $members,
member => $searchstring,
);
-} else {
- $template->param(
- subscriptionid => $subscriptionid,
- );
}
- output_html_with_http_headers $query, $cookie, $template->output;
+else {
+ $template->param( subscriptionid => $subscriptionid, );
+}
+output_html_with_http_headers $query, $cookie, $template->output;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/serials member-search.pl [rel_3_0],
Antoine Farnault <=