1 | /*
|
---|
2 | * NzdlConstants.java
|
---|
3 | * Copyright (C) 2001 New Zealand Digital Library Project
|
---|
4 | *
|
---|
5 | * This program is free software; you can redistribute it and/or modify
|
---|
6 | * it under the terms of the GNU General Public License as published by
|
---|
7 | * the Free Software Foundation; either version 2 of the License, or
|
---|
8 | * (at your option) any later version.
|
---|
9 | *
|
---|
10 | * This program is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | * GNU General Public License for more details.
|
---|
14 | *
|
---|
15 | * You should have received a copy of the GNU General Public License
|
---|
16 | * along with this program; if not, write to the Free Software
|
---|
17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
18 | */
|
---|
19 |
|
---|
20 | //the package we're in
|
---|
21 | package org.nzdl.gsdl.util;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Contains default values for: query and other stuff.
|
---|
25 | *
|
---|
26 | * @author Stuart Yeates ([email protected])
|
---|
27 | * @author Aziz Mahoui ([email protected])
|
---|
28 | * @author Gordon Paynter ([email protected])
|
---|
29 | * @author Dave Nichols ([email protected])
|
---|
30 | * @author George Buchanan ([email protected])
|
---|
31 | * @version $Revision: 2922 $
|
---|
32 | */
|
---|
33 | public interface NzdlConstants {
|
---|
34 |
|
---|
35 | String DEFAULT_QUERY_TERM = "";
|
---|
36 | String DEFAULT_QUERY_TYPE = "ranked";
|
---|
37 | boolean DEFAULT_CASE_FOLDING = true;
|
---|
38 | boolean DEFAULT_STEMMING = false;
|
---|
39 | String DEFAULT_CASE_FOLDING_STRING = "true";
|
---|
40 | String DEFAULT_STEMMING_STRING = "false";
|
---|
41 | boolean DEFAULT_QUERY_META = false;
|
---|
42 | String BOOLEAN_STRING = "boolean";
|
---|
43 | String RANKED_STRING = "ranked";
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
47 | /* Greenstone metadata names */
|
---|
48 |
|
---|
49 |
|
---|
50 | String LONG_COLLECTION_NAME = "collectionname";
|
---|
51 | String ICON = "iconcollection";
|
---|
52 | String SMALL_ICON = "iconcollectionsmall";
|
---|
53 | String COLLECTION_DESCRIPTION = "collectionextra";
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
57 | int DEFAULT_START_RESULTS = 1;
|
---|
58 | int DEFAULT_END_RESULTS = 10;
|
---|
59 | int DEFAULT_MAX_DOCS = 200;
|
---|
60 |
|
---|
61 | /* preferences not under explicit dialog/user control */
|
---|
62 |
|
---|
63 |
|
---|
64 | String STEMMING = "stemming";
|
---|
65 | String CASE_FOLDING = "casefolding";
|
---|
66 | String QUERYTYPE = "querytype";
|
---|
67 |
|
---|
68 |
|
---|
69 | /* Preference Strings */
|
---|
70 |
|
---|
71 | String DISPLAY_FIRST_DOC = "Automatically display the first document";
|
---|
72 | String RAW_TEXT = "Always display raw text (don't interpret HTML)";
|
---|
73 | String MULTIPLE_SERVERS = "Connect to multiple servers";
|
---|
74 | String LOG_SERVICE = "Log at the NzdlService level";
|
---|
75 | String CACHE_CORBA = "Cache corba requests";
|
---|
76 | String SAVE_DOCS = "Save documents";
|
---|
77 |
|
---|
78 | /* these appear to have been generated by
|
---|
79 | the idlj compiler but not any more - so
|
---|
80 | they are are being placed here */
|
---|
81 |
|
---|
82 | public static final int FRtermFreq = 1;
|
---|
83 | public static final int FRmatchterms = 2;
|
---|
84 | public static final int FROID = 4 ;
|
---|
85 | public static final int FRsubcol = 8;
|
---|
86 | public static final int FRranking = 16;
|
---|
87 | public static final int FRdocFreq = 32;
|
---|
88 | public static final int FRmetadata = 64;
|
---|
89 | public static final int FRfullTextBrowse = 128;
|
---|
90 |
|
---|
91 | /* The constants above are based on these definitions from the C++ receptionist
|
---|
92 |
|
---|
93 | #define FRtermFreq 1
|
---|
94 | #define FRmatchTerms 2
|
---|
95 | #define FROID 4
|
---|
96 | #define FRsubCol 8
|
---|
97 | #define FRranking 16
|
---|
98 | #define FRdocFreq 32
|
---|
99 | #define FRmetadata 64
|
---|
100 | // used to indicate a full text browse query for mgpp
|
---|
101 | #define FRfullTextBrowse 128
|
---|
102 |
|
---|
103 | */
|
---|
104 |
|
---|
105 | }
|
---|
106 |
|
---|
107 |
|
---|