8686import jakarta .ejb .Stateless ;
8787import jakarta .ejb .TransactionAttribute ;
8888
89- import static edu .harvard .iq .dataverse .DatasetField .NA_VALUE ;
9089import static jakarta .ejb .TransactionAttributeType .REQUIRES_NEW ;
9190
9291import jakarta .inject .Inject ;
@@ -267,7 +266,7 @@ public Future<String> indexDataverse(Dataverse dataverse, boolean processPaths)
267266 Set <String > langs = settingsService .getConfiguredLanguages ();
268267 for (ControlledVocabularyValue dataverseSubject : dataverse .getDataverseSubjects ()) {
269268 String subject = dataverseSubject .getStrValue ();
270- if (!subject .equals (NA_VALUE )) {
269+ if (!subject .equals (DatasetField . NA_VALUE )) {
271270 // Index in all used languages (display and metadata languages
272271 for (String locale : langs ) {
273272 solrInputDocument .addField (SearchFields .DATAVERSE_SUBJECT , dataverseSubject .getLocaleStrValue (locale ));
@@ -1062,7 +1061,6 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
10621061 if (datasetVersion .isInReview ()) {
10631062 solrInputDocument .addField (SearchFields .PUBLICATION_STATUS , IN_REVIEW_STRING );
10641063 }
1065-
10661064 CurationStatus status = datasetVersion .getCurrentCurationStatus ();
10671065 if (status != null && Strings .isNotBlank (status .getLabel ())) {
10681066 solrInputDocument .addField (SearchFields .CURATION_STATUS , status .getLabel ());
@@ -1260,7 +1258,7 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
12601258 */
12611259 if (dsf .getControlledVocabularyValues ().isEmpty ()) {
12621260 for (DatasetFieldValue dfv : dsf .getDatasetFieldValues ()) {
1263- if (dfv .getValue () == null || dfv .getValue ().equals (NA_VALUE )) {
1261+ if (dfv .getValue () == null || dfv .getValue ().equals (DatasetField . NA_VALUE )) {
12641262 continue ;
12651263 }
12661264 solrInputDocument .addField (solrFieldSearchable , dfv .getValue ());
@@ -1271,7 +1269,7 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
12711269 }
12721270 } else {
12731271 for (ControlledVocabularyValue controlledVocabularyValue : dsf .getControlledVocabularyValues ()) {
1274- if (controlledVocabularyValue .getStrValue ().equals (NA_VALUE )) {
1272+ if (controlledVocabularyValue .getStrValue ().equals (DatasetField . NA_VALUE )) {
12751273 continue ;
12761274 }
12771275
@@ -1308,7 +1306,7 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
13081306 }
13091307 } else {
13101308 var values = dsf .getDisplayValues (); // for proper display of facets with '
1311- values .removeAll (Arrays .asList (NA_VALUE ));
1309+ values .removeAll (Arrays .asList (DatasetField . NA_VALUE ));
13121310 solrInputDocument .addField (solrFieldFacetable , values );
13131311 }
13141312 }
0 commit comments