geo-data / medin-portal

Implementation of the MEDIN portal
http://portal.oceannet.org
3 stars 1 forks source link

Ordering not working in the new DWS #40

Closed homme closed 10 years ago

homme commented 10 years ago

@SteveDonegan clicking on any of the column headings in the results page should affect the ordering of results, allowing ascending and descending ordering. This works in the live portal but not in the new DWS. This is a DWS issue: the following DWS request should order the results by title (ascending) but fails to do so:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://discovery.ejb.revitalization.services.ndg/" xmlns:ns2="http://schemas.services.ndg/discovery" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header/>
  <ns0:Body>
    <ns1:DoSearch>
      <request>
        <ns2:SearchCriteria>
          <ns2:TermSearch>
            <ns2:TermTarget>FullText</ns2:TermTarget>
          </ns2:TermSearch>
          <ns2:ResourceLocator/>
        </ns2:SearchCriteria>
        <ns2:RetrieveCriteria>
          <ns2:OrderBy>
            <ns2:OrderByField>DiscoveryTitle</ns2:OrderByField>
            <ns2:OrderByDirection>ascending</ns2:OrderByDirection>
          </ns2:OrderBy>
          <ns2:RecordDetail>DocumentBrief</ns2:RecordDetail>
        </ns2:RetrieveCriteria>
        <ns2:Start>1</ns2:Start>
        <ns2:HowMany>20</ns2:HowMany>
      </request>
    </ns1:DoSearch>
  </ns0:Body>
</SOAP-ENV:Envelope>
SteveDonegan commented 10 years ago

Ordering now working in the DoSearch response - confirmed by ordering on DiscoveryTitle and then by observing positions of first/last result changed when switching between ascending/descending

homme commented 10 years ago

@SteveDonegan Yes this is now working - thanks.