source: trunk/gsdl/src/recpt/htmlbrowserclass.cpp@ 919

Last change on this file since 919 was 715, checked in by sjboddie, 25 years ago

new browserclass

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/**********************************************************************
2 *
3 * htmlbrowserclass.cpp --
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 * $Id: htmlbrowserclass.cpp 715 1999-10-18 20:09:17Z sjboddie $
25 *
26 *********************************************************************/
27
28/*
29 $Log$
30 Revision 1.1 1999/10/18 20:09:17 sjboddie
31 new browserclass
32
33
34 */
35
36
37#include "htmlbrowserclass.h"
38#include <assert.h>
39#include "OIDtools.h"
40
41htmlbrowserclass::htmlbrowserclass () {
42}
43
44htmlbrowserclass::~htmlbrowserclass () {
45}
46
47// returns the name that specifies the browserclass type
48text_t htmlbrowserclass::get_browser_name () {
49 return "HTML";
50}
51
52// redirect to html page
53void htmlbrowserclass::processOID (cgiargsclass &args, recptproto *collectproto,
54 ostream &logout) {
55
56 // should only reach here from within a classification
57 if (!args["d"].empty()) return;
58 if (args["cl"].empty()) return;
59
60 FilterRequest_t request;
61 FilterResponse_t response;
62 comerror_t err;
63 request.filterName = "NullFilter";
64 request.filterResultOptions = FROID;
65 request.docSet.push_back (args["cl"] + ".fc");
66 collectproto->filter (args["c"], request, response, err, logout);
67
68 if (err != noError || response.docInfo[0].OID.empty()) return;
69
70 // redirect to html page
71 args["a"] = "p";
72 args["p"] = "html";
73 args["hp"] = response.docInfo[0].OID;
74}
Note: See TracBrowser for help on using the repository browser.