Skip to content

Commit

Permalink
Add setting to show/hide More Info button in LiDA
Browse files Browse the repository at this point in the history
  • Loading branch information
catsoup11789 committed Feb 3, 2025
1 parent 612efc4 commit 6e60b62
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/web/release_notes/25.02.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@

//kirstien

### Aspen LiDA Updates

- Added new setting to show/hide More Info button on the Grouped Work screen in Aspen LiDA. (DIS-207) (*KK*)

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

#### New Settings

- Aspen LiDA > General Settings > Show More Info button on Grouped Work Screen

</div>

### API Updates

- Add support for starting a Shared Session with LiDA to open a Grouped Work (DIS-207) (*KK*)
Expand Down
9 changes: 9 additions & 0 deletions code/web/sys/AspenLiDA/GeneralSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class GeneralSetting extends DataObject {
public $name;
public $autoRotateCard;
public $enableSelfRegistration;
public $showMoreInfoBtn;

private $_libraries;

Expand Down Expand Up @@ -41,6 +42,14 @@ static function getObjectStructure($context = ''): array {
'description' => 'Whether or not users can self register for a new account in LiDA.',
'hideInLists' => true,
],
'showMoreInfoBtn' => [
'property' => 'showMoreInfoBtn',
'type' => 'checkbox',
'label' => 'Show More Info button on Grouped Work Screen',
'note' => 'This button opens up an in-app Aspen Discovery session to see additional record information.',
'description' => 'Whether or not to display a More Info button in Aspen LiDA on the Grouped Work screen.',
'hideInLists' => true,
],
'libraries' => [
'property' => 'libraries',
'type' => 'multiSelect',
Expand Down
8 changes: 8 additions & 0 deletions code/web/sys/DBMaintenance/version_updates/25.02.00.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ function getUpdates25_02_00(): array {
//katherine

//kirstien - Grove
'lida_general_settings_add_more_info' => [
'title' => 'Add option in Aspen LiDA General Settings to display More Info button',
'description' => 'Add option in Aspen LiDA General Settings to display More Info button',
'sql' => [
"ALTER TABLE aspen_lida_general_settings add COLUMN showMoreInfoBtn TINYINT(1) DEFAULT 1"
]
],
//lida_general_settings_add_more_info

//kodi

Expand Down
1 change: 1 addition & 0 deletions code/web/sys/LibraryLocation/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -5475,6 +5475,7 @@ public function getApiInfo(): array {
$generalSettings = $this->getLiDAGeneralSettings();
$apiInfo['generalSettings']['autoRotateCard'] = $generalSettings->autoRotateCard ?? 0;
$apiInfo['enableSelfRegistrationInApp'] = $generalSettings->enableSelfRegistration ?? 0;
$apiInfo['showMoreInfoBtn'] = (int)$generalSettings->showMoreInfoBtn ?? 0;

$apiInfo['hasEventSettings'] = $this->hasEventSettings();

Expand Down

0 comments on commit 6e60b62

Please sign in to comment.