Skip to content

Commit

Permalink
Merge branch '24.05.10' into 24.06.00
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Jun 7, 2024
2 parents a7578d1 + bab6c58 commit f156568
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions code/web/RecordDrivers/MarcRecordDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,7 @@ public function getMoreDetailsOptions() {
$interface->assign('links', $links);
$interface->assign('show856LinksAsTab', $library->getGroupedWorkDisplaySettings()->show856LinksAsTab);
$interface->assign('showItemDueDates', $library->getGroupedWorkDisplaySettings()->showItemDueDates);
$interface->assign('showItemNotes', $library->getGroupedWorkDisplaySettings()->showItemNotes);

if ($library->getGroupedWorkDisplaySettings()->show856LinksAsTab && count($links) > 0) {
$moreDetailsOptions['links'] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<th>
<strong><u>{translate text="Call Number" isPublicFacing=true}</u></strong>
</th>
{if !empty($hasNote)}
{if !empty($hasNote) && $showItemNotes}
<th>
<strong><u>{translate text="Note" isPublicFacing=true}</u></strong>
</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{/foreach}
{/if}
</td>
{if !empty($hasNote)}
{if !empty($hasNote) && $showItemNotes}
<td>
{if !empty($holding.note)}{$holding.note}{/if}
</td>
Expand Down
9 changes: 9 additions & 0 deletions code/web/release_notes/24.05.10.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
- Update extracting records from Evolve to extract individual MARC records rather than updating individual items. (Ticket 125328) (*MDN*)
- When processing records to reload, force the record to be updated from Evolve during the indexing process. (Ticket 125328) (*MDN*)

### Record Display
- Add a new setting to control if notes are displayed within item details. (Ticket 133369) (*MDN*)

<div markdown="1" class="settings">

#### New Settings
- Catalog / Grouped Works > Grouped Work Display > Full Record Display > Show Item Notes
</div>

### Sierra Updates
- When loading phone numbers, load the primary phone number from the phone number with a type of p. (Ticket 126596) (*MDN*)
- When loading phone numbers, load the "work" phone number from the phone number with a type of t. (Ticket 126596) (*MDN*)
Expand Down
10 changes: 9 additions & 1 deletion code/web/sys/DBMaintenance/version_updates/24.05.10.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ function getUpdates24_05_10(): array {
"ALTER TABLE library ADD allowPatronWorkPhoneNumberUpdates TINYINT(1) DEFAULT 1",
"UPDATE library set allowPatronWorkPhoneNumberUpdates = showWorkPhoneInProfile",
],
],
], //library_add_can_update_work_phone_number
'show_item_notes_in_copies' => [
'title' => 'Show Item Notes in Copies',
'description' => 'Allow control over if notes are displayed in copy details',
'continueOnError' => true,
'sql' => [
"ALTER TABLE grouped_work_display_settings ADD showItemNotes TINYINT(1) DEFAULT 1",
],
], //show_item_notes_in_copies
];
}
9 changes: 9 additions & 0 deletions code/web/sys/Grouping/GroupedWorkDisplaySetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class GroupedWorkDisplaySetting extends DataObject {

//Item details
public $showItemDueDates;
public $showItemNotes;

private $_moreDetailsOptions;

Expand Down Expand Up @@ -606,6 +607,14 @@ static function getObjectStructure($context = ''): array {
'hideInLists' => true,
'default' => true,
],
'showItemNotes' => [
'property' => 'showItemNotes',
'type' => 'checkbox',
'label' => 'Show Item Notes',
'description' => 'Whether or notes for items are shown within the copy details if available.',
'hideInLists' => true,
'default' => true,
],
'showInMainDetails' => [
'property' => 'showInMainDetails',
'type' => 'multiSelect',
Expand Down

0 comments on commit f156568

Please sign in to comment.