[2455] | 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
|
---|
[7427] | 34 | void format_browsestring(const text_t& orig, text_t& formatted, int and_or);
|
---|
[2455] | 35 |
|
---|
[2612] | 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.
|
---|
[7427] | 39 | void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring,
|
---|
[2455] | 40 | cgiargsclass &args);
|
---|
| 41 |
|
---|
[2612] | 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.
|
---|
[7427] | 45 | bool remove_no_meta_results(const text_t &metaname, FilterResponse_t &response,
|
---|
| 46 | outconvertclass &outconvert);
|
---|
[2460] | 47 |
|
---|
[2455] | 48 | #endif
|
---|