Opened 13 years ago

Closed 13 years ago

#748 closed defect (fixed)

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 (1)

comment:1 by sjm84, 13 years ago

Resolution: fixed
Status: newclosed

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.