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

Mets crosswalk wrong format-date specifiers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: OAI-PMH
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      Related to the fix at https://jira.lyrasis.org/browse/DS-4404

      The CREATEDATE is not well formatted because use wrong specifier, this means that the CREATEDATE results in this form "yyyy-MM-ddTHH:mm:ssZ" instead to have the date time.

      The fix is pretty clear:

                                      <xsl:attribute name="CREATEDATE">
      -                                       <xsl:value-of select="concat(format-date(current-date(), 'yyyy-MM-dd'), 'T' , format-time(current-time(), 'HH:mm:ss'), 'Z')"/>
      +                                       <xsl:value-of select="concat(format-date(current-date(), '[Y0001]-[M02]-[D02]'), 'T' , format-time(current-time(), '[H01]:[m01]:[s01]'), 'Z')"/>
                                      </xsl:attribute>
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              l_a_p Luigi Andrea Pascarelli (4Science)
              Reporter:
              l_a_p Luigi Andrea Pascarelli (4Science)
              Reviewer:
              Tim Donohue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: