001 package org.kuali.ole; 002 003 import java.io.File; 004 import java.math.BigDecimal; 005 import java.util.Collections; 006 import java.util.HashMap; 007 import java.util.Map; 008 009 /** 010 * Created by IntelliJ IDEA. 011 * User: pvsubrah 012 * Date: 4/7/12 013 * Time: 10:55 PM 014 * To change this template use File | Settings | File Templates. 015 */ 016 public class OLEConstants { 017 public static final String MARC_XML = "marc_xml"; 018 public static final String FIELD_035 = "035"; 019 public static final String OLE_BIB_RECORD = "oleBibRecord"; 020 021 public static final String OLEML_FORMAT = "oleml"; 022 public static final String WORK_CATEGORY = "work"; 023 public static final String BIB_DOC_TYPE = "bibliographic"; 024 025 public static final String INSTANCE_DOC_TYPE = "instance"; 026 public static final String MARC_FORMAT = "marc"; 027 public static final String DUBLIN_FORMAT = "dublin"; 028 public static final String UNQUALIFIED_DUBLIN_FORMAT = "dublinunq"; 029 public static final String UPDATE_ITEM_FLAG = "updateItem"; 030 public static final String BIB_CREATION_FLAG = "bibliographicRecordCreated"; 031 public static final String HOLDING_DOC_TYPE = "holdings"; 032 033 public static final String EXCEPTION_CREATION_FLAG = "exceptionRouted"; 034 public static final String ISBN_TERM = "ISBN Term"; 035 public static final String ISBN_FUNCTION_DEF_NAME = "isbnFunction"; 036 public static final String EXISTING_FIELD = "existingfield"; 037 public static final String INCOMING_FIELD = "incomingfield"; 038 public static final String VENDOR_PROFILE_CODE = "vendorProfileCode"; 039 public static final String OLE_ORDER_RECORD = "oleOrderRecord"; 040 public static final String PROFILE_ATTRIBUTE_LIST = "profileAttributesList"; 041 public static final String DATA_CARRIER_SERVICE = "dataCarrierService"; 042 public static final String REQUEST_BIB_RECORD = "requestBibRecord"; 043 044 public static final String OLE_CHART_CODE = "chartCode"; 045 public static final String OLE_ITEM_CHART_CODE = "itemChartCode"; 046 public static final String ORG_CODE = "orgCode"; 047 public static final String RECV_REQUIRED = "receivingRequired"; 048 public static final String CONTRACT_MANAGER = "contractMgr"; 049 public static final String ASSIGN_TO_USER = "assignToUser"; 050 public static final String USE_TAXIND = "useTaxInd"; 051 public static final String ORDER_TYPE = "orderType"; 052 public static final String FUNDING_SOURCE = "fundingSource"; 053 public static final String PAYREQ_POSITIVE_APPROVAL = "payReqPositiveApprovalReq"; 054 public static final String PURCHASE_CONFIRMATION_INDICATOR = "purchaseorderconfirmationindicator"; 055 public static final String REQUISITION_SOURCE = "requisitionSource"; 056 public static final String DELIVERY_CAMPUS = "deliveryCampus"; 057 public static final String BUILDING = "building"; 058 public static final String VENDOR_CHOICE = "vendorchoice"; 059 public static final String ROUTE_RQUESTER = "routeRequester"; 060 public static final String ITEM_TYPE = "itemType"; 061 public static final String PUBLIC_VIEW = "publicView"; 062 public static final String PO_TRAMISSION_METHOD = "poTransmissionMethod"; 063 public static final String INTERNAL_PURCHASING_LIMIT = "internalPurchasingLimit"; 064 public static final String COST_SOURCE = "costSource"; 065 public static final String PERCENT = "percent"; 066 067 public static final String ERROR_MESSAGE_UPLOAD = "Please select either both raw marc,edi or marc,edi xml."; 068 public static final String ERROR_AGENDA_NAME = "Please choose a valid agenda name"; 069 public static final String STAFF_UPLOAD_SUCCESS = "Profile executed successfully. Please click Load Reports to view load summary or the OLE tab to return to the OLE Main Menu."; 070 public static final String STAFF_UPLOAD_FAILURE = "Failed to perform Staff Upload."; 071 public static final String PROFILE_BUILDER_SELECT_FILE = "Please select file to upload."; 072 public static final String PROFILE_BUILDER_SUCCESS = "Profile File uploaded successfully."; 073 public static final String PROFILE_BUILDER_FAILURE = "Failed to upload Profile File."; 074 public static final String PROFILE_BUILDER_INVALID_SCHEMA = "Invalid Schema File Uploaded."; 075 076 077 public static final String KRMS_BUILDER_SUCCESS = "Krms File uploaded successfully."; 078 public static final String KRMS_BUILDER_FAILURE = "Failed to upload Krms File."; 079 public static final String KRMS_BUILDER_SELECT_FILE = "Please select file to upload."; 080 public static final String KRMS_BUILDER_INVALID_SCHEMA = "Invalid Schema File Uploaded."; 081 public static final String OLE_CURRENT_DATE_FUNCTION = "currentDateFunction"; 082 public static final String CHECK_DIGIT_ROUTINE = "CheckDigitRoutine" ; 083 084 //MARC EDITOR messages 085 public static final String MARC_EDITOR_SUCCESS = "Record saved successfully. Please close the window to return to OLE."; 086 public static final String MARC_EDITOR_FAILURE = "Failed to save record."; 087 public static final String MARC_EDITOR_REQUIRED_MSG = "Minimum one leader field, one Control Field and one Data Field are required. "; 088 public static final String OLE_DOCSTORE_RESPONSE_STATUS = "success"; 089 public static final String MARC_EDITOR_TITLE_245 = "245"; 090 public static final String MARC_EDITOR_TITLE_LETTER = "|a"; 091 public static final String MARC_EDITOR_INVALID_TITLE = "Minimum title field 245 and |a is required. "; 092 093 public static final String DOCSTORE_HELPER_SERVICE = "docstoreHelperService"; 094 public static final String DISCOVERY_HELPER_SERVICE = "discoveryHelperService"; 095 public static final String OLE_WEB_SERVICE_PROVIDER = "oleWebServiceProvider"; 096 public static final String OLE_NAMESPACE = "OLE"; 097 public static final String BIB_INFO_LIST_FROM_SOLR_RESPONSE = "bibRecordFromSOLRResponse"; 098 public static final String ITEM_DOC_TYPE = "item"; 099 public static final String SOURCEHOLDINGS_DOC_TYPE = "sourceHoldings"; 100 101 public static final String PROFILE_AGENDA_NM = "YBP"; 102 public static final String PROFILE_ATTRIBUTE_NM = "orderPerFile"; 103 public static final String PROFILE_ATTRIBUTE_VALUE = "SINGLE-ORDER"; 104 105 public static final String BIB_UNIQUE_ID = "uniqueId"; 106 public static final String BIB_INSTANCE_ID = "instanceIdentifier"; 107 public static final String BIB_ITEM_ID = "itemIdentifier"; 108 public static final String NOTE_TYPE = "public"; 109 public static final String LOCATION_LOCATIONLEVEL_NAME="location.locationLevel.name"; 110 public static final String LOCATION_LOCATIONLEVEL_LEVEL="location.locationLevel.level"; 111 public static final String PERMANENT="permanent"; 112 public static final String TRUE="true"; 113 114 public static final class OlePatron { 115 public static final String PATRON_ID = "olePatronId"; 116 public static final String BARCODE = "barcode"; 117 public static final String OLE_ADDRESS_ID = "oleAddressId"; 118 public static final String ENTITY_ADDRESS_ID = "id"; 119 public static final String ENTITY_ID = "entityId"; 120 public static final String ENTITY_BO_ID = "id"; 121 public static final String PATRON_MAINTENANCE_ACTION_LINK = "patronMaintenance"; 122 public static final String PATRON_MAINTENANCE_DATE_FORMAT = "yyyyMMdd"; 123 public static final String ERROR_PATRON_GENERAL_BLOCK_NOTES = "error.patron.general.block.notes"; 124 public static final String ERROR_PATRON_ACTIVATION_DATE = "error.patron.activation.date"; 125 public static final String ERROR_PATRON_EXPIRATION_DATE = "error.patron.expiration.date"; 126 public static final String ERROR_PROXY_PATRON_ACTIVATION_DATE = "error.proxy.patron.activation.date"; 127 public static final String ERROR_PROXY_PATRON_EXPIRATION_DATE = "error.proxy.patron.expiration.date"; 128 public static final String ERROR_PATRON_VALID_ADDRESS_TO_DATE = "error.patron.valid.addressTo.date"; 129 public static final String ERROR_PROXY_PATRON_ID = "error.proxy.patron.id"; 130 public static final String PATRON_GENERAL_BLOCK_NOTES = "General Block Notes"; 131 public static final String ERROR_PATRON_NOT_FOUND = "error.patron.not.found"; 132 public static final String ERROR_PATRON_HAS_LOAN = "error.patron.cannot.delete"; 133 public static final String SAVE_SUCCESSFUL_MSG = "Successfully saved"; 134 public static final String ERROR_DEFAULT_MESSAGE = "Either of the address or email or phone must have a default"; 135 public static final String ERROR_ADDRESS_SOURCE_REQUIRED = "Address Source is required"; 136 } 137 138 public static final String PATRON_ENTITY_ACTIVE = "activeIndicator"; 139 140 //patronMerge 141 public static final String PATRON_MERGE_SURVIVOR_SELECT = "error.select.survivor"; 142 public static final String PATRON_MERGE_DYING_PATRON_SELECT = "error.select.dyingPatron"; 143 144 // patron ingest message 145 public static final String PATRON_RECORD_SELECT_FILE = "Please select file to upload."; 146 public static final String PATRON_RECORD_SUCCESS = "Patron File uploaded successfully."; 147 public static final String PATRON_RECORD_FAILURE = "Failed to upload Patron File."; 148 public static final String PATRON_RECORD_INVALID_SCHEMA = "Invalid Schema File Uploaded."; 149 public static final String DOCUMENT_HEADER_SERVICE = "documentService"; 150 public static final String PATRON_CONVERTER_SERVICE = "olePatronConverterService"; 151 public static final String FAILED_PATRON_ATTACHMENT_DOWNLOAD_URL= "patronrecordcontroller?viewId=OlePatronRecordView&methodToCall=downloadAttachment&olePatronSummaryId="; 152 public static final String FAILED_PATRON_RECORD_NAME = "_patron_err.xml"; 153 public static final String PATRON_SUMMARY_REPORT_ID = "olePatronSummaryId"; 154 public static final String NAME = "name"; 155 public static final String CODE = "code"; 156 public static final String PREFERRED = "Preferred"; 157 public static final String PATRON_NOTE_TYPE_NAME = "patronNoteTypeName"; 158 public static final String PATRON_NOTE_TYPE_CODE = "patronNoteTypeCode"; 159 public static final String BORROWER_TYPE_NAME = "borrowerTypeName"; 160 public static final String BORROWER_TYPE_CODE = "borrowerTypeCode"; 161 public static final String SOURCE_CODE = "oleSourceCode"; 162 public static final String STATISTICAL_CATEGORY_CODE = "oleStatisticalCategoryCode"; 163 public static final String STAGING_DIRECTORY = "staging.directory"; 164 public static final String PATRON_FILE_DIRECTORY = "/patron/"; 165 public static final String USER_HOME_DIRECTORY = "user.home"; 166 // Location Ingest message 167 public static final String LOCATION_RECORD_SELECT_FILE = "Please select file to upload."; 168 public static final String LOCATION_RECORD_INVALID_SCHEMA = "Invalid Schema File Uploaded."; 169 public static final String LOCATION_RECORD_SUCCESS = "Location File Uploaded successfully"; 170 public static final String LOCATION_RECORD_FAILURE = "Failed to upload location file."; 171 public static final String OLE_LOCATION_DOCUMENT_TYPE = "OLE_LMD"; 172 public static final String OLE_LOCATION_DESCRIPTION = "Ole Location"; 173 public static final String FAILED_LOCATION_ATTACHMENT_DOWNLOAD_URL= "locationcontroller?viewId=OleLocationView&methodToCall=downloadAttachment&oleLocationSummaryId="; 174 public static final String FAILED_LOCATION_RECORD_NAME = "_location_err.xml"; 175 public static final String LOCATION_SUMMARY_REPORT_ID = "oleLocationSummaryId"; 176 public static final String LOCATION_ERROR_FILE_PATH = "/location/"; 177 178 //Loan 179 public static final String ITEM_STATUS_LOANED = "LOANED"; 180 public static final String ITEM_STATUS_AVAILABLE = "AVAILABLE"; 181 public static final String CHANGE_LOC_MESS = "Are you sure you want to change the Circulation Location?You will lose your information."; 182 public static final String CIR_LOC_NULL = "Please select your circulation location."; 183 //Instance Record Meta Data constants 184 public static final String STATUS = "status"; 185 public static final String FAST_ADD_FLAG = "fastAddFlag"; 186 public static final String SUPRESS_FROM_PUBLIC = "supressFromPublic"; 187 public static final String CREATED_BY = "createdBy"; 188 public static final String DATE_ENTERED = "dateEntered"; 189 public static final String LAST_UPDATED = "lastUpdated"; 190 public static final String LAST_UPDATED_BY = "lastUpdatedBy"; 191 public static final String DATE_ENTERED_FORMAT = "MMM dd, yyyy"; 192 public static final String LAST_UPDATED_FORMAT = "MMM dd, yyyy hh:mm:ss a"; 193 194 //Instance Editor Messages 195 public static final String INSTANCE_EDITOR_SUCCESS = "Record Submitted Successfully"; 196 public static final String INSTANCE_EDITOR_FAILURE = "Failed to Submit Record"; 197 public static final String INSTANCE_EDITOR_LOAD_SUCCESS = "Record Loaded Successfully"; 198 public static final String INSTANCE_EDITOR_DELETE_SUCCESS = "Record Deleted Successfully"; 199 public static final String INSTANCE_EDITOR_LOAD_FAILURE = "Failed to Load Record"; 200 201 //Instance Editor constants 202 public static final String SHELVING_LOCATION_LEVEL_ID = "4"; 203 public static final String NON_SERIAL_HOLDINGS_TEXT = "Holdings"; 204 public static final String ROOT_NODE = "Root"; 205 public static final String NON_ELECTRONIC_PREFIX_TEXT = "c."; 206 public static final String ITEM_LEVEL_TEXT = "Item"; 207 public static final String ITEM_ELECTRONIC = "electronic"; 208 public static final String NO_LOCATION_ITEM = "No Location Item"; 209 public static final String ITEM_PAGE = "ItemTabs"; 210 public static final String HOLDINGS_PAGE = "HoldingTabs"; 211 public static final String DOC_TYPE = "DocType"; 212 public static final String NEW_ITEM_ID = "NEW_ITEM"; 213 214 //Docstore operations 215 public static final String INGEST_OPERATION = "ingest"; 216 public static final String CHECK_IN_OPERATION = "checkIn"; 217 public static final String CHECK_IN_DATE = "Check-in Date is not a current date"; 218 public static final String VERIFY_PIECES = "Verify all the "; 219 public static final String PIECES_RETURNED = " pieces are returned or not." ; 220 221 public static final class OleAccessMethod { 222 public static final String ACCESS_METHOD_CODE = "dataObject.accessMethodCode"; 223 public static final String ACCESS_METHOD_CD = "accessMethodCode"; 224 } 225 226 public static final class OleAcquisitionMethod { 227 public static final String ACQUISITION_METHOD_CODE = "dataObject.acquisitionMethodCode"; 228 public static final String ACQUISITION_METHOD_CD = "acquisitionMethodCode"; 229 } 230 231 public static final class OleAction { 232 public static final String ACTION_CODE = "dataObject.actionCode"; 233 public static final String ACTION_CD = "actionCode"; 234 } 235 236 public static final class OleCountryCodes { 237 public static final String COUNTRY_CODE = "dataObject.countryCode"; 238 public static final String COUNTRY_CD = "countryCode"; 239 } 240 241 public static final class OleStatisticalSearchingCodes { 242 public static final String STATISTICAL_SEARCHING_CODE = "dataObject.statisticalSearchingCode"; 243 public static final String STATISTICAL_SEARCHING_CD = "statisticalSearchingCode"; 244 } 245 246 public static final class OleTypeOfOwnership { 247 public static final String TYPE_OF_OWNERSHIP_CODE = "dataObject.typeOfOwnershipCode"; 248 public static final String TYPE_OF_OWNERSHIP_CD = "typeOfOwnershipCode"; 249 } 250 251 252 public static final class OleInstanceItemType { 253 public static final String INSTANCE_ITEM_TYPE_CODE = "dataObject.instanceItemTypeCode"; 254 public static final String INSTANCE_ITEM_TYPE_CD = "instanceItemTypeCode"; 255 } 256 257 public static final class OleSpecificRetentionPolicyTypeUnit { 258 public static final String SPECIFIC_POLICY_UNIT_TYPE_CODE = "dataObject.specificPolicyUnitTypeCode"; 259 public static final String SPECIFIC_POLICY_UNIT_TYPE_CD = "specificPolicyUnitTypeCode"; 260 } 261 262 public static final class OleSourceOfTerm { 263 public static final String SOURCE_OF_TERM_CODE = "dataObject.sourceOfTermCode"; 264 public static final String SOURCE_OF_TERM_CD = "sourceOfTermCode"; 265 } 266 267 public static final class OleReceiptStatus { 268 public static final String RECEIPT_STATUS_CODE = "dataObject.receiptStatusCode"; 269 public static final String RECEIPT_STATUS_CD = "receiptStatusCode"; 270 } 271 272 public static final class OlePrivacy { 273 public static final String PRIVACY_CODE = "dataObject.privacyCode"; 274 public static final String PRIVACY_CD = "privacyCode"; 275 } 276 277 public static final class OleNotationType { 278 public static final String NOTATION_TYPE_CODE = "dataObject.notationTypeCode"; 279 public static final String NOTATION_TYPE_CD = "notationTypeCode"; 280 } 281 282 public static final class OleRecordType { 283 public static final String RECORD_TYPE_CODE = "dataObject.recordTypeCode"; 284 public static final String RECORD_TYPE_CD = "recordTypeCode"; 285 } 286 287 public static final class OleReproductionPolicy { 288 public static final String REPRODUCTION_POLICY_CODE = "dataObject.reproductionPolicyCode"; 289 public static final String REPRODUCTION_POLICY_CD = "reproductionPolicyCode"; 290 } 291 292 public static final class OleSeperateOrCompositeReport { 293 public static final String SEPERATE_OR_COMPOSITE_REPORT_CODE = "dataObject.seperateOrCompositeReportCode"; 294 public static final String SEPERATE_OR_COMPOSITE_REPORT_CD = "seperateOrCompositeReportCode" ; 295 } 296 297 public static final class OleShelvingOrder { 298 public static final String SHELVING_ORDER_CODE = "dataObject.shelvingOrderCode"; 299 public static final String SHELVING_ORDER_CD ="shelvingOrderCode" ; 300 } 301 302 public static final class OleShelvingScheme { 303 public static final String SHELVING_SCHEME_CODE = "dataObject.shelvingSchemeCode"; 304 public static final String SHELVING_SCHEME_CD ="shelvingSchemeCode" ; 305 } 306 307 public static final class OleCompleteness { 308 public static final String COMPLETENESS_CODE = "dataObject.completenessCode"; 309 public static final String COMPLETENESS_CD = "completenessCode"; 310 } 311 312 public static final class OleElectronicLocationAndAccessRelationship { 313 public static final String ELECTRONIC_LOCATION_AND_ACCESS_RELATIONSHIP_CODE = "dataObject.elaRelationshipCode"; 314 public static final String ELECTRONIC_LOCATION_AND_ACCESS_RELATIONSHIP_CD = "elaRelationshipCode"; 315 } 316 317 public static final class OleLocationStatus { 318 public static final String LOCATION_STATUS_CODE = "dataObject.locationStatusCode"; 319 public static final String LOCATION_STATUS_CD = "locationStatusCode"; 320 } 321 322 public static final class OleSpecificRetentionPolicyType { 323 public static final String SPECIFIC_RETENTION_POLICY_TYPE_CODE = "dataObject.specificRetentionPolicyTypeCode"; 324 public static final String SPECIFIC_RETENTION_POLICY_TYPE_CD = "specificRetentionPolicyTypeCode"; 325 } 326 327 public static final class OleEncodingLevel { 328 public static final String ENCODING_LEVEL_CODE = "dataObject.encodingLevelCode"; 329 public static final String ENCODING_LEVEL_CD = "encodingLevelCode"; 330 } 331 332 public static final class OleFieldEncodingLevel { 333 public static final String FIELD_ENCODING_LEVEL_CODE = "dataObject.fieldEncodingLevelCode"; 334 public static final String FIELD_ENCODING_LEVEL_CD = "fieldEncodingLevelCode"; 335 } 336 337 public static final class OleGeneralRetentionPolicy { 338 public static final String GENERAL_RETENTION_POLICY_CODE = "dataObject.generalRetentionPolicyCode"; 339 public static final String GENERAL_RETENTION_POLICY_CD = "generalRetentionPolicyCode"; 340 } 341 342 public static final class OleLendingPolicy { 343 public static final String LENDING_POLICY_CODE = "dataObject.lendingPolicyCode"; 344 public static final String LENDING_POLICY_CD = "lendingPolicyCode"; 345 346 } 347 348 349 //OleCirculationDesk Constants 350 public static final class OleCirculationDesk { 351 public static final String OLE_CIRCULATION_DESK_CODE = "dataObject.circulationDeskCode"; 352 public static final String OLE_CIRCULATION_DESK_CD_EXIST= "error.duplicate.circulationDeskCode"; 353 public static final String OLE_CIRCULATION_DESK_CD = "circulationDeskCode"; 354 public static final String OLE_CIRCULATION_DESK_MAP = "dataObject.active"; 355 public static final String OLE_CIRCULATION_DESK_MAP_ERROR = "error.record.mapped"; 356 public static final String OLE_CIRCULATION_DESK_ID = "circulationDeskId"; 357 358 } 359 360 public static final class OleLocationLevel{ 361 public static final String Edit_Location_Level_perm = "Edit Location Level Name Field"; 362 public static final String Edit_Location_level_nmspc_code="KR-KRAD"; 363 public static final String DESCRIPTION="Description"; 364 public static final String EXPLANATION="Explanation"; 365 public static final String DOCUMENT_NUMBER="Organization Document Number"; 366 public static final String CODE="Level Code"; 367 public static final String PARENT_ID="Parent Level Id"; 368 } 369 370 371 public static final class EntityAddressTypeBo { 372 public static final String ADDRESS_TYPE_NAME = "dataObject.name"; 373 } 374 375 public static final class EntityPhoneTypeBo { 376 public static final String PHONE_TYPE_NAME = "dataObject.name"; 377 } 378 379 public static final class EntityEmailTypeBo { 380 public static final String EMAIL_TYPE_NAME = "dataObject.name"; 381 } 382 383 public static final class OleBorrowerType { 384 public static final String BORROWER_TYPE_CODE = "dataObject.borrowerTypeCode"; 385 public static final String BORROWER_TYPE_CD = "borrowerTypeCode"; 386 } 387 public static final class OleCheckList { 388 public static final String CHECK_LIST_MAINTENANCE_ACTION_LINK = "oleCheckListMaintenance"; 389 public static final String CHECK_LIST_LINK= "oleCheckListMaintenance?viewTypeName=MAINTENANCE&returnLocation="; 390 public static final String METHOD_TO_CALL= "&methodToCall=downloadAttachment&dataObjectClassName=org.kuali.ole.license.bo.OleCheckListBo&oleCheckListId="; 391 } 392 393 public static final class OleLicenseRequest { 394 public static final String LICENSE_REQUEST_DOC_TYPE = "LicenseRequestDocument"; 395 public static final String LICENSE_DOCUMENT_INITIATOR = "license.document.initiator"; 396 public static final String LICENSE_REQ_DOCUMENT_STATUS = "license.document.status"; 397 public static final String LICENSE_DESC = "LicenseNeeded-REQS_"; 398 public static final String AGREEMENT_LOC = "/tmp/agreement"; 399 public static final String AGREEMENT_LOCATION = File.separator+"agreement"+ File.separator+"agreement_upload"; 400 public static final String AGREEMENT_TMP_LOCATION = File.separator+"agreement"+ File.separator+"agreement_tmp"; 401 public static final String LICENSE_RULE_VAILDATIONS = "license.rule.validations"; 402 public static final String LICENSE_DISAPPROVE_VALIDATIONS = "license.disapprove.validations"; 403 public static final String LICENSE_EVENT_LOG_CHECK = "license.event.log.check"; 404 public static final String LICENSE_AGENDA_NM = "LICENSE_POLICY"; 405 public static final String SIGNATORY_ROLE_NM = "OLE_Signatory"; 406 public static final String LICENSE_MNGR_ROLE_NM = "OLE_LicenseManager"; 407 public static final String REVIEWER_ROLE_NM = "OLE_LicenseReviewer"; 408 public static final String APPROVER_ROLE_NM = "OLE_Licensing_Approver"; 409 public static final String SIGNATORY_ONLY = "SIGO"; 410 public static final String REVIEW_ONLY = "RVWO"; 411 public static final String APPROVE_ONLY = "APPO"; 412 public static final String FULL_APPROVAL = "FAPP"; 413 public static final String UNIVERSITY_COMPLETE = "UNIC" ; 414 public static final String PENDING_SIGNATURE = "PSIG"; 415 public static final String PENDING_REVIEW = "PREV"; 416 public static final String PENDING_APPROVAL = "PAPP"; 417 public static final String PENDING_UNIVERSITY = "PUNI"; 418 public static final String SIGNATORY_COMPLETE ="SIGC"; 419 public static final String REVIEW_COMPLETE ="RVWC"; 420 public static final String LICENSE_COMPLETE ="LC"; 421 public static final String NEGOTIATION_FAILED ="LNF"; 422 public static final String WORKFLOW_INITIAL_FILTER = "License Request workflow initial filter"; 423 public static final String FULL_WORKFLOW="Full License Request workflow"; 424 public static final String WORKFLOW_SEC_FILTER="License Request secondary filter"; 425 /*public static final String LIC_NAMESPACE="OLE";*/ 426 public static final Map<String,String> INITIAL_FILTER_WORKFLOW_CODE = getInitialFilterWprkflowCode(); 427 public static final Map<String,String> SEC_FILTER_WORKFLOW_CODE= getSecondFilterWprkflowCode(); 428 public static final String START_TAG="</oldMaintainableObject>"; 429 public static final String END_TAG="<fieldsClearedOnCopy>"; 430 public static final String ASSIGNEE="assignee"; 431 public static final String LOCATION_ID="locationId"; 432 public static final String STATUS_CODE="licenseRequestStatusCode"; 433 public static final String BIB_TITLE="bibliographicTitle"; 434 public static final String MSG_DELETE_DOC= "error.delete.document"; 435 public static final String ERROR_FILE_NOT_FOUND= "error.file.not.found"; 436 public static final String ERROR_CHECKLIST_NOT_FOUND = "error.checklist.not.found"; 437 438 public static final String LICENSE_COMPLETE_RETURN ="LRC"; 439 public static final String LICENSE_NEGOTIATION_FAILED ="NF"; 440 public static final String AGREEMENT_ERROR = "error.agreement.detail"; 441 public static final String LICENSE_REQ_INTIAL_EVENT_LOG = " License Request initiated by Requisition."; 442 public static final String LICENSE_NMSPACE = "KR-LIC"; 443 public static final String LICENSE_ASSIGNEE_ROLE = "OLE_LicenseAssignee"; 444 public static final String LICENSE_INITIAL_WORKFLOW = "LND"; 445 public static final String LICENSE_INITIAL_LOCATON = "1"; 446 public static final String LICENSE_REQUEST_TYPE_ID = "licenseRequestTypeId"; 447 public static final String LICENSE_NEEDED = "LN"; 448 public static final String REQUISITION_DOC_NUM = "requisitionDocNumber"; 449 public static final String KEW_DOC_HANDLER = "kew/DocHandler.do?command=displayDocSearchView&docId="; 450 public static final String LICENSE_RECEIVED = "LIRC"; 451 public static final String LICENSE_REQUESTED = "LRTD"; 452 public static final String LICENSE_REQUESTED_VALUE = "LRQ"; 453 public static final String LICENSE_IN_PROCESS = "IPS"; 454 public static final String LICENSE_IN_PROCESS_VALUE = "IP"; 455 public static final String LICENSE_IN_NEGO = "INN"; 456 public static final String LICENSE_IN_NEGO_VALUE = "IN"; 457 public static final String ADDENDUM = "ADDUM"; 458 public static final String EVENT_TYPE_NM="eventTypeName"; 459 public static final String EVENT_TYPE_NAME="dataObject.eventTypeName"; 460 461 public static final Map<String, String> getInitialFilterWprkflowCode() { 462 Map<String, String> initalWorkflowCodes = new HashMap<String, String>(); 463 initalWorkflowCodes.put("ADDUM","ADDUM"); 464 initalWorkflowCodes.put("APPO","APPO"); 465 initalWorkflowCodes.put("FAPP","FAPP"); 466 initalWorkflowCodes.put("REWAL","REWAL"); 467 initalWorkflowCodes.put("RVWO","RVWO"); 468 initalWorkflowCodes.put("SIGO","SIGO"); 469 return Collections.unmodifiableMap(initalWorkflowCodes); 470 } 471 472 public static final Map<String, String> getSecondFilterWprkflowCode() { 473 Map<String, String> secondWorkflowCodes = new HashMap<String, String>(); 474 secondWorkflowCodes.put("INN","INN"); 475 secondWorkflowCodes.put("IPS","IPS"); 476 secondWorkflowCodes.put("LIRC","LIRC"); 477 secondWorkflowCodes.put("LND","LND"); 478 secondWorkflowCodes.put("LRTD","LRTD"); 479 return Collections.unmodifiableMap(secondWorkflowCodes); 480 } 481 } 482 public static final String NAMESPACE_CODE_SELECTOR = "namespaceCode"; 483 public static final String NAME_SELECTOR = "name"; 484 485 //Loan Constants 486 public static final String PTRN_Link ="<a id=\"u20\" href=\"patronMaintenance?viewTypeName=MAINTENANCE&returnLocation=http%3A%2F%2Flocalhost%3A9080%2FOLE_Rice2%2Fportal.do&methodToCall=start&dataObjectClassName=org.kuali.ole.patron.bo.OlePatronDocument\" target=\"_blank\" title=\"Create New Patron with\" class=\"uif-field uif-link uif-createNewLink\">Create New Patron</a>"; 487 public static final String PTRN_BARCD_NOT_EXT = "Patron Barcode does not exist."; 488 public static final String ITM_BARCD_NT_AVAL_DOC = "Item Barcode is not available in Docstore"; 489 public static final String TIT_NT_EXT = "Title does not exist."; 490 public static final String PAR_EXP = "Parser Exception-item xml to item pojo."; 491 public static final String ITM_STS_NT_AVAL="Item Status not available in item xml."; 492 public static final String KRMS_EXP_MSG = "Please ingest the deliver xml in KRMS Builder." ; 493 public static final String ITM_STS_TO_DOC_FAIL = "Item Status to docStore failed"; 494 public static final String DAT_FORM = "MMM dd, yyyy hh:mm:ss a"; 495 public static final String INVAL_LOC = "Invalid location"; 496 public static final String INVAL_ITEM = "Invalid item"; 497 public static final String CLAIMS_ITM_ERR_INFO="No selected items from previous session."; 498 public static final String OVERRIDE_LOGIN_ERR_INFO="Invalid User for override."; 499 public static final String ALTER_DUE_DATE_ERR_INFO="No selected items."; 500 public static final String FAST_ADD_ITM_ERR_INFO="Record failed to save."; 501 public static final String FAST_ADD_ITM_SUCCESS_INFO="Record saved successfully."; 502 public static final String RENEWAL_ITM_ERR_INFO="No selected items from previous session."; 503 public static final String RENEWAL_ITM_SUCCESS_INFO="Renewal is done successfully."; 504 public static final String RENEWAL_ITM_POPUP="Are you want to renewal the item?"; 505 public static final String FAST_ADD_ITEM_DEFAULT_STATUS="AVAILABLE"; 506 public static final String LOC_CD = "locationCode"; 507 public static final String LOC_CODE = "dataObject.locationCode"; 508 public static final String LOCATION_LEVEL_SHELVING = "Shelving Location"; 509 public static final String LOCATION_LEVEL_COLLECTION = "Collection"; 510 public static final String LOCATION_LEVEL_LIBRARY="Library"; 511 public static final String LOCATION_LEVEL_INSTITUTION = "Institution"; 512 public static final String LOCATION_LEVEL_CAMPUS = "Campus"; 513 public static final String TITLE = "title"; 514 public static final String AUTHOR = "author"; 515 public static final String BIB_UUID = "bibUuid"; 516 public static final String INSTANCE_UUID = "instanceUuid"; 517 public static final String ITEM_UUID = "itemUuid"; 518 public static final String ITEM_BARCODE_DISPLAY = "ItemBarcode_display:"; 519 public static final String INSTANCE_IDENTIFIER = "instanceIdentifier"; 520 public static final String ITEM_IDENTIFIER_DISPLAY = "ItemIdentifier_display"; 521 public static final String BIB_IDENTIFIER = "bibIdentifier"; 522 523 public static final class OleItemAvailableStatus { 524 public static final String ITEM_AVAILABLE_STATUS_CODE = "dataObject.itemAvailableStatusCode"; 525 public static final String ITEM_AVAILABLE_STATUS_CD = "itemAvailableStatusCode"; 526 } 527 528 public static final class OleBibProtectedField { 529 public static final String BIB_PROTECTED_ACTION_LINK = "oleBibProtectedFieldMaintenance"; 530 } 531 532 //Agrreement download constants 533 public static final class OleAgreementDownloadConstants { 534 public static final String AGREEMENT_CHECKOUT_LOCATION = File.separator+"agreement"+ File.separator+"agreement_checkout/request.xml"; 535 public static final String AGREEMENT_CHECKOUT_LOCATION_ROOT=File.separator+"agreement"+ File.separator+"agreement_checkout/"; 536 537 } 538 539 public static final class OleCirculationDeskDetail{ 540 public static final String OPERATOR_ROLE_NAME="Operator"; 541 public static final String OPERATOR_ROLE_NAMESPACE="KR-PTRN"; 542 } 543 544 public static final String CRCL_DSK_NO_LOC_ERR = "Preferred desk should be selected"; 545 public static final String CRCL_DSK_LOC_ERR = " Operator and desk should be selected for mapping"; 546 public static final String CRCL_DSK_INVALID_OPR = "Not a valid Operator"; 547 public static final String CRCL_DSK_SUCCESS = "Circulation desk mapping created successfully"; 548 public static final String UN_PAID = "Un Paid"; 549 public static final String PAID = "Paid"; 550 public static final String FULL_PAID = "Fully Paid"; 551 public static final String FEE_TYPE_NONE = "None"; 552 public static final BigDecimal BIGDECIMAL_DEF_VALUE = new BigDecimal(0.00); 553 public static final String PAID_AMT_EXC ="error.paid.amount.exceeds"; 554 public static final String PAY_AMT_EMPTY="error.pay.amount.empty"; 555 public static final String ITM_BAR_NOT_AVAL="error.item.barcode.not.available"; 556 public static final String ENTR_ITM_BAR ="error.enter.item.barcode"; 557 public static final String INV_ITM_BAR ="error.invalid,barcode"; 558 559 560 public static final class OleDeliverRequest{ 561 public static final String DELIVER_REQUEST_MAINTENANCE_ACTION_LINK="deliverRequestMaintenance"; 562 563 public static final String PICKUP_LOCATION="error.deliver.pickupLocation"; 564 public static final String PATRON_RECORD_EXPIRE="error.deliver.patron.expire"; 565 public static final String INVALID_PROXY="error.deliver.invalid.proxy"; 566 public static final String NO_DELIVERY_PRIVILEGE="error.deliver.no.delivery.privilege"; 567 public static final String NO_PAGE_PRIVILEGE="error.deliver.no.paging.privilege"; 568 public static final String ALREADY_RAISED="error.deliver.request.raised"; 569 public static final String TRANSIT_ERROR= "error.deliver.request.transit"; 570 public static final String QUEUE_DUPLICATE= "error.deliver.queue.duplicate"; 571 public static final String BORROWER_ID = "borrowerId"; 572 public static final String PROXY_BORROWER_ID = "proxyBorrowerId"; 573 public static final String PROXY_PATRON_ID ="proxyPatronId"; 574 public static final String TRANSIT_REQUEST_RAISED = "error.deliver.request.transit.raised"; 575 public static final String REQUEST_TYPE_ID = "requestTypeId"; 576 public static final String ITEM_IN_LOAN= "error.deliver.request.item.loan"; 577 public static final String ITEM_ID= "itemId"; 578 public static final String REQUEST_ID= "requestId"; 579 public static final String PATRON_ID= "olePatronId"; 580 public static final String LOAN_PATRON_ID= "patronId"; 581 public static final String REQUESTER_PATRON= "Patron"; 582 public static final String REQUESTER_PROXY_PATRON= "Proxy Patron"; 583 public static final String REQUESTER_OPERATOR= "Operator"; 584 public static final String REQUEST_TYPE_ID_1 = "1"; 585 public static final String REQUEST_TYPE_ID_2 = "2"; 586 public static final String REQUEST_TYPE_ID_3 = "3"; 587 public static final String REQUEST_TYPE_ID_4 = "4"; 588 public static final String REQUEST_TYPE_ID_5 = "5"; 589 public static final String REQUEST_TYPE_ID_6 = "6"; 590 public static final String REQUEST_TYPE_ID_7 = "7"; 591 public static final String REQUEST_TYPE_ID_8 = "8"; 592 public static final String SHELVING = "Shelving"; 593 public static final String QUEUE_POSITION = "borrowerQueuePosition"; 594 public static final String ITEM_BARCODE = "itemBarCode"; 595 public static final String ITEM_TYPE_CODE = "instanceItemTypeCode"; 596 public static final String DATE_FORMAT = "yyyyMMdd"; 597 public static final String INTRANSIT_STATUS = "INTRANSIT"; 598 public static final String ITEM_AVAILABLE ="error.deliver.request.item.available" ; 599 public static final String ITEM_NOT_ELIGIBLE ="error.deliver.request.item.eligible" ; 600 public static final String ITEM_ALREADY_LOANED ="error.deliver.request.item.already.loan"; 601 public static final String MAX_REQUEST_REACHED = "error.deliver.request.maximum.reached"; 602 public static final String NO_RECALL_REQUEST = "error.deliver.request.recall"; 603 public static final String REQUEST_TYPE_CD = "requestTypeCode"; 604 } 605 }