Skip to content

Commit e4ab968

Browse files
authored
Merge pull request Aspen-Discovery#1774 from K-Alette/24.05.00
Axis360 Availability
2 parents c09c70a + a3bee1a commit e4ab968

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

code/reindexer/src/org/aspen_discovery/reindexer/Axis360Processor.java

+14-15
Original file line numberDiff line numberDiff line change
@@ -130,22 +130,22 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI
130130
String isbn = getFieldValue(rawResponse, "isbn");
131131
groupedWork.addIsbn(isbn, primaryFormat);
132132

133-
ItemInfo itemInfo = new ItemInfo();
134-
itemInfo.seteContentSource("Boundless");
135-
itemInfo.setIsEContent(true);
136-
itemInfo.setShelfLocation("Online Boundless Collection");
137-
itemInfo.setDetailedLocation("Online Boundless Collection");
138-
itemInfo.setCallNumber("Online Boundless");
139-
itemInfo.setSortableCallNumber("Online Boundless");
140-
itemInfo.setFormat(primaryFormat);
141-
itemInfo.setFormatCategory(formatCategory);
142-
143-
Date dateAdded = new Date(productRS.getLong("dateFirstDetected") * 1000);
144-
itemInfo.setDateAdded(dateAdded);
145-
146133
getAvailabilityStmt.setLong(1, aspenId);
147134
ResultSet availabilityRS = getAvailabilityStmt.executeQuery();
148135
while (availabilityRS.next()) {
136+
ItemInfo itemInfo = new ItemInfo();
137+
itemInfo.seteContentSource("Boundless");
138+
itemInfo.setIsEContent(true);
139+
itemInfo.setShelfLocation("Online Boundless Collection");
140+
itemInfo.setDetailedLocation("Online Boundless Collection");
141+
itemInfo.setCallNumber("Online Boundless");
142+
itemInfo.setSortableCallNumber("Online Boundless");
143+
itemInfo.setFormat(primaryFormat);
144+
itemInfo.setFormatCategory(formatCategory);
145+
146+
Date dateAdded = new Date(productRS.getLong("dateFirstDetected") * 1000);
147+
itemInfo.setDateAdded(dateAdded);
148+
149149
boolean available = availabilityRS.getBoolean("available");
150150
int ownedQty = availabilityRS.getInt("ownedQty");
151151
itemInfo.setNumCopies(ownedQty);
@@ -193,10 +193,9 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI
193193
scopingInfo.setLocallyOwned(true);
194194
}
195195
}
196+
axis360Record.addItem(itemInfo);
196197
}
197198
availabilityRS.close();
198-
axis360Record.addItem(itemInfo);
199-
200199
}
201200
productRS.close();
202201
} catch (NullPointerException e) {

code/web/release_notes/24.05.00.MD

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@
8080
### Events
8181
- Added new events integration with Assabet Interactive (*KL*)
8282

83+
### Boundless Updates
84+
- Fix issue with availability when there are multiple settings for Boundless (Ticket 114846) (*KL*)
85+
8386
### Other Updates
8487
- Added a toggle that allows/disallows masquerading using a username (Ticket 130373) (*KL*)
85-
-
88+
8689
#### New Settings
8790
- Library Systems > ILS/Account Integration > Masquerade Mode > Allow Masquerading Using Username
8891

0 commit comments

Comments
 (0)