[1643] | 1 | /**********************************************************************
|
---|
| 2 | *
|
---|
| 3 | * phindbrowserclass.cpp --
|
---|
| 4 | *
|
---|
| 5 | * Copyright (C) 2000 The New Zealand Digital Library Project
|
---|
| 6 | *
|
---|
| 7 | *
|
---|
| 8 | * A component of the Greenstone digital library software
|
---|
| 9 | * from the New Zealand Digital Library Project at the
|
---|
| 10 | * University of Waikato, New Zealand.
|
---|
| 11 | *
|
---|
| 12 | * This program is free software; you can redistribute it and/or modify
|
---|
| 13 | * it under the terms of the GNU General Public License as published by
|
---|
| 14 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 15 | * (at your option) any later version.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful,
|
---|
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 20 | * GNU General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, write to the Free Software
|
---|
| 24 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 25 | *
|
---|
| 26 | *********************************************************************/
|
---|
| 27 |
|
---|
| 28 | #include "phindbrowserclass.h"
|
---|
| 29 | #include <assert.h>
|
---|
| 30 | #include "OIDtools.h"
|
---|
| 31 |
|
---|
| 32 | phindbrowserclass::phindbrowserclass () {
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | phindbrowserclass::~phindbrowserclass () {
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | // returns the name that specifies the browserclass type
|
---|
| 39 | text_t phindbrowserclass::get_browser_name () {
|
---|
| 40 | return "Phind";
|
---|
| 41 | }
|
---|
| 42 |
|
---|
[1804] | 43 | // display a document
|
---|
[1643] | 44 | void phindbrowserclass::processOID (cgiargsclass &args, recptproto *collectproto,
|
---|
| 45 | ostream &logout) {
|
---|
| 46 |
|
---|
| 47 | // should only reach here from within a classification
|
---|
| 48 | if (!args["d"].empty()) return;
|
---|
| 49 | if (args["cl"].empty()) return;
|
---|
| 50 |
|
---|
| 51 | FilterRequest_t request;
|
---|
| 52 | FilterResponse_t response;
|
---|
| 53 | comerror_t err;
|
---|
| 54 | request.filterName = "NullFilter";
|
---|
| 55 | request.filterResultOptions = FROID;
|
---|
| 56 | request.docSet.push_back (args["cl"] + ".fc");
|
---|
| 57 | collectproto->filter (args["c"], request, response, err, logout);
|
---|
| 58 |
|
---|
| 59 | if (err != noError || response.docInfo[0].OID.empty()) return;
|
---|
| 60 | }
|
---|