Skip to content

Commit

Permalink
Axis360 Availability
Browse files Browse the repository at this point in the history
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
  • Loading branch information
K-Alette committed Apr 23, 2024
1 parent 0346162 commit a3bee1a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion code/web/release_notes/24.05.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a3bee1a

Please sign in to comment.