1 package org.kuali.ole.describe.form;
2
3 import org.apache.commons.lang.StringUtils;
4 import org.kuali.ole.deliver.bo.OLELoanIntransitRecordHistory;
5 import org.kuali.ole.describe.bo.*;
6 import org.kuali.ole.docstore.common.document.Bib;
7 import org.kuali.ole.docstore.common.document.BibTree;
8 import org.kuali.ole.docstore.indexer.solr.DocumentLocalId;
9 import org.kuali.ole.docstore.model.bo.WorkBibDocument;
10 import org.kuali.ole.select.bo.OLESerialReceivingDocument;
11 import org.kuali.ole.select.bo.OLESerialReceivingHistory;
12 import org.kuali.rice.core.api.config.property.ConfigContext;
13 import org.kuali.rice.core.api.util.tree.Tree;
14 import org.kuali.rice.krad.service.BusinessObjectService;
15 import org.kuali.rice.krad.service.KRADServiceLocator;
16 import org.kuali.rice.krad.web.form.UifFormBase;
17
18 import java.util.ArrayList;
19 import java.util.HashMap;
20 import java.util.List;
21 import java.util.Map;
22
23
24
25
26
27
28
29
30 public class EditorForm extends UifFormBase {
31
32 protected String message;
33
34 private String docCategory;
35 private String docType;
36 private String docFormat;
37 private String uuid;
38 private String docId;
39 private String eResourceId;
40 private String eResourceTitle;
41 private String bibStatus;
42 private OleBibliographicRecordStatus oleBibliographicRecordStatus;
43 private String updatedBy;
44 private String createdBy;
45 private String holdingUpdatedBy;
46 private String holdingCreatedBy;
47 private String itemUpdatedBy;
48 private String itemCreatedBy;
49 private List<WorkDublinEditorField> dublinFieldList = new ArrayList<WorkDublinEditorField>();
50 private List<WorkDublinEditorField> existingDublinFieldList = new ArrayList<WorkDublinEditorField>();
51 private String callNumberFlag;
52 private String deleteVerifyResponse;
53 private List<String> uuidList;
54 private String headerText =" ";
55 private String tokenId;
56 private boolean hasLink;
57 private String titleField;
58 private boolean fromDublin;
59 private String recStatus;
60 private boolean select;
61 private boolean showLeftTree = false;
62 private String locationValue;
63 private Tree<DocumentTreeNode, String> DocTree = new Tree<DocumentTreeNode, String>();
64 private Tree<DocumentTreeNode, String> leftTree = new Tree<DocumentTreeNode, String>();
65 private boolean staffOnlyFlagForBib;
66 private boolean staffOnlyFlagForHoldings;
67 private boolean staffOnlyFlagForItem;
68 private String holdingLocalIdentifier;
69 private String itemLocalIdentifier;
70 private String issn;
71 private String createdDate;
72 private String updatedDate;
73 private boolean serialFlag=false;
74 private String holdingCreatedDate;
75 private String holdingUpdatedDate;
76 private String itemCreatedDate;
77 private String itemUpdatedDate;
78 private String allowUpdate="true";
79 private String linkToOrderOption;
80 private String coverageDateStartFlag="false";
81 private String coverageDateEndFlag="false";
82 private String perpetualDateStartFlag="false";
83 private String perpetualDateEndFlag="false";
84 private String noOfUserFlag="false";
85 private String authenticationTypeFlag="false";
86 private String accessLocationFlag="false";
87 private String statisticalCodeFlag="false";
88 private boolean bibFlag = false;
89 private boolean holdingFlag = false;
90 private boolean eHoldingsFlag = false;
91 private boolean itemFlag = false;
92 private String staffOnlyFlagInGlobalEdit;
93
94
95 private WorkBibMarcForm workBibMarcForm;
96 private EditorForm documentForm;
97 private String checkOverwriteFlag;
98 private String unboundLocation;
99 private String publicDisplay;
100
101 private String existing = "false";
102 private String treeData;
103 private String hdnUuid;
104 private int hdnIndex = 0;
105 private String bibId;
106 private String instanceId;
107 private String holdingsId;
108 private String editable;
109 private String displayField006 = "false";
110 private String displayField007 = "false";
111 private String displayField008 = "false";
112
113
114 private String title;
115 private boolean fromSearch;
116
117
118 private List<WorkBibDocument> workBibDocumentList;
119 private List<Bib> bibList;
120
121 private boolean needToCreateInstance = false;
122 private boolean showLeftPane = true;
123 private boolean showEditorFooter = true;
124 private boolean hideFooter = true;
125 private boolean showClose = false;
126 private boolean isValidInput = true;
127 private String statusUpdatedBy;
128 private String statusUpdatedOn;
129
130 private boolean showDeleteTree = true;
131 private boolean itemStatusNonEditable = false;
132 private boolean holdingsDataInItemReadOnly = false;
133
134
135 private boolean canDelete;
136 private boolean canAdd;
137 private boolean canDeleteEInstance;
138 private String holdingItem = "item";
139 private String itemStatusSelection = "false";
140 private String serialReceivingDocId;
141 private BusinessObjectService businessObjectService;
142 private List<BibTree> bibTreeList;
143 private List<OLESerialReceivingHistory> mainSerialReceivingHistoryList;
144 private List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList;
145 private List<OLESerialReceivingHistory> indexSerialReceivingHistoryList;
146 private List<OLELoanIntransitRecordHistory> oleLoanIntransitRecordHistories;
147 private String globalEditFlag = "false";
148
149 private GlobalEditHoldingsFieldsFlagBO globalEditHoldingsFieldsFlagBO;
150
151 private GlobalEditItemFieldsFlagBO globalEditItemFieldsFlagBO;
152
153 private GlobalEditEHoldingsFieldsFlagBO globalEditEHoldingsFieldsFlagBO;
154
155 private String totalTime;
156 private String solrTime;
157 private String serverTime;
158 private boolean showTime = false;
159 private String channelUrl = ConfigContext.getCurrentContextConfig().getProperty("ole.editor.url");
160 private boolean canDeleteEHoldings = true;
161 private String externalHelpUrl;
162
163 public String getExternalHelpUrl() {
164 return externalHelpUrl;
165 }
166
167 public void setExternalHelpUrl(String externalHelpUrl) {
168 this.externalHelpUrl = externalHelpUrl;
169 }
170
171 public String getCheckOverwriteFlag() {
172 return checkOverwriteFlag;
173 }
174
175 public void setCheckOverwriteFlag(String checkOverwriteFlag) {
176 this.checkOverwriteFlag = checkOverwriteFlag;
177 }
178
179 public GlobalEditEHoldingsFieldsFlagBO getGlobalEditEHoldingsFieldsFlagBO() {
180 return globalEditEHoldingsFieldsFlagBO;
181 }
182
183 public void setGlobalEditEHoldingsFieldsFlagBO(GlobalEditEHoldingsFieldsFlagBO globalEditEHoldingsFieldsFlagBO) {
184 this.globalEditEHoldingsFieldsFlagBO = globalEditEHoldingsFieldsFlagBO;
185 }
186
187 public GlobalEditHoldingsFieldsFlagBO getGlobalEditHoldingsFieldsFlagBO() {
188 return globalEditHoldingsFieldsFlagBO;
189 }
190
191 public String getCoverageDateStartFlag() {
192 return coverageDateStartFlag;
193 }
194
195 public void setCoverageDateStartFlag(String coverageDateStartFlag) {
196 this.coverageDateStartFlag = coverageDateStartFlag;
197 }
198
199 public String getCoverageDateEndFlag() {
200 return coverageDateEndFlag;
201 }
202
203 public void setCoverageDateEndFlag(String coverageDateEndFlag) {
204 this.coverageDateEndFlag = coverageDateEndFlag;
205 }
206
207 public String getPerpetualDateStartFlag() {
208 return perpetualDateStartFlag;
209 }
210
211 public void setPerpetualDateStartFlag(String perpetualDateStartFlag) {
212 this.perpetualDateStartFlag = perpetualDateStartFlag;
213 }
214
215 public String getPerpetualDateEndFlag() {
216 return perpetualDateEndFlag;
217 }
218
219 public void setPerpetualDateEndFlag(String perpetualDateEndFlag) {
220 this.perpetualDateEndFlag = perpetualDateEndFlag;
221 }
222
223 public String getNoOfUserFlag() {
224 return noOfUserFlag;
225 }
226
227 public void setNoOfUserFlag(String noOfUserFlag) {
228 this.noOfUserFlag = noOfUserFlag;
229 }
230
231 public String getAuthenticationTypeFlag() {
232 return authenticationTypeFlag;
233 }
234
235 public void setAuthenticationTypeFlag(String authenticationTypeFlag) {
236 this.authenticationTypeFlag = authenticationTypeFlag;
237 }
238
239 public String getAccessLocationFlag() {
240 return accessLocationFlag;
241 }
242
243 public void setAccessLocationFlag(String accessLocationFlag) {
244 this.accessLocationFlag = accessLocationFlag;
245 }
246
247 public String getStatisticalCodeFlag() {
248 return statisticalCodeFlag;
249 }
250
251 public void setStatisticalCodeFlag(String statisticalCodeFlag) {
252 this.statisticalCodeFlag = statisticalCodeFlag;
253 }
254
255 public boolean isSerialFlag() {
256 return serialFlag;
257 }
258
259 public void setSerialFlag(boolean serialFlag) {
260 this.serialFlag = serialFlag;
261 }
262
263 public void setGlobalEditHoldingsFieldsFlagBO(GlobalEditHoldingsFieldsFlagBO globalEditHoldingsFieldsFlagBO) {
264 this.globalEditHoldingsFieldsFlagBO = globalEditHoldingsFieldsFlagBO;
265 }
266
267 public GlobalEditItemFieldsFlagBO getGlobalEditItemFieldsFlagBO() {
268 return globalEditItemFieldsFlagBO;
269 }
270
271 public String getPublicDisplay() {
272 return publicDisplay;
273 }
274
275 public void setPublicDisplay(String publicDisplay) {
276 this.publicDisplay = publicDisplay;
277 }
278
279 public String getUnboundLocation() {
280 return unboundLocation;
281 }
282
283 public List<OLESerialReceivingHistory> getMainSerialReceivingHistoryList() {
284 if (mainSerialReceivingHistoryList == null) {
285 mainSerialReceivingHistoryList = new ArrayList<OLESerialReceivingHistory>();
286 }
287 return this.mainSerialReceivingHistoryList;
288 }
289
290 public void setMainSerialReceivingHistoryList(List<OLESerialReceivingHistory> mainSerialReceivingHistoryList) {
291 this.mainSerialReceivingHistoryList = mainSerialReceivingHistoryList;
292 }
293
294 public List<OLESerialReceivingHistory> getSupplementSerialReceivingHistoryList() {
295 if (supplementSerialReceivingHistoryList == null) {
296 supplementSerialReceivingHistoryList = new ArrayList<OLESerialReceivingHistory>();
297 }
298 return supplementSerialReceivingHistoryList;
299 }
300
301 public void setSupplementSerialReceivingHistoryList(List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList) {
302 this.supplementSerialReceivingHistoryList = supplementSerialReceivingHistoryList;
303 }
304
305 public List<OLESerialReceivingHistory> getIndexSerialReceivingHistoryList() {
306 if (indexSerialReceivingHistoryList == null) {
307 indexSerialReceivingHistoryList = new ArrayList<OLESerialReceivingHistory>();
308 }
309 return indexSerialReceivingHistoryList;
310 }
311
312 public void setIndexSerialReceivingHistoryList(List<OLESerialReceivingHistory> indexSerialReceivingHistoryList) {
313 this.indexSerialReceivingHistoryList = indexSerialReceivingHistoryList;
314 }
315
316 public void setUnboundLocation(String unboundLocation) {
317 this.unboundLocation = unboundLocation;
318 }
319
320 public void setGlobalEditItemFieldsFlagBO(GlobalEditItemFieldsFlagBO globalEditItemFieldsFlagBO) {
321 this.globalEditItemFieldsFlagBO = globalEditItemFieldsFlagBO;
322 }
323
324 public String getGlobalEditFlag() {
325 return globalEditFlag;
326 }
327
328 public void setGlobalEditFlag(String globalEditFlag) {
329 if(globalEditFlag.contains(",")){
330 String globalEdit[] = globalEditFlag.split(",");
331 this.globalEditFlag = globalEdit[0];
332 }
333 else {
334 this.globalEditFlag = globalEditFlag;
335 }
336 }
337
338 public Object clone()throws CloneNotSupportedException{
339 return super.clone();
340 }
341
342 public boolean isBibFlag() {
343 return bibFlag;
344 }
345
346 public void setBibFlag(boolean bibFlag) {
347 this.bibFlag = bibFlag;
348 }
349
350 public boolean isHoldingFlag() {
351 return holdingFlag;
352 }
353
354 public void setHoldingFlag(boolean holdingFlag) {
355 this.holdingFlag = holdingFlag;
356 }
357
358 public boolean iseHoldingsFlag() {
359 return eHoldingsFlag;
360 }
361
362 public void seteHoldingsFlag(boolean eHoldingsFlag) {
363 this.eHoldingsFlag = eHoldingsFlag;
364 }
365
366 public boolean isItemFlag() {
367 return itemFlag;
368 }
369
370 public void setItemFlag(boolean itemFlag) {
371 this.itemFlag = itemFlag;
372 }
373
374 public List<BibTree> getBibTreeList() {
375 return bibTreeList;
376 }
377
378 public void setBibTreeList(List<BibTree> bibTreeList) {
379 this.bibTreeList = bibTreeList;
380 }
381
382 public String getItemStatusSelection() {
383 return itemStatusSelection;
384 }
385
386 public void setItemStatusSelection(String itemStatusSelection) {
387 this.itemStatusSelection = itemStatusSelection;
388 }
389
390 public String getIssn() {
391 return issn;
392 }
393
394 public void setIssn(String issn) {
395 this.issn = issn;
396 }
397
398 public String getHoldingLocalIdentifier() {
399 return holdingLocalIdentifier;
400 }
401
402 public void setHoldingLocalIdentifier(String holdingLocalIdentifier) {
403 if (holdingLocalIdentifier != null && holdingLocalIdentifier.length() > 0) {
404 this.holdingLocalIdentifier = String.valueOf(DocumentLocalId.getDocumentId(holdingLocalIdentifier));
405 } else {
406 this.holdingLocalIdentifier = holdingLocalIdentifier;
407 }
408 }
409
410 public String getItemLocalIdentifier() {
411 return itemLocalIdentifier;
412 }
413
414 public void setItemLocalIdentifier(String itemLocalIdentifier) {
415 if (itemLocalIdentifier != null && itemLocalIdentifier.length() > 0) {
416 this.itemLocalIdentifier = String.valueOf(DocumentLocalId.getDocumentId(itemLocalIdentifier));
417 } else {
418 this.itemLocalIdentifier = itemLocalIdentifier;
419 }
420 }
421
422 public boolean isStaffOnlyFlagForBib() {
423 return staffOnlyFlagForBib;
424 }
425
426 public void setStaffOnlyFlagForBib(boolean staffOnlyFlagForBib) {
427 this.staffOnlyFlagForBib = staffOnlyFlagForBib;
428 }
429
430 public String geteResourceTitle() {
431 return eResourceTitle;
432 }
433
434 public void seteResourceTitle(String eResourceTitle) {
435 this.eResourceTitle = eResourceTitle;
436 }
437
438 public boolean isStaffOnlyFlagForHoldings() {
439 return staffOnlyFlagForHoldings;
440 }
441
442 public void setStaffOnlyFlagForHoldings(boolean staffOnlyFlagForHoldings) {
443 this.staffOnlyFlagForHoldings = staffOnlyFlagForHoldings;
444 }
445
446 public boolean isStaffOnlyFlagForItem() {
447 return staffOnlyFlagForItem;
448 }
449
450 public void setStaffOnlyFlagForItem(boolean staffOnlyFlagForItem) {
451 this.staffOnlyFlagForItem = staffOnlyFlagForItem;
452 }
453
454 public List<WorkDublinEditorField> getExistingDublinFieldList() {
455 return existingDublinFieldList;
456 }
457
458 public void setExistingDublinFieldList(List<WorkDublinEditorField> existingDublinFieldList) {
459 this.existingDublinFieldList = existingDublinFieldList;
460 }
461
462 public List<WorkDublinEditorField> getDublinFieldList() {
463 return dublinFieldList;
464 }
465
466 public void setDublinFieldList(List<WorkDublinEditorField> dublinFieldList) {
467 this.dublinFieldList = dublinFieldList;
468 }
469
470 public List<Bib> getBibList() {
471 return bibList;
472 }
473
474 public void setBibList(List<Bib> bibList) {
475 this.bibList = bibList;
476 }
477
478 public String getBibStatus() {
479 return bibStatus;
480 }
481
482 public void setBibStatus(String bibStatus) {
483 this.bibStatus = bibStatus;
484 }
485
486 public String getUpdatedBy() {
487 return updatedBy;
488 }
489
490 public void setUpdatedBy(String updatedBy) {
491 this.updatedBy = updatedBy;
492 }
493
494 public String getCreatedBy() {
495 return createdBy;
496 }
497
498 public void setCreatedBy(String createdBy) {
499 this.createdBy = createdBy;
500 }
501
502 public String getCallNumberFlag() {
503 return callNumberFlag;
504 }
505
506 public void setCallNumberFlag(String callNumberFlag) {
507 this.callNumberFlag = callNumberFlag;
508 }
509
510 public String getCreatedDate() {
511 return createdDate;
512 }
513
514 public void setCreatedDate(String createdDate) {
515 this.createdDate = createdDate;
516 }
517
518 public String getUpdatedDate() {
519 return updatedDate;
520 }
521
522 public void setUpdatedDate(String updatedDate) {
523 this.updatedDate = updatedDate;
524 }
525
526 public boolean isCanDelete() {
527 return canDelete;
528 }
529
530 public void setCanDelete(boolean canDelete) {
531 this.canDelete = canDelete;
532 }
533
534 public boolean isCanAdd() {
535 return canAdd;
536 }
537
538 public void setCanAdd(boolean canAdd) {
539 this.canAdd = canAdd;
540 }
541
542 public boolean isCanDeleteEInstance() {
543 return canDeleteEInstance;
544 }
545
546 public void setCanDeleteEInstance(boolean canDeleteEInstance) {
547 this.canDeleteEInstance = canDeleteEInstance;
548 }
549
550 public EditorForm() {
551 super();
552 globalEditEHoldingsFieldsFlagBO = new GlobalEditEHoldingsFieldsFlagBO();
553 globalEditItemFieldsFlagBO = new GlobalEditItemFieldsFlagBO();
554 globalEditHoldingsFieldsFlagBO = new GlobalEditHoldingsFieldsFlagBO();
555 dublinFieldList.add(new WorkDublinEditorField());
556 existingDublinFieldList.add(new WorkDublinEditorField());
557 }
558
559 public String getDocType() {
560 return docType;
561 }
562
563 public void setDocType(String docType) {
564 if (docType != null && docType.contains(","))
565 this.docType = docType.substring(0, docType.indexOf(","));
566 else
567 this.docType = docType;
568 }
569
570 public String getDocFormat() {
571 return docFormat;
572 }
573
574 public void setDocFormat(String docFormat) {
575 if (docFormat != null && docFormat.contains(","))
576 this.docFormat = docFormat.substring(0, docFormat.indexOf(","));
577 else
578 this.docFormat = docFormat;
579 }
580
581 public String getUuid() {
582 return uuid;
583 }
584
585 public void setUuid(String uuid) {
586 this.uuid = uuid;
587 }
588
589 public String getExisting() {
590 return existing;
591 }
592
593 public void setExisting(String existing) {
594 this.existing = existing;
595 }
596
597 public String getTreeData() {
598 return treeData;
599 }
600
601 public void setTreeData(String treeData) {
602 this.treeData = treeData;
603 }
604
605 public String getHdnUuid() {
606 return hdnUuid;
607 }
608
609 public void setHdnUuid(String hdnUuid) {
610 this.hdnUuid = hdnUuid;
611 }
612
613 public int getHdnIndex() {
614 return hdnIndex;
615 }
616
617 public void setHdnIndex(int hdnIndex) {
618 this.hdnIndex = hdnIndex;
619 }
620
621 public List<WorkBibDocument> getWorkBibDocumentList() {
622 return workBibDocumentList;
623 }
624
625 public void setWorkBibDocumentList(List<WorkBibDocument> workBibDocumentList) {
626 this.workBibDocumentList = workBibDocumentList;
627 }
628
629 public String getDocCategory() {
630 return docCategory;
631 }
632
633 public void setDocCategory(String docCategory) {
634 if (docCategory != null && docCategory.contains(","))
635 this.docCategory = docCategory.substring(0, docCategory.indexOf(","));
636 else
637 this.docCategory = docCategory;
638 }
639
640 public String getDocId() {
641 return docId;
642 }
643
644 public void setDocId(String docId) {
645 this.docId = docId;
646 }
647
648 public String geteResourceId() {
649 return eResourceId;
650 }
651
652 public void seteResourceId(String eResourceId) {
653 this.eResourceId = eResourceId;
654 }
655
656 public WorkBibMarcForm getWorkBibMarcForm() {
657 return workBibMarcForm;
658 }
659
660 public void setWorkBibMarcForm(WorkBibMarcForm workBibMarcForm) {
661 this.workBibMarcForm = workBibMarcForm;
662 }
663
664 public String getMessage() {
665 return message;
666 }
667
668 public void setMessage(String message) {
669 this.message = message;
670 }
671
672 public EditorForm getDocumentForm() {
673 return documentForm;
674 }
675
676 public void setDocumentForm(EditorForm documentForm) {
677 this.documentForm = documentForm;
678 }
679
680 public String getBibId() {
681 return bibId;
682 }
683
684 public void setBibId(String bibId) {
685 this.bibId = bibId;
686 }
687
688 public String getInstanceId() {
689 return instanceId;
690 }
691
692 public void setInstanceId(String instanceId) {
693 this.instanceId = instanceId;
694 }
695
696 public String getEditable() {
697 return editable;
698 }
699
700 public void setEditable(String editable) {
701 this.editable = editable;
702 }
703
704 public boolean isNeedToCreateInstance() {
705 return needToCreateInstance;
706 }
707
708 public void setNeedToCreateInstance(boolean needToCreateInstance) {
709 this.needToCreateInstance = needToCreateInstance;
710 }
711
712 public boolean isShowEditorFooter() {
713 return showEditorFooter;
714 }
715
716 public void setShowEditorFooter(boolean showEditorFooter) {
717 this.showEditorFooter = showEditorFooter;
718 }
719
720 public boolean isShowLeftPane() {
721 return showLeftPane;
722 }
723
724 public void setShowLeftPane(boolean showLeftPane) {
725 this.showLeftPane = showLeftPane;
726 }
727
728 public OleBibliographicRecordStatus getOleBibliographicRecordStatus() {
729 return oleBibliographicRecordStatus;
730 }
731
732 public void setOleBibliographicRecordStatus(OleBibliographicRecordStatus oleBibliographicRecordStatus) {
733 this.oleBibliographicRecordStatus = oleBibliographicRecordStatus;
734 }
735
736 public List<String> getUuidList() {
737 return uuidList;
738 }
739
740 public void setUuidList(List<String> uuidList) {
741 this.uuidList = uuidList;
742 }
743
744 public Tree<DocumentTreeNode, String> getDocTree() {
745 return DocTree;
746 }
747
748 public void setDocTree(Tree<DocumentTreeNode, String> docTree) {
749 DocTree = docTree;
750 }
751
752 public String getDeleteVerifyResponse() {
753 return deleteVerifyResponse;
754 }
755
756 public void setDeleteVerifyResponse(String deleteVerifyResponse) {
757 this.deleteVerifyResponse = deleteVerifyResponse;
758 }
759
760 public String getLocationValue() {
761 return "";
762 }
763
764 public void setLocationValue(String locationValue) {
765 this.locationValue = locationValue;
766 }
767
768 public String getHeaderText() {
769 return headerText;
770 }
771
772 public void setHeaderText(String headerText) {
773 this.headerText = headerText;
774 }
775
776 public String getTokenId() {
777 return tokenId;
778 }
779
780 public void setTokenId(String tokenId) {
781 this.tokenId = tokenId;
782 }
783
784 public boolean isHideFooter() {
785 return hideFooter;
786 }
787
788 public void setHideFooter(boolean hideFooter) {
789 this.hideFooter = hideFooter;
790 }
791
792 public boolean isValidInput() {
793 return isValidInput;
794 }
795
796 public void setValidInput(boolean validInput) {
797 isValidInput = validInput;
798 }
799
800 public String getTitle() {
801 return title;
802 }
803
804 public void setTitle(String title) {
805 this.title = title;
806 }
807
808 public boolean isFromSearch() {
809 return fromSearch;
810 }
811
812 public void setFromSearch(boolean fromSearch) {
813 this.fromSearch = fromSearch;
814 }
815
816 public boolean isHasLink() {
817 return hasLink;
818 }
819
820 public void setHasLink(boolean hasLink) {
821 this.hasLink = hasLink;
822 }
823
824 public String getTitleField() {
825 return titleField;
826 }
827
828 public void setTitleField(String titleField) {
829 this.titleField = titleField;
830 }
831
832 public boolean isFromDublin() {
833 return fromDublin;
834 }
835
836 public void setFromDublin(boolean fromDublin) {
837 this.fromDublin = fromDublin;
838 }
839
840 public String getStatusUpdatedBy() {
841 return statusUpdatedBy;
842 }
843
844 public void setStatusUpdatedBy(String statusUpdatedBy) {
845 this.statusUpdatedBy = statusUpdatedBy;
846 }
847
848 public String getStatusUpdatedOn() {
849 return statusUpdatedOn;
850 }
851
852 public void setStatusUpdatedOn(String statusUpdatedOn) {
853 this.statusUpdatedOn = statusUpdatedOn;
854 }
855
856 public boolean isShowDeleteTree() {
857 return showDeleteTree;
858 }
859
860 public void setShowDeleteTree(boolean showDeleteTree) {
861 this.showDeleteTree = showDeleteTree;
862 }
863
864 public boolean isItemStatusNonEditable() {
865 return itemStatusNonEditable;
866 }
867
868 public void setItemStatusNonEditable(boolean itemStatusNonEditable) {
869 this.itemStatusNonEditable = itemStatusNonEditable;
870 }
871
872 public String getRecStatus() {
873 return recStatus;
874 }
875
876 public void setRecStatus(String recStatus) {
877 this.recStatus = recStatus;
878 }
879
880 public boolean isHoldingsDataInItemReadOnly() {
881 return holdingsDataInItemReadOnly;
882 }
883
884 public void setHoldingsDataInItemReadOnly(boolean holdingsDataInItemReadOnly) {
885 this.holdingsDataInItemReadOnly = holdingsDataInItemReadOnly;
886 }
887
888 public void setLeftTree(Tree<DocumentTreeNode, String> leftTree) {
889 this.leftTree = leftTree;
890 }
891
892 public Tree<DocumentTreeNode, String> getLeftTree() {
893 return leftTree;
894 }
895
896 public boolean isSelect() {
897 return select;
898 }
899
900 public void setSelect(boolean select) {
901 this.select = select;
902 }
903
904
905 public boolean isShowLeftTree() {
906 return showLeftTree;
907 }
908
909 public void setShowLeftTree(boolean showLeftTree) {
910 this.showLeftTree = showLeftTree;
911 }
912
913 public boolean isFilterControlFields() {
914 return !"true".equals(editable);
915 }
916
917 public String getDisplayField006() {
918 return displayField006;
919 }
920
921 public void setDisplayField006(String displayField006) {
922 this.displayField006 = displayField006;
923 }
924
925 public boolean isFilterField006() {
926 return isFilterControlFields() || !"true".equals(displayField006);
927 }
928
929 public String getDisplayField007() {
930 return displayField007;
931 }
932
933 public void setDisplayField007(String displayField007) {
934 this.displayField007 = displayField007;
935 }
936
937 public boolean isFilterField007() {
938 return isFilterControlFields() || !"true".equals(displayField007);
939 }
940
941 public String getDisplayField008() {
942 return displayField008;
943 }
944
945 public void setDisplayField008(String displayField008) {
946 this.displayField008 = displayField008;
947 }
948
949 public boolean isFilterField008() {
950 return isFilterControlFields() || !"true".equals(displayField008);
951 }
952
953 public boolean isShowClose() {
954 return showClose;
955 }
956
957 public void setShowClose(boolean showClose) {
958 this.showClose = showClose;
959 }
960
961 public String getHoldingUpdatedBy() {
962 return holdingUpdatedBy;
963 }
964
965 public void setHoldingUpdatedBy(String holdingUpdatedBy) {
966 this.holdingUpdatedBy = holdingUpdatedBy;
967 }
968
969 public String getHoldingCreatedBy() {
970 return holdingCreatedBy;
971 }
972
973 public void setHoldingCreatedBy(String holdingCreatedBy) {
974 this.holdingCreatedBy = holdingCreatedBy;
975 }
976
977 public String getHoldingCreatedDate() {
978 return holdingCreatedDate;
979 }
980
981 public void setHoldingCreatedDate(String holdingCreatedDate) {
982 this.holdingCreatedDate = holdingCreatedDate;
983 }
984
985 public String getHoldingUpdatedDate() {
986 return holdingUpdatedDate;
987 }
988
989 public void setHoldingUpdatedDate(String holdingUpdatedDate) {
990 this.holdingUpdatedDate = holdingUpdatedDate;
991 }
992
993 public String getItemUpdatedBy() {
994 return itemUpdatedBy;
995 }
996
997 public void setItemUpdatedBy(String itemUpdatedBy) {
998 this.itemUpdatedBy = itemUpdatedBy;
999 }
1000
1001 public String getItemCreatedBy() {
1002 return itemCreatedBy;
1003 }
1004
1005 public void setItemCreatedBy(String itemCreatedBy) {
1006 this.itemCreatedBy = itemCreatedBy;
1007 }
1008
1009 public String getItemCreatedDate() {
1010 return itemCreatedDate;
1011 }
1012
1013 public void setItemCreatedDate(String itemCreatedDate) {
1014 this.itemCreatedDate = itemCreatedDate;
1015 }
1016
1017 public String getItemUpdatedDate() {
1018 return itemUpdatedDate;
1019 }
1020
1021 public void setItemUpdatedDate(String itemUpdatedDate) {
1022 this.itemUpdatedDate = itemUpdatedDate;
1023 }
1024
1025
1026 public String getAllowUpdate() {
1027 return allowUpdate;
1028 }
1029
1030 public void setAllowUpdate(String allowUpdate) {
1031 this.allowUpdate = allowUpdate;
1032 }
1033
1034 public String getHoldingItem() {
1035 return holdingItem;
1036 }
1037
1038 public void setHoldingItem(String holdingItem) {
1039 this.holdingItem = holdingItem;
1040 }
1041
1042 public String getHoldingsId() {
1043 return holdingsId;
1044 }
1045
1046 public void setHoldingsId(String holdingsId) {
1047 this.holdingsId = holdingsId;
1048 }
1049
1050 public String getLinkToOrderOption() {
1051 return linkToOrderOption;
1052 }
1053
1054 public void setLinkToOrderOption(String linkToOrderOption) {
1055 this.linkToOrderOption = linkToOrderOption;
1056 }
1057
1058 private BusinessObjectService getBusinessObjectService() {
1059 if (null == businessObjectService) {
1060 businessObjectService = KRADServiceLocator.getBusinessObjectService();
1061 }
1062 return businessObjectService;
1063 }
1064
1065 public String getSerialReceivingDocId() {
1066 Map docMap = new HashMap<>();
1067 String bibId = this.getBibId();
1068 String instanceId = this.getInstanceId();
1069 if (!StringUtils.isBlank(bibId) && !StringUtils.isBlank(instanceId)) {
1070 docMap.put("bibId", bibId);
1071 docMap.put("instanceId", this.getInstanceId());
1072 OLESerialReceivingDocument oleSerialReceivingDocument = getBusinessObjectService().findByPrimaryKey(OLESerialReceivingDocument.class, docMap);
1073 if (oleSerialReceivingDocument != null) {
1074 return oleSerialReceivingDocument.getDocumentNumber();
1075 }
1076 }
1077 return null;
1078 }
1079
1080 public void setSerialReceivingDocId(String serialReceivingDocId) {
1081 this.serialReceivingDocId = serialReceivingDocId;
1082 }
1083
1084 public String getStaffOnlyFlagInGlobalEdit() {
1085 return staffOnlyFlagInGlobalEdit;
1086 }
1087
1088 public void setStaffOnlyFlagInGlobalEdit(String staffOnlyFlagInGlobalEdit) {
1089 this.staffOnlyFlagInGlobalEdit = staffOnlyFlagInGlobalEdit;
1090 }
1091
1092 public String getChannelUrl() {
1093 return channelUrl;
1094 }
1095
1096 public void setChannelUrl(String channelUrl) {
1097 this.channelUrl = channelUrl;
1098 }
1099 public String getTotalTime() {
1100 return totalTime;
1101 }
1102
1103 public void setTotalTime(String totalTime) {
1104 this.totalTime = totalTime;
1105 }
1106
1107 public boolean isShowTime() {
1108 return showTime;
1109 }
1110
1111 public void setShowTime(boolean showTime) {
1112 this.showTime = showTime;
1113 }
1114
1115 public String getSolrTime() {
1116 return solrTime;
1117 }
1118
1119 public void setSolrTime(String solrTime) {
1120 this.solrTime = solrTime;
1121 }
1122
1123 public String getServerTime() {
1124 return serverTime;
1125 }
1126
1127 public void setServerTime(String serverTime) {
1128 this.serverTime = serverTime;
1129 }
1130
1131 public boolean isCanDeleteEHoldings() {
1132 return canDeleteEHoldings;
1133 }
1134
1135 public void setCanDeleteEHoldings(boolean canDeleteEHoldings) {
1136 this.canDeleteEHoldings = canDeleteEHoldings;
1137 }
1138
1139 public List<OLELoanIntransitRecordHistory> getOleLoanIntransitRecordHistories() {
1140 return oleLoanIntransitRecordHistories;
1141 }
1142
1143 public void setOleLoanIntransitRecordHistories(List<OLELoanIntransitRecordHistory> oleLoanIntransitRecordHistories) {
1144 this.oleLoanIntransitRecordHistories = oleLoanIntransitRecordHistories;
1145 }
1146 }