Skip to content

Commit aeae0a2

Browse files
committed
Sierra updates with MARC Holdings and copies from web pac
1 parent 80ccbb6 commit aeae0a2

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed
578 Bytes
Binary file not shown.

code/sierra_export_api/src/com/turning_leaf_technologies/sierra/SierraExportAPIMain.java

+13-7
Original file line numberDiff line numberDiff line change
@@ -459,17 +459,18 @@ private static int updateBibs(SierraInstanceInformation sierraInstanceInformatio
459459
private static void getBibsWithHoldings(Connection sierraConn) {
460460
bibsWithHoldings.clear();
461461
try {
462-
PreparedStatement bibHoldingsStmt = sierraConn.prepareStatement("select distinct(record_num) as record_num from sierra_view.bib_record_holding_record_link INNER JOIN sierra_view.record_metadata ON bib_record_id = record_metadata.id where record_type_code = 'b'", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
463-
ResultSet bibHoldingsRS = bibHoldingsStmt.executeQuery();
464-
while (bibHoldingsRS.next()){
465-
String bibId = bibHoldingsRS.getString("record_num");
466-
//Don't need the .b and checksum for this
467-
bibsWithHoldings.add(bibId);
468-
}
462+
PreparedStatement bibHoldingsStmt = sierraConn.prepareStatement("select distinct(record_num) as record_num from sierra_view.bib_record_holding_record_link INNER JOIN sierra_view.record_metadata ON bib_record_id = record_metadata.id where record_type_code = 'b'", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
463+
ResultSet bibHoldingsRS = bibHoldingsStmt.executeQuery();
464+
while (bibHoldingsRS.next()){
465+
String bibId = bibHoldingsRS.getString("record_num");
466+
//Don't need the .b and checksum for this
467+
bibsWithHoldings.add(bibId);
468+
}
469469
bibHoldingsRS.close();
470470
} catch (Exception e) {
471471
logger.error("Unable to get bibs with holdings from Sierra", e);
472472
}
473+
473474
logEntry.addNote("Finished getting bibs with holdings " + dateTimeFormatter.format(new Date()));
474475
}
475476

@@ -1064,6 +1065,11 @@ private static boolean updateMarcAndRegroupRecordId(SierraInstanceInformation si
10641065
holdingField.addSubfield(marcFactory.newSubfield(subfield.getString("tag").charAt(0), subfield.getString("content")));
10651066
}
10661067
holdingField.addSubfield(marcFactory.newSubfield('6', Integer.toString(holdingId)));
1068+
}else if (curVarField.has("fieldTag") && curVarField.get("fieldTag").equals("h")) {
1069+
DataField holdingField = marcFactory.newDataField("866", ' ', ' ');
1070+
marcRecord.addVariableField(holdingField);
1071+
holdingField.addSubfield(marcFactory.newSubfield('a', curVarField.getString("content")));
1072+
holdingField.addSubfield(marcFactory.newSubfield('6', Integer.toString(holdingId)));
10671073
}
10681074
}
10691075
//Location is in the fixed fields

code/web/Drivers/Millennium.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,11 @@ public function getIssueSummaries($id) {
864864
$value = $locationParts[1];
865865
}
866866
} elseif ($label == 'holdings') {
867-
//Change the lable to avoid conflicts with actual holdings
867+
//Change the label to avoid conflicts with actual holdings
868868
$label = 'holdingStatement';
869+
} elseif ($label == 'itemLoc') {
870+
//Change the label for consistency
871+
$label = 'location';
869872
}
870873
$issueSummary[$label] = $value;
871874
}

code/web/release_notes/24.04.00.MD

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
### Marc holdings updates
1616
- Update logic for determining the display name for an owning library for a marc holding. (Ticket 124256) (*MDN*)
1717

18+
### Sierra Updates
19+
- Update Sierra Export to handle MARC holdings that do not have a MARC tag associated with them. (Ticket 124256) (*MDN*)
20+
- Fix loading location for additional copies. (Ticket 124256) (*MDN*)
21+
1822
### Theme Updates
1923
- Replace Arial font with Arimo font. (Ticket 129721) (*MDN*)
2024

0 commit comments

Comments
 (0)