Skip to content

Commit

Permalink
DIS-231 Add notification to Koha exporter if offline mode is enabled
Browse files Browse the repository at this point in the history
to test:
* put aspen in offline mode: https://help.aspendiscovery.org/help/admin/SystemAdministration#Cell-1804-PanelBody
* enter the adb shell and run the command aspen_koha_import
* you should see a line in the output about the ILS being in offline mode
* log into aspen and navigate to the ILS export log
* the same note about the ILS being in offline mode should appear in the latest entry here as well.
  • Loading branch information
lathomas64 committed Jan 16, 2025
1 parent b9fd992 commit 3e040ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public static void main(String[] args) {

//Check to see if the ILS connection is offline and don't index
if (isOffline()) {
logEntry.addNote("ILS is offline, won't index.");
logEntry.saveResults();
System.exit(0);
}

Expand Down
3 changes: 3 additions & 0 deletions code/web/release_notes/25.02.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
//alexander

//chloe

//imani
- added a note to KohaExportMain when it tries to run in offline Mode and attempt to save the log before exiting
### WebBuilder Updates
- Fixed an issue preventing administrators from saving a 'URL to link image to' from the 'WebBuilder Portal Cells' page. (*CZ*)

Expand Down

0 comments on commit 3e040ee

Please sign in to comment.