From a3bee1a287e1d40d05080a8a4a478b6dd533c267 Mon Sep 17 00:00:00 2001 From: Kodi Date: Tue, 23 Apr 2024 14:50:18 -0700 Subject: [PATCH] Axis360 Availability Updated where we set itemInfo in Axis360Processor.java to fix issue with availability when we have lots of different settings Updated release notes Tested on my local with single work index --- .../reindexer/Axis360Processor.java | 29 +++++++++---------- code/web/release_notes/24.05.00.MD | 5 +++- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/code/reindexer/src/org/aspen_discovery/reindexer/Axis360Processor.java b/code/reindexer/src/org/aspen_discovery/reindexer/Axis360Processor.java index 16dcaf8efb..e3df4f88b6 100644 --- a/code/reindexer/src/org/aspen_discovery/reindexer/Axis360Processor.java +++ b/code/reindexer/src/org/aspen_discovery/reindexer/Axis360Processor.java @@ -130,22 +130,22 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI String isbn = getFieldValue(rawResponse, "isbn"); groupedWork.addIsbn(isbn, primaryFormat); - ItemInfo itemInfo = new ItemInfo(); - itemInfo.seteContentSource("Boundless"); - itemInfo.setIsEContent(true); - itemInfo.setShelfLocation("Online Boundless Collection"); - itemInfo.setDetailedLocation("Online Boundless Collection"); - itemInfo.setCallNumber("Online Boundless"); - itemInfo.setSortableCallNumber("Online Boundless"); - itemInfo.setFormat(primaryFormat); - itemInfo.setFormatCategory(formatCategory); - - Date dateAdded = new Date(productRS.getLong("dateFirstDetected") * 1000); - itemInfo.setDateAdded(dateAdded); - getAvailabilityStmt.setLong(1, aspenId); ResultSet availabilityRS = getAvailabilityStmt.executeQuery(); while (availabilityRS.next()) { + ItemInfo itemInfo = new ItemInfo(); + itemInfo.seteContentSource("Boundless"); + itemInfo.setIsEContent(true); + itemInfo.setShelfLocation("Online Boundless Collection"); + itemInfo.setDetailedLocation("Online Boundless Collection"); + itemInfo.setCallNumber("Online Boundless"); + itemInfo.setSortableCallNumber("Online Boundless"); + itemInfo.setFormat(primaryFormat); + itemInfo.setFormatCategory(formatCategory); + + Date dateAdded = new Date(productRS.getLong("dateFirstDetected") * 1000); + itemInfo.setDateAdded(dateAdded); + boolean available = availabilityRS.getBoolean("available"); int ownedQty = availabilityRS.getInt("ownedQty"); itemInfo.setNumCopies(ownedQty); @@ -193,10 +193,9 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI scopingInfo.setLocallyOwned(true); } } + axis360Record.addItem(itemInfo); } availabilityRS.close(); - axis360Record.addItem(itemInfo); - } productRS.close(); } catch (NullPointerException e) { diff --git a/code/web/release_notes/24.05.00.MD b/code/web/release_notes/24.05.00.MD index a07e3a12ea..e1511d0f8e 100644 --- a/code/web/release_notes/24.05.00.MD +++ b/code/web/release_notes/24.05.00.MD @@ -80,9 +80,12 @@ ### Events - Added new events integration with Assabet Interactive (*KL*) +### Boundless Updates +- Fix issue with availability when there are multiple settings for Boundless (Ticket 114846) (*KL*) + ### Other Updates - Added a toggle that allows/disallows masquerading using a username (Ticket 130373) (*KL*) -- + #### New Settings - Library Systems > ILS/Account Integration > Masquerade Mode > Allow Masquerading Using Username