Adjust the default to use the current "All Parts" behavior, and set a code-level...
authorMike Rylander <mrylander@gmail.com>
Fri, 5 May 2023 16:15:36 +0000 (12:15 -0400)
committerJason Etheridge <phasefx@gmail.com>
Sun, 14 May 2023 13:18:51 +0000 (09:18 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.schema.eparts.sql

index e7ddb7f..884f34f 100644 (file)
@@ -71,7 +71,7 @@ export class HoldComponent implements OnInit {
     activeDateYmd: string;
     activeDate: Date;
     activeDateInvalid = false;
-    anyPartLabel: string;
+    anyPartLabel = 'All Parts';
 
     holdContexts: HoldContext[];
     recordSummaries: BibRecordSummary[];
@@ -170,7 +170,7 @@ export class HoldComponent implements OnInit {
             }
         });
 
-        this.pcrud.retrieve('i18ns', 1) // Any Part
+        this.pcrud.retrieve('i18ns', 1) // Seed data default is: All Parts
         .subscribe(i18n_string => {
             this.anyPartLabel = i18n_string.string();
         });
index 3003a9f..7738f58 100644 (file)
@@ -1508,7 +1508,7 @@ sub load_place_hold {
 
     my $any_part_label = $self->editor->retrieve_config_i18n_string([1, {}]);
     $any_part_label = $any_part_label->string if $any_part_label;
-    $ctx->{any_part_label} = $any_part_label;
+    $ctx->{any_part_label} = $any_part_label || 'All Parts';
     $ctx->{staff_recipient} = $self->editor->retrieve_actor_user([
         $e->requestor->id,
         {
index 7cb0f43..6e4307f 100644 (file)
@@ -18963,7 +18963,7 @@ INSERT INTO config.i18n_core (fq_field, identity_value, translation, string )
           AND t.xlate IS NOT NULL
           AND t.name <> (xlate->value);
 
-INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons, when monographic parts are available, this would be the option for indicating that no specific part is being requested.', 'Any Part');
+INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons; when monographic parts are available, this string provides contextual information about whether and how parts are consider for holds that do not request a specific mongraphic part.', 'All Parts');
 
 INSERT INTO authority.heading_field(heading_type, heading_purpose, label, heading_xpath, component_xpath, type_xpath, thesaurus_xpath, thesaurus_override_xpath) VALUES
  ( 'topical_term', 'main',    'Main Topical Term',    '/mads21:mads/mads21:authority', '//mads21:topic', NULL, '/mads21:mads/mads21:authority/mads21:topic[1]/@authority', NULL )
index 4c3fa76..ecee9cd 100644 (file)
@@ -14,6 +14,6 @@ CREATE TABLE config.i18n_string (
 
 -- 950.data.seed-values.sql
 
-INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons, when monographic parts are available, this would be the option for indicating that no specific part is being requested.', 'Any Part');
+INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons; when monographic parts are available, this string provides contextual information about whether and how parts are consider for holds that do not request a specific mongraphic part.', 'All Parts');
 
 COMMIT;