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