diff --git a/ramls/acq-models b/ramls/acq-models index e4f689161..b21f9479f 160000 --- a/ramls/acq-models +++ b/ramls/acq-models @@ -1 +1 @@ -Subproject commit e4f6891617f1e93b15abbbd10c492b24908d57b9 +Subproject commit b21f9479f43801b1872083c6edeada96e86ee6d2 diff --git a/src/main/java/org/folio/service/titles/TitlesService.java b/src/main/java/org/folio/service/titles/TitlesService.java index 52b7f3be5..97f32c40f 100644 --- a/src/main/java/org/folio/service/titles/TitlesService.java +++ b/src/main/java/org/folio/service/titles/TitlesService.java @@ -13,6 +13,7 @@ import java.util.Map; import java.util.function.Function; +import org.apache.commons.lang3.StringUtils; import org.folio.orders.utils.HelperUtils; import org.folio.rest.core.RestClient; import org.folio.rest.core.models.RequestContext; @@ -52,7 +53,7 @@ public Future createTitle(Title title, RequestContext requestContext) { } public Future<TitleCollection> getTitles(int limit, int offset, String query, RequestContext requestContext) { - return acquisitionsUnitsService.buildAcqUnitsCqlExprToSearchRecords("purchaseOrder.", requestContext) + return acquisitionsUnitsService.buildAcqUnitsCqlExprToSearchRecords(StringUtils.EMPTY, requestContext) .compose(acqUnitsCqlExpr -> { String resultQuery = acqUnitsCqlExpr; if (!isEmpty(query)) {