diff --git a/code/web/RecordDrivers/OpenArchivesRecordDriver.php b/code/web/RecordDrivers/OpenArchivesRecordDriver.php index 2b56f559ae..c711160c9d 100644 --- a/code/web/RecordDrivers/OpenArchivesRecordDriver.php +++ b/code/web/RecordDrivers/OpenArchivesRecordDriver.php @@ -54,7 +54,16 @@ public function getSearchResult($view = 'list', $showListsAppearingOn = true) { $interface->assign('date', $this->fields['date_text']); } else { if (array_key_exists('date', $this->fields)) { - $interface->assign('date', $this->fields['date']); + // check to see whether $this->fields['date'] is an array then loop through each member + if (is_array($this->fields['date'])) { + $date = ''; + foreach ($this->fields['date'] as $datePart) { + $date .= date('Y-m-d', strtotime($datePart)) . ' '; + } + $interface->assign('date', $date); + } else { + $interface->assign('date', date('Y-m-d', $this->fields['date'])); + } } else { $interface->assign('date', null); } diff --git a/code/web/interface/themes/responsive/RecordDrivers/OpenArchives/result.tpl b/code/web/interface/themes/responsive/RecordDrivers/OpenArchives/result.tpl index cfa8941e55..22a645fc29 100644 --- a/code/web/interface/themes/responsive/RecordDrivers/OpenArchives/result.tpl +++ b/code/web/interface/themes/responsive/RecordDrivers/OpenArchives/result.tpl @@ -112,4 +112,4 @@ -{/strip} \ No newline at end of file +{/strip} diff --git a/code/web/release_notes/25.02.00.MD b/code/web/release_notes/25.02.00.MD index c95ff7da02..d25a51c9db 100644 --- a/code/web/release_notes/25.02.00.MD +++ b/code/web/release_notes/25.02.00.MD @@ -90,6 +90,9 @@ ### Carl.X Updates - Add Lost items to Checked Out page (DIS-244) (*JStaub*) +### Open Archives Updates +- Eliminate the time portion of display dates from Aspen Open Archives search results (DIS-242) (*JStaub*) + //alexander //chloe