if(Log.isDebugEnabled(Geonet.SRU_SEARCH)) Log.debug(Geonet.SRU_SEARCH,"Processing attrplustermnode:"+aptn);
// Look up conversion information for source node
// set default relation context set
if ( aptn.getRelation() != null ) {
AttrValue relation = (AttrValue)aptn.getRelation();
if ( relation !=null && (relation.getNamespaceIdentifier() == null || force_def )) {
relation.setNamespaceIdentifier(this.default_rel_namespace);
if(Log.isDebugEnabled(Geonet.SRU_SEARCH))
Log.debug(Geonet.SRU_SEARCH,"Processing relation :"+relation);
}
}
// set default attribute context set
Object ap_node = aptn.getAccessPoint();
if ( ap_node != null ) {
AttrValue qualifier = (AttrValue)ap_node;
if ( qualifier != null && ( qualifier.getNamespaceIdentifier() == null || force_def )) {
qualifier.setNamespaceIdentifier(this.default_attr_namespace);
if(Log.isDebugEnabled(Geonet.SRU_SEARCH))
Log.debug(Geonet.SRU_SEARCH,"Processing AccessPoint :"+qualifier);
}
// FIX incorrect behavior of very old CQL (0.0.7) library
if ( qualifier != null &&
qualifier.getNamespaceIdentifier().equalsIgnoreCase("srw") &&
qualifier.getValue().equalsIgnoreCase("serverChoice")) {
if(Log.isDebugEnabled(Geonet.SRU_SEARCH))
Log.debug(Geonet.SRU_SEARCH,"Setting srw context set to cql for serverChoice");
qualifier.setNamespaceIdentifier("cql");
}
}
// set default structure context set
if ( aptn.getStructure() != null ) {
AttrValue structure = (AttrValue)aptn.getStructure();
if ( structure !=null && (structure.getNamespaceIdentifier() == null || force_def )) {
structure.setNamespaceIdentifier(this.default_struct_namespace);
if(Log.isDebugEnabled(Geonet.SRU_SEARCH))
Log.debug(Geonet.SRU_SEARCH,"Processing structure :"+structure);
}
}