Skip to content

Commit

Permalink
Merge pull request #1261 from openlibraryenvironment/OLE-9426
Browse files Browse the repository at this point in the history
OLE-9426 : Batch deletes is allowing bibs to b deleted where the bib has an item on loan
  • Loading branch information
NSSuresh11 authored Mar 12, 2019
2 parents 00e1f81 + dd84f6e commit 1c7eb98
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ private boolean checkForAcquisitionAndDeliverLinks(String bibId, SolrDocumentLis
batchDeleteMap.put(OleNGConstants.FAILURE, OleNGConstants.ERR_BIB_HAS_REQ_OR_PO);
return true;
} else {
itemSolrDocumentList.addAll(getSolrDocsForBibIdByDocType(bibId, DocType.ITEM.getCode()));
List<String> itemIds = getItemIdsFromSolrDocs(itemSolrDocumentList);
if (CollectionUtils.isNotEmpty(itemIds)) {
for (String itemId : itemIds) {
Expand Down

0 comments on commit 1c7eb98

Please sign in to comment.