View Javadoc
1   package org.kuali.ole;
2   
3   /**
4    * Created with IntelliJ IDEA.
5    * User: ?
6    * Date: 7/24/12
7    * Time: 2:28 PM
8    * To change this template use File | Settings | File Templates.
9    */
10  public class OleSRUConstants {
11  
12      //SRU request parameter names
13  
14      public static final String OperationType = "operation";
15      public static final String VERSION = "version";
16      public static final String QUERY = "query";
17      public static final String START_RECORD = "startRecord";
18      public static final String MAXIMUM_RECORDS = "maximumRecords";
19      public static final String RECORD_PACKING = "recordPacking";
20      public static final String STYLE_SHEET = "stylesheet";
21      public static final String RECORD_SCHEMA = "recordSchema";
22      public static final String SORTKEYS = "sortKeys";
23      public static final String RECORD_XPATH = "recordXPath";
24      public static final String RESULTSET_TTL = "resultSetTTL";
25      public static final String SRU_VERSION="1.2";
26      public static final String SRU_STAFF_ONLY_FLAG = "false";
27  
28      //SRU request parameters constants
29  
30      public static final String SEARCH_RETRIEVE = "searchRetrieve";
31      public static final String EXPLAIN = "explain";
32      public static final String MAXRECORD = "maximum.record.size";
33      public static final String STARTRECORD = "minimum.record.size";
34      public static final String RECORD_PACK_XML = "xml";
35      public static final String RECORD_PACK_STRING = "string";
36      public static final String DC_RECORD_SCHEMA = "dc";
37      public static final String DUBLIN_RECORD_SCHEMA = "dublin";
38      public static final String TITLE_SORT_KEYS = "title";
39      public static final String MARC_RECORD_SCHEMA = "marcxml";
40  
41      //Extra Request Data Constants
42      public static final String EXTRA_REQ_DATA_KEY = "extraReqDataKey";
43      public static final String EXTRA_REQ_DATA_VALUE = "extraReqDataValue";
44      public static final String EXTRA_REQ_DATA_XML_NAMESPACE = "extra.req.data.xml.namespace";
45      //Diagnostics message constants
46  
47      public static final String SERVER_DIAGNOSTIC_MSG = "server.diagnostic.message";
48      public static final String NORECORDS_DIAGNOSTIC_MSG = "norecords.diagnostic.message";
49      public static final String INVALID_QUERY_DIAGNOSTIC_MSG = "invalid.query.diagnostic.message";
50      public static final String OPERATION_REQUIRED_FIELD_DIAGNOSTIC_MSG = "operation.required.field.diagnostic.message";
51      public static final String VERSION_REQUIRED_FIELD_DIAGNOSTIC_MSG = "version.required.field.diagnostic.message";
52      public static final String QUERY_REQUIRED_FIELD_DIAGNOSTIC_MSG = "query.required.field.diagnostic.message";
53      public static final String INVALID_OperationType = "invalid.operation.type";
54      public static final String INVALID_RECORD_PACKING = "invalid.record.packing";
55      public static final String INVALID_RECORD_SCHEMA = "invalid.record.schema";
56      public static final String START_RECORD_UNMATCH = "start.record.unMatch";
57      public static final String SEARCH_PROCESS_FAILED= "search.process.failed";
58  
59  
60      //Explain operation
61  
62      public static final String EXPLAIN_RECORD_SCHEMA = "explain.record.schema";
63      public static final String EXPLAIN_SERVER_DATABASE_INFO = "explain.server.database.info";
64      public static final String EXPLAIN_SERVER_HOST = "explain.server.host";
65      public static final String EXPLAIN_SERVER_METHOD = "explain.server.method";
66      public static final String EXPLAIN_SERVER_PORT = "explain.server.port";
67      public static final String EXPLAIN_SERVER_PROTOCOL = "explain.server.protocol";
68      public static final String EXPLAIN_SERVER_TRANSPORT = "explain.server.transport";
69      public static final String EXPLAIN_SERVER_VERSION = "explain.server.version";
70      public static final String EXPLAIN_DATABASE_LANG = "explain.database.lang";
71      public static final String EXPLAIN_DATABASE_PRIMARY = "explain.database.primary";
72      public static final String EXPLAIN_INDEX_SET_NAME = "explain.index.set.name";
73      public static final String EXPLAIN_INDEX_SET_IDENTIFIER = "explain.index.set.identifier";
74      public static final String EXPLAIN_INDEX_MAP_NAME_SET = "explain.index.map.name.set";
75      public static final String EXPLAIN_INDEX_MAP_NAME_VALUE = "explain.index.map.name.value";
76      public static final String EXPLAIN_SCHEMA_TITLE = "explain.schema.title";
77      public static final String EXPLAIN_SCHEMA_NAME = "explain.schema.name";
78      public static final String EXPLAIN_SCHEMA_IDENTIFIER = "explain.schema.identifier";
79  
80  
81      public static final String INVALID_PARAM = "invalidParam";
82  
83      public static final String MARC = "marc";
84  
85      public static final String OPAC_RECORD = "OPAC";
86  
87      public static final String UN_SUPPORTED_PARAM = "unSupported.parameter";
88      public static final String UN_SUPPORTED_PARAM_VALUE = "unSupported.parameter.value";
89      public static final String MANDATORY="mandatory.parameter.missing";
90      public static final String UNSUPPORT_VERSION="unSupport.version";
91      public static final String ITEM_STATUS_AVAILABLE = "AVAILABLE";
92      public static final String ITEM_STATUS_ONHOLD = "ONHOLD";
93  
94      public static final String MARC_SCHEMA="marcxml";
95      public static final String DC_SCHEMA="dc";
96      public static final String MARC_RECORD_RESPONSE_SCHEMA = "info:srw/schema/1/marcxml-v1.1";
97      public static final String DC_RECORD_RESPONSE_SCHEMA="info:srw/schema/1/dc-v1.1";
98      public static final String OPAC_RECORD_RESPONSE_SCHEMA="info:srw/schema/1/opacxml-v1.0";
99      public static final String NUMBER_OF_REORDS="numberOfRecords";
100     public static final String BIBLIOGRAPHIC ="bibliographic";
101      public static final String TITLE_SEARCH ="Title_search";
102     public static final String AUTHOR_SEARCH ="Author_search";
103     public static final String PUBLISHER_SEARCH ="Publisher_search";
104     public static final String PUBLICATION_DATE_SEARCH ="PublicationDate_search";
105     public static final String ISBN_SEARCH ="ISBN_search";
106     public static final String ISSN_SEARCH ="ISSN_search";
107     public static final String LOCALID_SEARCH ="LocalId_search";
108     public static final String SUBJECT_SEARCH ="Subject_search";
109     public static final String TITLE="title";
110     public static final String AUTHOR="author";
111     public static final String PUBLISHER="publisher";
112     public static final String PUBLICATION_DATE="publicationDate";
113     public static final String PUB_DATE="date";
114     public static final String ISBN="isbn";
115     public static final String ISSN="issn";
116     public static final String LOCALID="id";
117     public static final String SUBJECT ="subject";
118     public static final String CHOICE = "keyword";
119     public static final String CS_TITLE="dc.title";
120     public static final String CS_AUTHOR="dc.creator";
121     public static final String CS_PUBLISHER="dc.publisher";
122     public static final String CS_PUBLICATION_DATE="dc.date";
123     public static final String CS_PUB_DATE="bib.dateIssued";
124     public static final String CS_ISBN="bath.isbn";
125     public static final String CS_ISSN="bath.issn";
126     public static final String CS_LOCALID="rec.id";
127     public static final String CS_SUBJECT ="dc.subject";
128     public static final String CS_CHOICE = "cql.serverChoice";
129     public static final String ALL_TEXT="all_text";
130     public static final String LOCAL_LOCATION="SRU_LOCAL_LOCATION_LEVEL";
131     public static final String SHELVING_LOCATION="SRU_SHELVING_LOCATION_LEVEL";
132     public static final String BOOLEAN_FIELD_TRUE_FORMAT = "BOOLEAN_FIELD_TRUE_FORMAT";
133     public static final String BOOLEAN_FIELD_FALSE_FORMAT = "BOOLEAN_FIELD_FALSE_FORMAT";
134 
135 
136 }