Changeset 2791 for FCSSimpleEndpoint


Ignore:
Timestamp:
04/10/13 11:02:50 (11 years ago)
Author:
oschonef
Message:
  • don't add @pid to non-recursive resource info enumeration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/SimpleEndpointSearchEngineBase.java

    r2790 r2791  
    415415            }
    416416        }
    417         writer.writeAttribute("pid", resourceInfo.getPid());
     417        if (recursive) {
     418            /*
     419             * HACK: only output @pid for recursive (= explain) requests.
     420             * This should be revisited, if we decide to go for the explain
     421             * style enumeration of resources.
     422             */
     423            writer.writeAttribute("pid", resourceInfo.getPid());
     424        }
    418425        if (resourceInfo.hasSubResources()) {
    419426            writer.writeAttribute("hasSubResources", "true");
Note: See TracChangeset for help on using the changeset viewer.