source: main/trunk/greenstone2/runtime-src/src/recpt/browseactiontools.h@ 24411

Last change on this file since 24411 was 7427, checked in by mdewsnip, 20 years ago

(Human Info) Made some parameters const.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/********************************************************************
2 *
3 * browseactiontools.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * A component of the Greenstone digital library software
7 * from the New Zealand Digital Library Project at the
8 * University of Waikato, New Zealand.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
24 *********************************************************************/
25
26
27#ifndef BROWSEACTIONTOOLS_H
28#define BROWSEACTIONTOOLS_H
29
30#include "cgiargs.h"
31#include "recptproto.h"
32
33//this puts ands or ors into the querystring as necessary
34void format_browsestring(const text_t& orig, text_t& formatted, int and_or);
35
36//this thing sets up the search associated with a browse. It's programmed by
37//witchcraft, so I don't really know how/why it works - I lifted the code from
38//somewhere else.
39void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring,
40 cgiargsclass &args);
41
42//this thing filters out all the results of a request to the collection
43//(whether it be for all documents or just the ones with specified terms)
44//that don't have the required "metaname" metadata element.
45bool remove_no_meta_results(const text_t &metaname, FilterResponse_t &response,
46 outconvertclass &outconvert);
47
48#endif
Note: See TracBrowser for help on using the repository browser.