Skip to content

Commit

Permalink
Fixed flow in controller #12
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Feb 9, 2019
1 parent c7a0013 commit b743bc7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ protected void getByQuery(
return;
}

if (isNotBlank(jtitle) && isNotBlank(volume) && isNotBlank(firstPage)) {
LOGGER.debug("Match with journal string (without first page)");
if (isNotBlank(jtitle) && isNotBlank(firstAuthor) && isNotBlank(volume) && isNotBlank(firstPage)) {
LOGGER.debug("Match with journal string (with first page)");
// processed = true;
lookupEngine.retrieveByJournalMetadataAsync(jtitle, volume, firstPage, atitle, firstAuthor, postValidate, matchingDocument -> {
if (matchingDocument.isException()) {
Expand All @@ -284,8 +284,8 @@ protected void getByQuery(
return;
}

if (isNotBlank(jtitle) && isNotBlank(firstAuthor) && isNotBlank(volume) && isNotBlank(firstPage)) {
LOGGER.debug("Match with journal string (with first page)");
if (isNotBlank(jtitle) && isNotBlank(volume) && isNotBlank(firstPage)) {
LOGGER.debug("Match with journal string (without first author)");
// processed = true;
lookupEngine.retrieveByJournalMetadataAsync(jtitle, volume, firstPage, atitle, firstAuthor, postValidate, matchingDocument -> {
if (matchingDocument.isException()) {
Expand Down

0 comments on commit b743bc7

Please sign in to comment.