source: trunk/java-client/org/nzdl/gsdl/util/NzdlConstants.java@ 2317

Last change on this file since 2317 was 2317, checked in by daven, 23 years ago

treat Greenstone terms as constants, e.g. collectionextra, iconcollectionsmall.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
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
21package 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 * @version $Revision: 2317 $
31 */
32public interface NzdlConstants {
33
34 String DEFAULT_QUERY_TERM = "";
35 String DEFAULT_QUERY_TYPE = "ranked";
36 boolean DEFAULT_CASE_FOLDING = true;
37 boolean DEFAULT_STEMMING = false;
38 String DEFAULT_CASE_FOLDING_STRING = "true";
39 String DEFAULT_STEMMING_STRING = "false";
40 String BOOLEAN_STRING = "boolean";
41 String RANKED_STRING = "ranked";
42
43
44
45 /* Greenstone metadata names */
46
47
48 String LONG_COLLECTION_NAME = "collectionname";
49 String ICON = "iconcollection";
50 String SMALL_ICON = "iconcollectionsmall";
51 String COLLECTION_DESCRIPTION = "collectionextra";
52
53
54
55
56
57
58 int DEFAULT_START_RESULTS = 1;
59 int DEFAULT_END_RESULTS = 10;
60 int DEFAULT_MAX_DOCS = 200;
61
62 /* preferences not under explicit dialog/user control */
63
64
65 String STEMMING = "stemming";
66 String CASE_FOLDING = "casefolding";
67 String QUERYTYPE = "querytype";
68
69
70 /* Preference Strings */
71
72 String DISPLAY_FIRST_DOC = "Automatically display the first document";
73 String RAW_TEXT = "Always display raw text (don't interpret HTML)";
74 String MULTIPLE_SERVERS = "Connect to multiple servers";
75 String LOG_SERVICE = "Log at the NzdlService level";
76 String CACHE_CORBA = "Cache corba requests";
77 String SAVE_DOCS = "Save documents";
78
79/* these appear to have been generated by
80the idlj compiler but not any more - so
81they are are being placed here */
82
83public static final int FRtermFreq = 1;
84public static final int FRmatchterms = 2;
85public static final int FROID = 4 ;
86public static final int FRsubcol = 8;
87public static final int FRranking = 16;
88public static final int FRdocFreq = 32;
89public static final int FRmetadata = 64;
90public static final int FRfullTextBrowse = 128;
91
92/* The constants above are based on these definitions from the C++ receptionist
93
94#define FRtermFreq 1
95#define FRmatchTerms 2
96#define FROID 4
97#define FRsubCol 8
98#define FRranking 16
99#define FRdocFreq 32
100#define FRmetadata 64
101// used to indicate a full text browse query for mgpp
102#define FRfullTextBrowse 128
103
104*/
105
106}
107
108
Note: See TracBrowser for help on using the repository browser.