From 740814d951ec2943b0bf64e3aa6968a772476bbe Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 5 Feb 2010 08:21:36 -0500 Subject: [PATCH] corrected POD for GetMember() Signed-off-by: Galen Charlton --- C4/Members.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index 9007ece8f7..98adc27e5e 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 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 #' -- 2.39.5