Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1630

Islandora_google_scholar is changing just year dates to current year.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: 7.x-1.8
    • Component/s: Scholar Module
    • Labels:
      None

      Description

      In islandora_google_scholar if a date from the mods is currently already in the format of just the year and not y/m/d etc. it will be returned from the islandora_google_scholar_parse_date_foryear function as the current year. https://github.com/Islandora/islandora_scholar/blob/7.x/modules/islandora_google_scholar/islandora_google_scholar.module#L179 the DateTime will return todays date and time if just handed a year for $date.

      *Steps to Reproduce*
      In a MODS xml add dateIssued as just a year and check the source to see the meta tags added by islandora_google_scholar (if enabled). The
      {code:java}
      <meta name="citation_publication_date" content="">
      {code}
       will reflect the current year.


      *Test Case*
      In a MODS xml add dateIssued as just a year and check the source to see the meta tags added by islandora_google_scholar (if enabled). The
      {code:java}
      <meta name="citation_publication_date" content="">
      {code}
       will correctly reflect the year entered in the MODS



      ----
      Kylea Jackson
      Developer
      discoverygarden inc. | Managing Digital Content

        Attachments

          Activity

            People

            • Assignee:
              kjackson Kylea Jackson
              Reporter:
              kjackson Kylea Jackson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: