Changeset 29066

Show
Ignore:
Timestamp:
19.05.2014 13:24:32 (6 years ago)
Author:
kjdon
Message:

small code tidy

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIReceptionist.java

    r28987 r29066  
    778778     
    779779      for(int i=0; i<formats.getLength(); i++) { 
    780     Element meta_fmt = lmf_doc.createElement(OAIXML.METADATA_FORMAT); 
    781     Element first_meta_format = (Element)formats.item(i); 
    782     //the element also contains mappings, but we don't want them 
    783     meta_fmt.appendChild(lmf_doc.importNode(GSXML.getChildByTagName(first_meta_format, OAIXML.METADATA_PREFIX), true)); 
    784     meta_fmt.appendChild(lmf_doc.importNode(GSXML.getChildByTagName(first_meta_format, OAIXML.SCHEMA), true)); 
    785     meta_fmt.appendChild(lmf_doc.importNode(GSXML.getChildByTagName(first_meta_format, OAIXML.METADATA_NAMESPACE), true)); 
    786     list_metadata_formats.appendChild(meta_fmt); 
    787       } 
     780    Element f = OAIXML.getMetadataFormatShort(lmf_doc, (Element)formats.item(i)); 
     781    list_metadata_formats.appendChild(f); 
     782     } 
    788783      this.listmetadataformats_response = getMessage(lmf_doc, list_metadata_formats); 
    789784      return this.listmetadataformats_response;