1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.select;
17
18 import java.math.BigDecimal;
19 import java.util.*;
20
21 public class OleSelectConstant {
22
23 public static final String CITATION = "CITATION";
24 public static final String OPENURL = "OPENURL";
25 public static final String FORM = "FORM";
26
27
28 public static final String USD = "US Dollar";
29 public static final String FILENAME = "filename";
30 public static final String FILEPATH = "filePath";
31 public static final String XML_FILE_TYPE_EXTENSION = ".xml";
32 public static final String XML_FILE_CONTENT = "xmlFileContent";
33 public static final String IS_BIB_EDIT = "isBibEdit";
34 public static final String BIBMARCXML_DIR = "ole.bibmarcxml.directory";
35
36 public static final String SOAP_SUCCESS = "Document created successfully";
37 public static final String SOAP_EXCEPTION = "Failure of document creation";
38
39 public static final String STATUS = "true";
40
41 public static final String SOAP_INVALID_OPENURL = "Failure of document creation: Invalid Open URL";
42 public static final String SOAP_CITATION_PARSER_UNREACHABLE = "Failure of document creation: Unable to connect to parser";
43
44 public static final String REQUESTOR_TYPE_STAFF = "STAFF";
45 public static final String REQUESTOR_TYPE_BATCHINGEST = "BATCHINGEST";
46 public static final String REQUESTOR_TYPE = "requestorType";
47 public static final String REQUESTOR_TYPE_ID = "requestorTypeId";
48
49 public static final String SYSTEM_USER_ROLE_NAME = "System User";
50
51 public static final String DEFAULT_VALUE_SYSTEM = "System";
52 public static final String DEFAULT_VALUE_ROLE = "Role";
53 public static final String DEFAULT_VALUE_USER = "User";
54
55 public static final String REQUEST_SRC_TYPE_BATCHINGEST = "BatchIngest";
56 public static final String REQUEST_SRC_TYPE_STAFF = "Staff";
57 public static final String REQUEST_SRC_TYPE_WEBFORM = "WebForm";
58
59 public static final String REQUISITON_SRC_TYPE_AUTOINGEST = "AUTO";
60 public static final String REQUISITON_SRC_TYPE_B2B = "B2B";
61 public static final String REQUISITON_SRC_TYPE_LEGACY = "LGCY";
62 public static final String REQUISITON_SRC_TYPE_MANUALINGEST = "MAN";
63 public static final String REQUISITON_SRC_TYPE_DIRECTINPUT = "STAN";
64 public static final String REQUISITON_SRC_TYPE_WEBFORM = "WEB";
65
66 public static final String DOCSTORE_OPERATION_BATCHINGEST = "BATCHINGEST";
67 public static final String DOCSTORE_OPERATION_INGEST = "ingest";
68 public static final String DOCSTORE_OPERATION_STAFF = "STAFF";
69 public static final String DOCSTORE_OPERATION_WEBFORM = "WEBFORM";
70
71
72 public static final String DOCSTORE_CATEGORY_BIB = "bibliographic";
73 public static final String DOCSTORE_CATEGORY_WORK = "work";
74 public static final String DOCSTORE_TYPE_BIB = "bibliographic";
75 public static final String DOCSTORE_TYPE_ITEM = "item";
76 public static final String DOCSTORE_TYPE_INSTANCE = "instance";
77 public static final String DOCSTORE_FORMAT_MARC = "marc";
78 public static final String DOCSTORE_FORMAT_OLEML = "oleml";
79
80 public static final String BIB_MARC_XMLSTRING = "bibMarcXMLString";
81 public static final String ITEM_MARC_XMLSTRING = "itemMarcXMLString";
82 public static final String INSTANCE_MARC_XMLSTRING = "instanceMarcXMLString";
83
84 public static final String DOCSTORE_REQUEST_XMLSTRING = "docStoreRequestXMLString";
85
86 public static final String CDATA_START_TAG = "<![CDATA[";
87 public static final String CDATA_END_TAG = "]]>";
88
89
90 public static final String ITEM_TYPE_CODE_ITEM = "ITEM";
91
92 public static final String CURRENCY_TYPE_ID = "currencyTypeId";
93 public static final String EXCHANGE_RATE_DATE = "exchangeRateDate";
94 public static final String DISCOUNT_TYPE_PERCENTAGE = "%";
95 public static final String DISCOUNT_TYPE_DOLLOR = "#";
96 public static final String TITLE_ID = "titleId";
97 public static final String INSTANCE_ID = "instanceId";
98 public static final String DOC_CATEGORY_TYPE = "docCategoryType";
99 public static final String DOC_CATEGORY_TYPE_BIBLINKS = "BibligraphicLinks";
100 public static final String DOC_CATEGORY_TYPE_ITEMLINKS = "bibIdentifier";
101 public static final String DOC_CATEGORY_TYPE_BIB = "bibliographic";
102 public static final String DOC_CATEGORY_TYPE_ITEM = "item";
103 public static final String DOC_CATEGORY_TYPE_INSTANCE = "bibIdentifier";
104
105 public static final String BATCHINGEST_REQUEST = "BATCHINGEST";
106 public static final String STAFF_REQUEST = "Library Material";
107 public static final String WEBFORM_REQUEST = "WebformRequest";
108
109 public static final String ITEM_SRC_TYPE_PUBLISHER = "Publisher";
110
111 public static final String DEFAULT_VALUE_USERID = "userId";
112
113 public static final String DEFAULT_VALUE_FOR = "defaultValueFor";
114
115 public static final String DEFAULT_VALUE_ROLE_ID = "roleId";
116
117 public static final String VENDOR_TRANSMISSION_FORMAT_EDI = "EDI";
118
119 public static final String METHOD_OF_PO_TRANSMISSION_NOPR = "NOPR";
120
121 public static final String DEFAULT_TABLE_COLUMN_DOCUMENTTYPE = "documentType";
122
123
124
125 public static final class DocStoreDetails {
126 public static final String TITLE_KEY = "title";
127 public static final String ISBN_KEY = "isbn";
128 public static final String AUTHOR_KEY = "author";
129 public static final String PUBLISHER_KEY = "publisher";
130 public static final String PUBLICATIONDATE_KEY = "publicationDate";
131 public static final String ITEMLINKS_KEY = "bibIdentifier";
132 public static final String LOCAL_ID = "localIdentifier";
133
134 public static final String TITLE_VALUE = "Title_search";
135 public static final String AUTHOR_VALUE = "Author_search";
136 public static final String ISBN_VALUE = "ISBN_display";
137 public static final String PUBLISHER_VALUE = "Publisher_search";
138 public static final String PUBLICATIONDATE_VALUE = "YearOfPublication";
139 public static final String ITEMLINKS_VALUE = "bibIdentifier";
140 public static final String LOC_ID_VALUE = "LocalId_search";
141
142 public static final Map<String, String> getDocstoreQueryKeys() {
143 Map<String, String> docStoreQueryKeys = new HashMap<String, String>();
144 docStoreQueryKeys.put(TITLE_KEY, TITLE_VALUE);
145 docStoreQueryKeys.put(AUTHOR_KEY, AUTHOR_VALUE);
146 docStoreQueryKeys.put(ISBN_KEY, ISBN_VALUE);
147 docStoreQueryKeys.put(PUBLISHER_KEY, PUBLISHER_VALUE);
148 docStoreQueryKeys.put(LOCAL_ID, LOC_ID_VALUE);
149 docStoreQueryKeys.put(PUBLICATIONDATE_KEY, PUBLICATIONDATE_VALUE);
150 docStoreQueryKeys.put(ITEMLINKS_KEY, ITEMLINKS_VALUE);
151 return Collections.unmodifiableMap(docStoreQueryKeys);
152 }
153
154 public static final Map<String, String> DOCSTORE_QUERY_KEYS = getDocstoreQueryKeys();
155 }
156
157 public static final String RECEIVING_QUEUE_SEARCH = "receivingQueuePo";
158 public static final String FROM_DATE_CREATED = "fromDateCreated";
159 public static final String TO_DATE_CREATED = "toDateCreated";
160 public static final String PURCHASEORDER_STATUS_OPEN = "OPEN";
161 public static final String ISBN = "isbn";
162
163
164
165
166 public static final String PURCHASING_DOC_SEARCH = "Document Search";
167 public static final String BIB_SEARCH = "Bib Search";
168
169 public static class InvoiceSearch {
170 public static final String PO_ID = "purchaseOrderIdentifier";
171 public static final String PURAP_ID = "purapDocumentIdentifier";
172 public static final String INV_NUMBER = "invoiceNumber";
173 public static final String INV_ACCOUNT = "accountNumber";
174 public static final String INV_CHART = "chartOfAccountsCode";
175 public static final String INV_ORG = "organizationCode";
176 public static final String INV_PAY_DATE="invoicePayDate";
177 public static final String INV_TYP="invoiceType";
178 public static final String INV_TYP_ID="invoiceTypeId";
179 public static final String INV_DOC_NUM="documentNumber";
180 public static final String INV_DATE="invoiceDate";
181 public static final String INV_SUB_TYP="invoiceSubType";
182 public static final String INV_SUB_TYP_ID="invoiceSubTypeId";
183 public static final String INV_VND_NM="vendorName";
184 public static final String INV_VND_NUM="vendorNumber";
185 public static final String ITEM_TITLE_ID = "itemTitleId";
186 }
187 public static class AcquisitionsSearch {
188 public static final String PO_ID = "purchaseOrderIdentifier";
189 public static final String ITEM_TITLE_ID = "itemTitleId";
190 public static final String TITLE_ID = "titleId";
191 public static final String searchType = "searchType";
192 public static final String REQUISITIONS = "requisitions";
193 public static final String CREATED_FROM = "dateFrom";
194 public static final String CREATED_TO = "dateTo";
195 public static final String ACQ_PO_NUMBER = "purapDocumentIdentifier";
196 public static final String ACQ_ACCOUNT = "accountNumber";
197 public static final String ACQ_CHART = "chartOfAccountsCode";
198 public static final String ACQ_ORG = "organizationCode";
199 public static final String INITIATOR = "initiator";
200 public static final String REQUESTOR = "requestorName";
201 public static final String ACQ_VND_NAME = "vendorName";
202 public static final String ACQ_INT_REQID = "internalRequestorId";
203 public static final String ACQ_EXT_REQID = "externalRequestorId";
204 public static final String ACQ_TITLE = "title";
205 public static final String ACQ_AUTHOR = "author";
206 public static final String ACQ_PUBLISHER = "publisher";
207 public static final String ACQ_ISBN = "isbn";
208 public static final String ACQ_LOCAL_ID = "localIdentifier";
209 public static final String ACQ_DOC_NUMBER = "documentNumber";
210 public static final String APP_DOC_STATUS = "applicationDocumentStatus";
211 public static final String APP_DOC_DESC = "documentDescription";
212 public static final String APP_DOC_TYPE_CODE = "financialDocumentTypeCode";
213 public static final String APP_DOC_NUM = "organizationDocumentNumber";
214
215 public static final String ITM_EXT_REQID = "requestorId";
216
217 public static final String DOCUMENT_TYPE_NAME = "docTypeFullName";
218 public static final String documentType = "documentType";
219
220 public static final Map<String, String> getRequisitionFieldNames() {
221 Map<String, String> requisitionFields = new HashMap<String, String>();
222 requisitionFields.put(ACQ_PO_NUMBER, ACQ_PO_NUMBER);
223 requisitionFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
224 requisitionFields.put(ACQ_INT_REQID, ACQ_INT_REQID);
225 requisitionFields.put(ACQ_EXT_REQID, ITM_EXT_REQID);
226 requisitionFields.put(ACQ_ACCOUNT, ACQ_ACCOUNT);
227 requisitionFields.put(ACQ_CHART, ACQ_CHART);
228 requisitionFields.put(ACQ_ORG, ACQ_ORG);
229 return Collections.unmodifiableMap(requisitionFields);
230 }
231
232 public static final Map<String, String> getPurchaseOrderNames() {
233 Map<String, String> purchaseOrderFields = new HashMap<String, String>();
234 purchaseOrderFields.put(ACQ_PO_NUMBER, ACQ_PO_NUMBER);
235 purchaseOrderFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
236 purchaseOrderFields.put(ACQ_INT_REQID, ACQ_INT_REQID);
237 purchaseOrderFields.put(ACQ_EXT_REQID, ITM_EXT_REQID);
238 purchaseOrderFields.put(ACQ_ACCOUNT, ACQ_ACCOUNT);
239 purchaseOrderFields.put(ACQ_CHART, ACQ_CHART);
240 purchaseOrderFields.put(ACQ_ORG, ACQ_ORG);
241 return Collections.unmodifiableMap(purchaseOrderFields);
242 }
243
244 public static final Map<String, String> getLineItemReceivingNames() {
245 Map<String, String> lineItemReceivingFields = new HashMap<String, String>();
246 lineItemReceivingFields.put(ACQ_PO_NUMBER, PO_ID);
247 lineItemReceivingFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
248 return Collections.unmodifiableMap(lineItemReceivingFields);
249 }
250
251 public static final Map<String, String> getCorrectionReceivingNames() {
252 Map<String, String> correctionReceivingFields = new HashMap<String, String>();
253 correctionReceivingFields.put(ACQ_PO_NUMBER, PO_ID);
254 return Collections.unmodifiableMap(correctionReceivingFields);
255 }
256
257 public static final Map<String, String> getPaymentRequestNames() {
258 Map<String, String> paymentRequestFields = new HashMap<String, String>();
259 paymentRequestFields.put(ACQ_PO_NUMBER, ACQ_PO_NUMBER);
260 paymentRequestFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
261 paymentRequestFields.put(ACQ_ACCOUNT, ACQ_ACCOUNT);
262 paymentRequestFields.put(ACQ_CHART, ACQ_CHART);
263 paymentRequestFields.put(ACQ_ORG, ACQ_ORG);
264 return Collections.unmodifiableMap(paymentRequestFields);
265 }
266
267 public static final Map<String, String> getDocStoreDetails() {
268 Map<String, String> docStoreFields = new HashMap<String, String>();
269 docStoreFields.put(ACQ_TITLE, ACQ_TITLE);
270 docStoreFields.put(ACQ_AUTHOR, ACQ_AUTHOR);
271 docStoreFields.put(ACQ_PUBLISHER, ACQ_PUBLISHER);
272 docStoreFields.put(ACQ_LOCAL_ID, ACQ_LOCAL_ID);
273 docStoreFields.put(ACQ_ISBN, ACQ_ISBN);
274 return Collections.unmodifiableMap(docStoreFields);
275 }
276
277 public static final List<String> getResultNames() {
278 List<String> resultFields = new ArrayList<String>();
279 resultFields.add(APP_DOC_NUM);
280 resultFields.add(APP_DOC_TYPE_CODE);
281 resultFields.add(APP_DOC_DESC);
282
283 resultFields.add(ACQ_PO_NUMBER);
284 resultFields.add(ITEM_TITLE_ID);
285 resultFields.add(PO_ID);
286 return Collections.unmodifiableList(resultFields);
287 }
288 public static final Map<String, String> getInvoiceNames() {
289 Map<String, String> invoiceFields = new HashMap<String, String>();
290 invoiceFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
291 invoiceFields.put(ACQ_PO_NUMBER, ACQ_PO_NUMBER);
292 invoiceFields.put(ACQ_VND_NAME, ACQ_VND_NAME);
293 invoiceFields.put(ACQ_ACCOUNT, ACQ_ACCOUNT);
294 invoiceFields.put(ACQ_CHART, ACQ_CHART);
295 invoiceFields.put(ACQ_ORG, ACQ_ORG);
296 return Collections.unmodifiableMap(invoiceFields);
297 }
298
299 public static final Map<String, String> REQUISITION_FIELDS = getRequisitionFieldNames();
300 public static final Map<String, String> PURCHASEORDER_FIELDS = getPurchaseOrderNames();
301 public static final Map<String, String> LINE_ITEM_RECEIVING_FIELDS = getLineItemReceivingNames();
302 public static final Map<String, String> CORRECTION_RECEIVING_FIELDS = getCorrectionReceivingNames();
303 public static final Map<String, String> PAYMENT_FIELDS = getPaymentRequestNames();
304 public static final Map<String, String> DOC_STORE_FIELDS = getDocStoreDetails();
305 public static final List<String> RESULT_FIELDS = getResultNames();
306 public static final Map<String, String> INVOICE_FIELDS = getInvoiceNames();
307
308 }
309
310
311 public static final String PROCESS_ITEM_SECTION_ID = "OLEInvoiceView-processItems";
312 public static final String INVOICE_INFO_SECTION_ID = "OLEInvoiceView-invoiceInfo";
313
314 public static final String FOREIGN_VENDOR_INVOICE_AMOUNT = "foreignVendorInvoiceAmount";
315 public static final String FOREIGN_VENDOR_INVOICE_AMOUNT_STRING = "Foreign Vendor Invoice Amount";
316 public static final String ERROR_ITEM_QUANTITY_REQUIRED = "error.item.qty.required";
317 public static final String ERROR_REQUIRED = "error.item.description.required";
318 public static final String ERROR_NO_OF_PARTS_REQUIRED = "error.item.noOfParts.required";
319 public static final String ERROR_ATLEAST_ONE_ITEM_QTY_REQUIRED = "error.atleast.one.item.qty.required";
320
321
322 public static final String REQUESTOR_PERSON_PHONE_NUMBER = "requestorPersonPhoneNumber";
323 public static final String ERROR_REQUESTOR_PHONE_NUMBER = "error.requestor.phone.number";
324 public static final String PURCHASE_ORDER_PERSON_PHONE_NUMBER = "requestorPersonPhoneNumber";
325
326
327 public static final String REQUESTOR_NOTES_PRE_ORDER_SERVICE = "Requestor Note";
328
329
330 public static final Integer ACCOUNTINGLINE_PERCENT_HUNDRED = 100;
331
332 public static final Integer ONE = 1;
333 public static final Integer ZERO = 0;
334
335 public static final String OLE_DOCSEARCH_URL = "ole.docsearch.url";
336
337 public static final String OLE_DOCSTOREAPP_URL = "ole.docstoreapp.url";
338
339 public static final String OLE_DOCSTORE_URL = "ole.docstore.url";
340
341 public static final String DOCUMENT = "document";
342
343 public static final String FAILURE = "failure";
344
345 public static final String DOCSTORE_URL_PING = "docStoreUrlPing";
346
347 public static final String ACCOUNT_TEMPORARY_RESTRICTED_CODE = "T";
348
349 public static final String ACCOUNT_RESTRICTED_CODE = "R";
350
351 public static final String RESTRICTED = "restricted";
352
353
354 public static final String ITEMTITLEID = "itemTitleId";
355
356
357 public static final String OLE_PERSON = "PERSON";
358 public static final String OLE_SYSTEM = "SYSTEM";
359 public static final int PERSON_ENTITY_TYP_CODE_SIZE = 4;
360
361
362 public static final String RICE2_URL = "ole.rice2.url.portal";
363
364 public static final String VENDOR_DEPOSIT_ACCOUNT = "vendorDepositAccount";
365 public static final String SUBFUND_GROUP_CODE = "subFundGroupCode";
366 public static final String VENDOR_NAME = "vendorName";
367 public static final String INCLUDE = "Include";
368 public static final String EXCLUDE = "Exclude";
369
370
371 public static final String SUB_FUND_GRP_CD = "SUB_FUND_GRP_CD";
372 public static final String FUND_GRP_CD = "FUND_GRP_CD";
373 public static final String ACCOUNT_NUMBER = "accountNumber";
374 public static final String PERCENT = "accountLinePercent";
375 public static final String CHART_OF_ACCOUNTS_CODE = "chartOfAccountsCode";
376
377
378
379 public static final String ERROR_DI_ACCOUNTING_TOTAL = "errors.di.accounting.total";
380
381
382 public static final String ERROR_UNIT_PRICE_REQUIRED = "error.unit.price.required";
383
384 public static final String REQUISITION = "Requisition";
385
386 public static final String PURCHASE_ORDER = "Purchase Order";
387
388 public static final String PAYMENT_REQUEST = "Payment Request";
389 public static final BigDecimal MAX_PERCENT = new BigDecimal(100);
390 public static final BigDecimal ZERO_PERCENT = new BigDecimal(0);
391 }