public void finishLoadingDetail(@NotNull Resource resource,@NotNull Eml eml,@NotNull BigDecimal version){
  String name=resource.getShortname();
  File dwcaFile=dataDir.resourceDwcaFile(name,version);
  if (dwcaFile.exists()) {
    dwcaSizeForVersion=FileUtils.formatSize(dwcaFile.length(),0);
  }
 else {
    metadataOnly=true;
  }
  File emlFile=dataDir.resourceEmlFile(name,version);
  emlSizeForVersion=FileUtils.formatSize(emlFile.length(),0);
  File rtfFile=dataDir.resourceRtfFile(name,version);
  rtfSizeForVersion=FileUtils.formatSize(rtfFile.length(),0);
  for (  VersionHistory history : resource.getVersionHistory()) {
    if (version.compareTo(new BigDecimal(history.getVersion())) == 0) {
      recordsPublishedForVersion=history.getRecordsPublished();
    }
  }
  if (metadataOnly && recordsPublishedForVersion > 0) {
    addActionWarning(getText("portal.resource.version.notArchived.count",new String[]{String.valueOf(recordsPublishedForVersion)}));
  }
  if (eml.getTaxonomicCoverages() != null) {
    organizedCoverages=constructOrganizedTaxonomicCoverages(eml.getTaxonomicCoverages());
  }
  roles=new LinkedHashMap<String,String>();
  roles.putAll(vocabManager.getI18nVocab(Constants.VOCAB_URI_ROLES,getLocaleLanguage(),false));
  preservationMethods=new LinkedHashMap<String,String>();
  preservationMethods.putAll(vocabManager.getI18nVocab(Constants.VOCAB_URI_PRESERVATION_METHOD,getLocaleLanguage(),false));
  languages=vocabManager.getI18nVocab(Constants.VOCAB_URI_LANGUAGE,getLocaleLanguage(),true);
  countries=new LinkedHashMap<String,String>();
  countries.putAll(vocabManager.getI18nVocab(Constants.VOCAB_URI_COUNTRY,getLocaleLanguage(),true));
  ranks=new LinkedHashMap<String,String>();
  ranks.putAll(vocabManager.getI18nVocab(Constants.VOCAB_URI_RANKS,getLocaleLanguage(),false));
  frequencies=new LinkedHashMap<String,String>();
  frequencies.putAll(vocabManager.getI18nVocab(Constants.VOCAB_URI_UPDATE_FREQUENCIES,getLocaleLanguage(),false));
}

public void finishLoadingDetail ( @ NotNull Resource resource , @ NotNull Eml eml , @ NotNull BigDecimal version ) { String name = resource . getShortname ( ) ; File dwcaFile = dataDir . resourceDwcaFile ( name , version ) ; if ( dwcaFile . exists ( ) ) { dwcaSizeForVersion = FileUtils . formatSize ( dwcaFile . length ( ) , 0 ) ; } else { metadataOnly = true ; } File emlFile = dataDir . resourceEmlFile ( name , version ) ; emlSizeForVersion = FileUtils . formatSize ( emlFile . length ( ) , 0 ) ; File rtfFile = dataDir . resourceRtfFile ( name , version ) ; rtfSizeForVersion = FileUtils . formatSize ( rtfFile . length ( ) , 0 ) ; for ( VersionHistory history : resource . getVersionHistory ( ) ) { if ( version . compareTo ( new BigDecimal ( history . getVersion ( ) ) ) == 0 ) { recordsPublishedForVersion = history . getRecordsPublished ( ) ; } } if ( metadataOnly && recordsPublishedForVersion > 0 ) { addActionWarning ( getText ( "portal.resource.version.notArchived.count" , new String [ ] { String . valueOf ( recordsPublishedForVersion ) } ) ) ; } if ( eml . getTaxonomicCoverages ( ) != null ) { organizedCoverages = constructOrganizedTaxonomicCoverages ( eml . getTaxonomicCoverages ( ) ) ; } roles = new LinkedHashMap < String , String > ( ) ; roles . putAll ( vocabManager . getI18nVocab ( Constants . VOCAB_URI_ROLES , getLocaleLanguage ( ) , false ) ) ; preservationMethods = new LinkedHashMap < String , String > ( ) ; preservationMethods . putAll ( vocabManager . getI18nVocab ( Constants . VOCAB_URI_PRESERVATION_METHOD , getLocaleLanguage ( ) , false ) ) ; languages = vocabManager . getI18nVocab ( Constants . VOCAB_URI_LANGUAGE , getLocaleLanguage ( ) , true ) ; countries = new LinkedHashMap < String , String > ( ) ; countries . putAll ( vocabManager . getI18nVocab ( Constants . VOCAB_URI_COUNTRY , getLocaleLanguage ( ) , true ) ) ; ranks = new LinkedHashMap < String , String > ( ) ; ranks . putAll ( vocabManager . getI18nVocab ( Constants . VOCAB_URI_RANKS , getLocaleLanguage ( ) , false ) ) ; frequencies = new LinkedHashMap < String , String > ( ) ; frequencies . putAll ( vocabManager . getI18nVocab ( Constants . VOCAB_URI_UPDATE_FREQUENCIES , getLocaleLanguage ( ) , false ) ) ; }
finish loading all details shown on resource homepage .
