Skip to content

Commit

Permalink
OLE-9426 : Batch deletes is allowing bibs to b deleted where the bib …
Browse files Browse the repository at this point in the history
…has an item on loan
  • Loading branch information
NSSuresh111975 committed Mar 12, 2019
1 parent ed72139 commit dd84f6e
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 dd84f6e

Please sign in to comment.