Skip to content

Commit

Permalink
Merge branch '25.02.00-OpenArchivesSimpleDate' of https://github.com/…
Browse files Browse the repository at this point in the history
…Nashville-Public-Library/aspen-discovery into Nashville-Public-Library-25.02.00-OpenArchivesSimpleDate
  • Loading branch information
mdnoble73 committed Jan 21, 2025
2 parents 36f9b54 + 8b19d66 commit 3767a17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion code/web/RecordDrivers/OpenArchivesRecordDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@
</div>
</div>
</div>
{/strip}
{/strip}
3 changes: 3 additions & 0 deletions code/web/release_notes/25.02.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3767a17

Please sign in to comment.