Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-232

DCPersonName parses name incorrectly (fix included)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Environment:
      Sun Java 1.5, MacOSX, Oracle.. not htat it matters..
    • Attachments:
      1
    • Comments:
      2

      Description

      When parsing a name string (e.g. value of dc.contributor.author metadata field) DCPersonName assumes the last name is followed by a comma AND A SPACE. If the space is missing, it eats the first character of the firstname(s).

      The attached patch fixes it, and deals with any other whitespace issues around the comma so the format is more liberal: lastname can be followed by arbitrary whitespace, then a comma, then firstname(s).

        Attachments

          Activity

            People

            • Assignee:
              lcs Larry Stone
              Reporter:
              lcs Larry Stone
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified