Ignore:
Timestamp:
2011-07-25T17:17:01+12:00 (13 years ago)
Author:
ak19
Message:

Correction to the commits made for ticket 770 which had introduced a bug whereby titles and other metadata were no longer being retrieved for normal search and browse operations (even though the changes for the commits got the special DSpace browse by titles feature to work).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractDocumentRetrieve.java

    r24254 r24334  
    248248        String offset = request_node.getAttribute(GSXML.NODE_MDOFFSET_ATT);
    249249        mdoffset = Integer.parseInt(offset);
    250        
    251         for(int x = 0; x < metadata_names_list.size(); x++) {
    252             String metaname = (String)metadata_names_list.get(x);
    253             if(metaname.indexOf("offset" + GSConstants.META_RELATION_SEP) != -1) {
    254             // append offset number to the metaname
    255             metaname = metaname.replace("offset"+GSConstants.META_RELATION_SEP, "offset"+mdoffset+GSConstants.META_RELATION_SEP);
    256             }
    257             customised_metadata_names_list.add(x, metaname);           
    258         }
    259         }
     250        }   
     251        for(int x = 0; x < metadata_names_list.size(); x++) {
     252        String metaname = (String)metadata_names_list.get(x);
     253        if(metaname.indexOf("offset" + GSConstants.META_RELATION_SEP) != -1) {
     254            // append offset number to the metaname
     255            metaname = metaname.replace("offset"+GSConstants.META_RELATION_SEP, "offset"+mdoffset+GSConstants.META_RELATION_SEP);
     256        }
     257        customised_metadata_names_list.add(x, metaname);           
     258        }
     259       
    260260       
    261261        boolean is_external_link = false;
Note: See TracChangeset for help on using the changeset viewer.