@@ -130,22 +130,22 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI
130
130
String isbn = getFieldValue (rawResponse , "isbn" );
131
131
groupedWork .addIsbn (isbn , primaryFormat );
132
132
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
-
146
133
getAvailabilityStmt .setLong (1 , aspenId );
147
134
ResultSet availabilityRS = getAvailabilityStmt .executeQuery ();
148
135
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
+
149
149
boolean available = availabilityRS .getBoolean ("available" );
150
150
int ownedQty = availabilityRS .getInt ("ownedQty" );
151
151
itemInfo .setNumCopies (ownedQty );
@@ -193,10 +193,9 @@ void processRecord(AbstractGroupedWorkSolr groupedWork, String identifier, BaseI
193
193
scopingInfo .setLocallyOwned (true );
194
194
}
195
195
}
196
+ axis360Record .addItem (itemInfo );
196
197
}
197
198
availabilityRS .close ();
198
- axis360Record .addItem (itemInfo );
199
-
200
199
}
201
200
productRS .close ();
202
201
} catch (NullPointerException e ) {
0 commit comments