Bug #6222

EAD dates of creation etc. ( <unitdate> ) @NORMAL are not importing properly, leading to incorrect values in start and end dates

Added by Dan Gillean over 8 years ago. Updated almost 8 years ago.

Status:VerifiedStart date:01/17/2014
Priority:MediumDue date:
Assignee:Mike Gale% Done:

0%

Category:EAD
Target version:Release 2.1.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

To reproduce

The following EAD exerpt is in the sample file attached, which can be uploaded to test the issue:


<unittitle encodinganalog="3.1.2">Bushey Family Fonds</unittitle>
<unitid repositorycode="NLA-2011" countrycode="CA" encodinganalog="3.1.1">CA NLA-2011 BFF-01</unitid>
<unitdate datechar="creation" normal="19000101/19991212" encodinganalog="3.1.3">January 1, 1900 - December 31, 1999</unitdate>

Resulting error
The Display date appears as expected. However, when a user enters edit mode, they will see that the start and end dates are populated with as in the attached PNG image (e.g. with 1900 as the startDate, and 101 as the endDate)

Expected result
startDate in edit mode reads: 19000101
endDate in edit mode reads: 19991212

Notes
The same issue should be considered when a single date is uploaded, e.g. 19000124 - and not just when start and end dates are different.
The solution may need to be flexible enough to support YYYYMMDD encoding, as well as YYYY-MM-DD, YYYYMM, etc.

date-formatting-import.png - Result of importing a file with Date @normal 19000101/19991212 (18.7 KB) Dan Gillean, 01/17/2014 03:02 PM

bushey-family-fonds-dimensionsAdded.xml Magnifier - EAD file used in the issue description for testing. (6.37 KB) Dan Gillean, 01/17/2014 03:03 PM

History

#1 Updated by Dan Gillean over 8 years ago

  • Subject changed from EAD dates of creation etc. ( <unitdate ) @NORMAL are not importing properly, leading to incorrect values in start and end dates to EAD dates of creation etc. ( <unitdate> ) @NORMAL are not importing properly, leading to incorrect values in start and end dates

Fix typo in title

#2 Updated by Mike Gale about 8 years ago

  • Status changed from New to QA/Review
  • Assignee changed from José Raddaoui Marín to Dan Gillean
  • Priority changed from High to Medium

I've pushed a fix for this to 2.x, Dan

#3 Updated by Dan Gillean about 8 years ago

  • Status changed from QA/Review to Feedback
  • Assignee changed from Dan Gillean to Mike Gale

Related problem (but on export)

  • Create a new description
  • Enter dates in start and end that have YYYYMM format - e.g. startDate: 198004 endDate: 200001
  • Save and export

Resulting EAD unitdate @normal is incorrect.

#4 Updated by Dan Gillean about 8 years ago

  • Status changed from Feedback to Verified

Mike G has pushed a fix for the previous comment, and I have tested it. Things are looking good!

#5 Updated by Dan Gillean almost 8 years ago

  • Target version changed from Release 2.0.2 to Release 2.1.0

Also available in: Atom PDF