Project

General

Profile

« Previous | Next » 

Revision 9248

[re]register DOI when system metadata is updated (typically access policy). https://projects.ecoinformatics.org/ecoinfo/issues/6796

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1393 1393
                throw sf;
1394 1394
            }
1395 1395
            
1396
            // attempt to re-register the identifier (it checks if it is a doi)
1397
            try {
1398
    			DOIService.getInstance().registerDOI(newSysMeta);
1399
    		} catch (Exception e) {
1400
    			logMetacat.warn("Could not [re]register DOI: " + e.getMessage(), e);
1401
    		}
1402
            
1396 1403
            // submit for indexing
1397 1404
            try {
1398 1405
				MetacatSolrIndex.getInstance().submit(newSysMeta.getIdentifier(), newSysMeta, null, true);
......
2198 2205
          } catch (Exception e) {
2199 2206
              logMetacat.error("Can't update the systemmetadata of pid "+pid.getValue()+" in CNs since "+e.getMessage());
2200 2207
          }
2208
          
2209
          // attempt to re-register the identifier (it checks if it is a doi)
2210
          try {
2211
        	  DOIService.getInstance().registerDOI(sysmeta);
2212
          } catch (Exception e) {
2213
  			logMetacat.warn("Could not [re]register DOI: " + e.getMessage(), e);
2214
          }
2201 2215
      }
2202 2216
      return success;
2203 2217
    }

Also available in: Unified diff