[Koha-bugs] [Bug 4270] New: Instructions for loading patron attributes are wrong

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Thu Feb 25 18:01:34 CET 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4270

           Summary: Instructions for loading patron attributes are wrong
           Product: Koha
           Version: HEAD
          Platform: PC
        OS/Version: Windows 2000
            Status: ASSIGNED
          Severity: major
          Priority: P5
         Component: Tools
        AssignedTo: jwagner at ptfs.com
        ReportedBy: jwagner at ptfs.com
   Estimated Hours: 0.0
 Change sponsored?: ---


In Tools, Import Patrons, the instructions for setting up the .csv file with
values for patron attributes say:

If loading patron attributes, the 'patron_attributes' field should contain a
comma-separated list of attribute types and values. The attribute type code and
a ':' should precede each value. For example: "INSTID:12345,LANG:fr". This
means that if an input record has more than one attribute, the
'patron_attributes' field must be wrapped in double quotation marks. 

However, something seems to have changed in the code somewhere along the line. 
The above worked in earlier versions, but as of roughly summer 2009 wrapping
the field in double quotes does not work if there are more than one patron
attribute fields defined.  All values get loaded into the first attribute
field.  After much experimentation and help from others, I found that the
import would work either if the whole .csv field was NOT wrapped in quotes, or
if each patron attribute being loaded had its own quote marks.  For example:

STARTDATE:January 1 2010,TRACK:Day

or

"STARTDATE:January 1, 2010","TRACK:Day"

The second syntax is preferable if your data would ordinarily have a comma in
it, like a date field (above).  See the discussions between jwagner, schuster,
and kf on the IRC on 2010-01-29 and 2010-02-01.

I am revising the screen instructions accordingly.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list