[Koha-patches] [PATCH 3/3] corrected POD for GetMember()
Galen Charlton
gmcharlt at gmail.com
Fri Feb 5 14:23:34 CET 2010
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
C4/Members.pm | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/C4/Members.pm b/C4/Members.pm
index 9007ece..98adc27 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -515,15 +515,19 @@ sub patronflags {
$borrower = &GetMember(%information);
-Looks up information about a patron (borrower) by either card number
-,firstname, or borrower number, depending on $type value.
-If C<$type> == 'cardnumber', C<&GetBorrower>
-searches by cardnumber then by firstname if not found in cardnumber;
-otherwise, it searches by borrowernumber.
+Retrieve the first patron record meeting on criteria listed in the
+C<%information> hash, which should contain one or more
+pairs of borrowers column names and values, e.g.,
+
+ $borrower = GetMember(borrowernumber => id);
C<&GetBorrower> returns a reference-to-hash whose keys are the fields of
the C<borrowers> table in the Koha database.
+FIXME: GetMember() is used throughout the code as a lookup
+on a unique key such as the borrowernumber, but this meaning is not
+enforced in the routine itself.
+
=cut
#'
--
1.6.3.3
More information about the Koha-patches
mailing list