Ignore:
Timestamp:
2012-07-25T21:37:04+12:00 (12 years ago)
Author:
ak19
Message:
  1. Fixing the java code to handle gsf:equivlinkgs3 again. The code had recently been changed to remove the gsf:meta attribute of multiple=true to use attribute pos=index|first|last instead. But when multiple=true in the past, _all_ would be prefixed to the metadata_sep and metadata, and this still needed to be processed. 2. Added the XSLT to deal with gsf:equivlinkgs3 into the default skin (previously this was only added into gs3-library which has now become the basic skin). With changes 1 and 2, the parts of the DSpace tutorial which deal with equivlink now work for GS3 (again).
File:
1 edited

Legend:

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

    r25967 r26023  
    411411        // check for pos on the front, indicating which piece of meta the user wants
    412412        // pos can be "first", "last" or the position value of the requested piece of metadata
    413         if (temp.startsWith(GSConstants.META_POS))
    414         {
     413        if (temp.startsWith(GSConstants.META_POS) || temp.equals("all"))
     414        {
     415            if (temp.startsWith(GSConstants.META_POS)) {
    415416            temp = temp.substring(GSConstants.META_POS.length());
    416417            pos = temp;
     418            }
    417419           
    418420            index = metadata.indexOf(GSConstants.META_RELATION_SEP);
Note: See TracChangeset for help on using the changeset viewer.