From 05f7375ea9dab9faa4a0e8b6542390c9fa6ace09 Mon Sep 17 00:00:00 2001 From: rangi Date: Sat, 11 May 2002 01:50:35 +0000 Subject: [PATCH] Starting Makefile.PL and starting work on pod inside Search.pm --- C4/MANIFEST | 4 ++++ C4/Makefile.PL | 11 +++++++++++ C4/Search.pm | 27 ++++++++++++++++++++++++++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 C4/MANIFEST create mode 100644 C4/Makefile.PL diff --git a/C4/MANIFEST b/C4/MANIFEST new file mode 100644 index 0000000000..5941c6da55 --- /dev/null +++ b/C4/MANIFEST @@ -0,0 +1,4 @@ +Makefile.PL +MANIFEST +Search.pm + diff --git a/C4/Makefile.PL b/C4/Makefile.PL new file mode 100644 index 0000000000..bc7acf9cba --- /dev/null +++ b/C4/Makefile.PL @@ -0,0 +1,11 @@ +use ExtUtils::MakeMaker; +# See lib/ExtUtils/MakeMaker.pm for details of how to influence +# the contents of the Makefile that is written. +WriteMakefile( + 'NAME' => 'C4::Search', + 'VERSION_FROM' => 'Search.pm', # finds $VERSION + 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 + ($] >= 5.005 ? ## Add these new keywords supported since 5.005 + (ABSTRACT_FROM => 'Search.pm', # retrieve abstract from module + AUTHOR => 'Koha Dev Team ') : ()), +); diff --git a/C4/Search.pm b/C4/Search.pm index 885d526627..3c4d575776 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -13,7 +13,7 @@ use Set::Scalar; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); # set the version for version checking -$VERSION = 0.01; +$VERSION = 0.02; @ISA = qw(Exporter); @EXPORT = qw(&CatSearch &BornameSearch &ItemInfo &KeywordSearch &subsearch @@ -1169,8 +1169,33 @@ sub barcodes{ } END { } # module clean-up code here (global destructor) +=head1 NAME +C4::Search - Module that provides Catalog searching for Koha +=head1 SYNOPSIS + use C4::Search; + my ($count,@results)=KeywordSearch($env,$type,$search,$num,$offset); + my ($count,@results)=CatSearch($env,$type,$search,$num,$offset); +=head1 DESCRIPTION +This module provides the searching facilities for the Catalog. +Here I should go through and document each function thats exported and what it does. But I havent yet. + +=head2 EXPORT + +KeywordSearch +CatSearch +ItemInfo + +=head1 AUTHOR + +Koha Developement team + +=head1 SEE ALSO + +L. + +=cut -- 2.39.5