private static final String PROPERTY_PROTECT_NOMENCLATURAL_CACHE = "Protect Nomencl. Cache";
private static final String PROPERTY_TITLE = "Title";
private static final String PROPERTY_NOMENCLAT_TITLE = "Nomencl. Title";
+ private static final String PROPERTY_URI = "URI";
+ private static final String PROPERTY_JOURNAL = "Journal";
+ private static final String PROPERTY_PUBLICATION_YEAR = "Publication Year";
private static ReferenceEditorInput instance;
propertyKeysInternal.add(PROPERTY_PROTECT_NOMENCLATURAL_CACHE);
propertyKeysInternal.add(PROPERTY_TITLE);
propertyKeysInternal.add(PROPERTY_NOMENCLAT_TITLE);
+ propertyKeysInternal.add(PROPERTY_PUBLICATION_YEAR);
+ propertyKeysInternal.add(PROPERTY_JOURNAL);
+ propertyKeysInternal.add(PROPERTY_URI);
return propertyKeysInternal;
}
else if(property.equals(PROPERTY_NOMENCLAT_TITLE)){
return cdmBase.getAbbrevTitle();
}
+ else if(property.equals(PROPERTY_PUBLICATION_YEAR)){
+ if (cdmBase.getDatePublished() != null){
+ return cdmBase.getDatePublished().getYear();
+ }else {
+ return null;
+ }
+ }
+ else if(property.equals(PROPERTY_JOURNAL)){
+ if (cdmBase.getInReference() != null){
+ return cdmBase.getInReference().getTitleCache();
+ }else{
+ return null;
+ }
+
+ }
+ else if(property.equals(PROPERTY_URI)){
+ if (cdmBase.getUri() != null){
+ return cdmBase.getUri().toString();
+ }else{
+ return null;
+ }
+ }
return super.getPropertyValue(cdmBase, property);
}