commonPart.setLabel(headerLabel);
if(logger.isDebugEnabled()){
- logger.debug("to be created, taxonomy common ", taxonomy, TaxonCommon.class);
+ logger.debug("to be created, taxon common ", taxonomy, TaxonCommon.class);
}
return multipart;
commonPart.setLabel(headerLabel);
if(logger.isDebugEnabled()){
- logger.debug("to be created, taxonomy common ", commonPartXML);
+ logger.debug("to be created, Taxon common ", commonPartXML);
}
return multipart;
}
/**
- * Creates the taxonomy ref name.
+ * Creates the taxon ref name.
*
* @param taxonomyAuthRefName the Taxonomyauthority ref name
- * @param shortId the taxonomy shortIdentifier
+ * @param shortId the taxon shortIdentifier
* @param displaySuffix displayName to be appended, if non-null
* @return the string
*/
public static String createTaxonomyRefName(
String taxonomyAuthRefName, String shortId, String displaySuffix) {
- String refName = taxonomyAuthRefName+":taxonomy:name("+shortId+")";
+ String refName = taxonomyAuthRefName+":taxon:name("+shortId+")";
if(displaySuffix!=null&&!displaySuffix.isEmpty())
refName += "'"+displaySuffix+"'";
return refName;
public static String extractId(ClientResponse<Response> res) {
MultivaluedMap<String, Object> mvm = res.getMetadata();
- String uri = (String) ((ArrayList<Object>) mvm.get("Taxonomy")).get(0);
+ String uri = (String) ((ArrayList<Object>) mvm.get("Location")).get(0);
if(logger.isDebugEnabled()){
logger.debug("extractId:uri=" + uri);
}
/**
* Common part schema label
*/
- private static final String COMMON_PART_LABEL = "taxonomy_common";
+ private static final String COMMON_PART_LABEL = "taxon_common";
public TaxonDocumentModelHandler() {
super(COMMON_PART_LABEL);
* @throws Exception the exception
*/
private void handleDisplayNames(DocumentModel docModel) throws Exception {
- String commonPartLabel = getServiceContext().getCommonPartLabel("taxonomy");
+ String commonPartLabel = getServiceContext().getCommonPartLabel("taxon");
Boolean displayNameComputed = (Boolean) docModel.getProperty(commonPartLabel,
TaxonomyJAXBSchema.DISPLAY_NAME_COMPUTED);
Boolean shortDisplayNameComputed = (Boolean) docModel.getProperty(commonPartLabel,
commonList.setFieldsReturned("displayName|refName|shortIdentifier|uri|csid");
List<TaxonCommonList.TaxonListItem> list = coList.getTaxonListItem();
Iterator<DocumentModel> iter = wrapDoc.getWrappedObject().iterator();
- String commonPartLabel = getServiceContext().getCommonPartLabel(
- "taxonomy");
+ String commonPartLabel = getServiceContext().getCommonPartLabel("taxon");
while (iter.hasNext()) {
DocumentModel docModel = iter.next();
TaxonListItem ilistItem = new TaxonListItem();