use of org.folio.rest.jaxrs.model.MarcBibCollection in project mod-source-record-storage by folio-org.
the class RecordDaoImpl method toMarcBibCollection.
private MarcBibCollection toMarcBibCollection(QueryResult result) {
MarcBibCollection marcBibCollection = new MarcBibCollection();
List<String> ids = new ArrayList<>();
result.stream().map(res -> asRow(res.unwrap())).forEach(row -> ids.add(row.getString(HRID)));
if (!ids.isEmpty()) {
marcBibCollection.withInvalidMarcBibIds(ids);
}
return marcBibCollection;
}
Aggregations