Skip to content

Commit 07f2851

Browse files
committed
Merge branch 'Nashville-Public-Library-25.02.00-OpenArchivesSimpleDate' into 25.02.00
2 parents 36f9b54 + 3767a17 commit 07f2851

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

code/web/RecordDrivers/OpenArchivesRecordDriver.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ public function getSearchResult($view = 'list', $showListsAppearingOn = true) {
5454
$interface->assign('date', $this->fields['date_text']);
5555
} else {
5656
if (array_key_exists('date', $this->fields)) {
57-
$interface->assign('date', $this->fields['date']);
57+
// check to see whether $this->fields['date'] is an array then loop through each member
58+
if (is_array($this->fields['date'])) {
59+
$date = '';
60+
foreach ($this->fields['date'] as $datePart) {
61+
$date .= date('Y-m-d', strtotime($datePart)) . ' ';
62+
}
63+
$interface->assign('date', $date);
64+
} else {
65+
$interface->assign('date', date('Y-m-d', $this->fields['date']));
66+
}
5867
} else {
5968
$interface->assign('date', null);
6069
}

code/web/interface/themes/responsive/RecordDrivers/OpenArchives/result.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@
112112
</div>
113113
</div>
114114
</div>
115-
{/strip}
115+
{/strip}

code/web/release_notes/25.02.00.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
### Carl.X Updates
9191
- Add Lost items to Checked Out page (DIS-244) (*JStaub*)
9292

93+
### Open Archives Updates
94+
- Eliminate the time portion of display dates from Aspen Open Archives search results (DIS-242) (*JStaub*)
95+
9396
//alexander
9497

9598
//chloe

0 commit comments

Comments
 (0)