Skip to content

Commit

Permalink
Merge branch 'alpha' into SCRUM-2726
Browse files Browse the repository at this point in the history
  • Loading branch information
oblodgett authored Jan 7, 2025
2 parents 0ba06f7 + 65ccb38 commit a304f75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void cleanUpFileHistories() {
}
}

@Scheduled(cron = "0 0 0 ? * SUN")
//@Scheduled(cron = "0 0 0 ? * SUN")
public void runMassIndexerEverything() {
// Not sure what is going to happen when this time's out but should run anyway
// Defaults taken from the API endpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Reference extends InformationContentEntity {
@EqualsAndHashCode.Include
private List<CrossReference> crossReferences;

@JsonView({View.FieldsOnly.class})
@JsonView({View.FieldsOnly.class, View.ForPublic.class})
@FullTextField(analyzer = "autocompleteAnalyzer", searchAnalyzer = "autocompleteSearchAnalyzer")
@KeywordField(name = "shortCitation_keyword", aggregable = Aggregable.YES, sortable = Sortable.YES, searchable = Searchable.YES, normalizer = "sortNormalizer")
@Column(columnDefinition = "TEXT")
Expand Down Expand Up @@ -82,7 +82,7 @@ private String getReferenceID(boolean pubmedIdFirst) {
if (!pubmedIdFirst) {
String pmid = "PMID";
primaryXrefOrder = ReferenceConstants.primaryXrefOrder.stream()
.filter(s -> s.equals(pmid)).toList();
.filter(s -> !s.equals(pmid)).toList();
boolean success = primaryXrefOrder.size() < ReferenceConstants.primaryXrefOrder.size();
if (!success) {
throw new RuntimeException("Could not find " + pmid + " in ReferenceConstants.primaryXrefOrder");
Expand Down

0 comments on commit a304f75

Please sign in to comment.