Bug 17151

Summary: Extended patron attributes not importing when using double quotes
Product: Koha Reporter: Danielle Elder <danielle>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: clopez, dubyk, gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18689
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Danielle Elder 2016-08-19 01:03:05 UTC
Patron import tool directions on Patron Import Tool Page states:
_____________

   Example 2: STARTDATE:January 1 2010,TRACK:Day

If an input record has more than one attribute, the fields should either be entered as an unquoted string (previous examples), or with each field wrapped in separate double quotes and delimited by a comma:

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

The second syntax would be required if the data might have a comma in it, like a date string.
____________

Only the second example works "STARTDATE:January 1 2010,TRACK:Day"

The double quotes import does not work. Loading the patron will fail with a "Line 2 could not be parsed!" error. 

Partners of BWS are also reporting this same behavior.
Comment 1 Carlos Lopez 2018-11-15 02:21:55 UTC
We've found (version 1711) that if we do not double-quote or separately double-quote patron attributes only one will be loaded
(example 1: ORG:PILGRIM,ROLE:UG)
(example 2: "ORG:PILGRIM","ROLE:UG")
but if we put double-quotes around the entire set of patron attributes they load properly
(example 3: "ORG:PILGRIM,ROLE:UG")