Ticket #748 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Problem with queryterms

Reported by: sjm84 Owned by: nobody
Priority: moderate Milestone: 2.85 Release
Component: Collection Building Severity: major
Keywords: Cc:

Description

When using the form search in Greenstone2 the _queryterms_ macro comes out with spaces on one or both sides of the term which is problematic for use in the #search argument given to PDFs.

The problem resides in the querytools.cpp file, in the get_plain_query_terms function.

Change History

Changed 6 years ago by sjm84

  • status changed from new to closed
  • resolution set to fixed

Created a trim function in text_t.h and text_t.cpp (common-src/src/lib) and use it in querytools.cpp (runtime-src/src/recpt) to remove the spaces before the value is returned.

Note: See TracTickets for help on using tickets.