LP#1729620 Follow-up bugfixes
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 25 Aug 2021 21:29:53 +0000 (14:29 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Mon, 28 Mar 2022 02:57:21 +0000 (19:57 -0700)
* Perl no longer allows the `keys` function to take scalar expressions
* Typo in service name in opensrf_core example config file
* Added oai schema script to the manifest file so that it is run as part of installation
* Unnecessary sigil

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/opensrf_core.xml.example
Open-ILS/src/perlmods/lib/OpenILS/WWW/OAI.pm
Open-ILS/src/sql/Pg/sql_file_manifest
docs/RELEASE_NOTES_NEXT/OAI2/new_oai_opensrf_service.adoc

index 3c0d366..1a09e9e 100644 (file)
@@ -30,7 +30,7 @@ Example OpenSRF bootstrap configuration file for Evergreen
           <service>open-ils.courses</service>
           <service>open-ils.curbside</service>
           <service>open-ils.fielder</service>
-          <service>openils.oai</service>
+          <service>open-ils.oai</service>
           <service>open-ils.pcrud</service>
           <service>open-ils.permacrud</service>
           <service>open-ils.reporter</service>
index 448847e..0ca150c 100644 (file)
@@ -231,7 +231,7 @@ sub identify {
 sub listMetadataFormats {
 
     my $response = HTTP::OAI::ListMetadataFormats->new();
-    foreach my $metadataPrefix (keys $oai_metadataformats) {
+    foreach my $metadataPrefix (keys %$oai_metadataformats) {
         my $metadata_format = $oai_metadataformats->{$metadataPrefix} ;
         $response->metadataFormat( HTTP::OAI::MetadataFormat->new(
            metadataPrefix    => $metadataPrefix,
@@ -250,7 +250,7 @@ sub listSets {
 
     if ($oai_sets) {
         my $response = HTTP::OAI::ListSets->new( );
-        foreach my $key (keys $oai_sets) {
+        foreach my $key (keys %$oai_sets) {
             my $set = $oai_sets->{$key} ;
             if ( $set && $set->{setSpec} && $set->{record_class} eq $record_class ) {
                 $response->set(
index e4f9152..97c478c 100644 (file)
@@ -48,6 +48,7 @@ FTS_CONFIG_FILE
 400.schema.action_trigger.sql
 
 500.view.cross-schema.sql
+600.schema.oai.sql
 
 800.fkeys.sql
 
index 495ba5f..c03ddcb 100644 (file)
@@ -101,7 +101,7 @@ Add the service to the public router in your opensrf_core.xml
                 <name>router</name>
                 <domain>public.realm</domain>
                 <services>
-                    <service>openils.oai</service>
+                    <service>open-ils.oai</service>
                     ...
 ```