View Javadoc
1   package org.kuali.ole.describe.bo;
2   
3   import org.kuali.ole.docstore.common.search.SearchResultField;
4   import java.util.ArrayList;
5   import java.util.List;
6   
7   /**
8    * Created with IntelliJ IDEA.
9    * User: krishnamohanv
10   * Date: 1/9/14
11   * Time: 3:23 PM
12   * To change this template use File | Settings | File Templates.                                     OleDocument
13   */
14  public class SearchResultDisplayRow  {
15  
16      // Common fields for All
17      protected String localId;
18      protected String docFormat;
19      protected String docType;
20  
21      private String publisher;
22      private boolean select;
23      private String staffOnly = "false";
24      private String bibIdentifier;
25      private String holdingsIdentifier;
26      private String instanceIdentifier;
27      private String locationName;
28      private String linkedBibCount;
29      private String callNumber;
30      private String tokenId;
31      private String oleERSIdentifier;
32      // Bib
33      private String title;
34      private String journalTitle;
35      private String titleDisplay;
36      private String resourceType;
37      private String carrier;
38      private String author;
39      private String publicationDate;
40      private String isbn;
41      private String issn;
42      private String subject;
43      private String publicationPlace;
44      private String edition;
45      private String format;
46      private String formGenre;
47      private String language;
48      private String description;
49      private String holdingsNote;
50      private String extentOfOwnershipNoteType;
51      private String extentOfOwnershipNoteValue;
52      private String extentOfOwnershipType;
53      private boolean  selectFlag;
54  
55      // Item
56      private String barcode;
57      private String barcodeArsl;
58      private String volumeNumber;
59      private String volumeNumberLabel;
60      private String holdingsLocation;
61      private String holdingsCallNumber;
62      private String analyticItem = "false";
63      //Holdings
64      private String callNumberPrefix;
65      private String classificationPart;
66      private String shelvingOrder;
67      private String uri;
68      private String receiptStatus;
69      private String shelvingOrderCode;
70      private String shelvingSchemeCode;
71      private String shelvingSchemeValue;
72      private String locationLevel;
73      private String locationLevelName;
74      private String itemPart;
75      private String seriesHolding = "false";
76      private String boundWithHolding = "false";
77      private String dueDateTime;
78  
79      // eHoldings
80      private String accessStatus;
81      private String platForm;
82      private String imprint;
83      private String statisticalCode;
84      private String prefixAndCallnumber;
85      private String enumeration;
86      private String chronology;
87      private String copyNumber;
88      private String copyNumberLabel;
89      private String itemStatus;
90      private String PoLineItemId;
91      private List<Integer> poLineItemIds=new ArrayList<>();
92      private String itemTypeCodeValue;
93      private String itemTypeFullValue;
94      private String itemIdentifier;
95      private String coverageDate;
96      private String perpetualAccess;
97      private String publicNote;
98      private String url;
99      private String numberOfSimultaneousUses;
100     private String persistLink;
101     private String accessLocation;
102     private String adminUserName;
103     private String accessUserName;
104     private String accessPassword;
105     private String adminUrl;
106     private String authentication;
107     private String proxied;
108     private String ill;
109     private String subscription;
110     private String linkText;
111     private String adminPassword;
112     private String donorPublic;
113     private String donorNote;
114     private String donorCode;
115 
116     private SearchResultDisplayFields searchResultDisplayFields;
117 
118     public String getBoundWithHolding() {
119         return boundWithHolding;
120     }
121 
122     public void setBoundWithHolding(String boundWithHolding) {
123         if(boundWithHolding!=null){
124             this.boundWithHolding = boundWithHolding;
125         }
126     }
127 
128     public String getDueDateTime() {
129         return dueDateTime;
130     }
131 
132     public void setDueDateTime(String dueDateTime) {
133         this.dueDateTime = dueDateTime;
134     }
135 
136     public String getAnalyticItem() {
137         return analyticItem;
138     }
139 
140     public void setAnalyticItem(String analyticItem) {
141         if(analyticItem!=null){
142             this.analyticItem = analyticItem;
143         }
144     }
145 
146     public String getSeriesHolding() {
147         return seriesHolding;
148     }
149 
150     public void setSeriesHolding(String seriesHolding) {
151         if(seriesHolding!=null){
152             this.seriesHolding = seriesHolding;
153         }
154     }
155 
156     public String getDocType() {
157         return docType;
158     }
159 
160     public void setDocType(String docType) {
161         this.docType = docType;
162     }
163 
164     public boolean isSelectFlag() {
165         return selectFlag;
166     }
167 
168     public void setSelectFlag(boolean selectFlag) {
169         this.selectFlag = selectFlag;
170     }
171 
172     public String getTokenId() {
173         return tokenId;
174     }
175 
176     public void setTokenId(String tokenId) {
177         this.tokenId = tokenId;
178     }
179 
180     public String getOleERSIdentifier() {
181         return oleERSIdentifier;
182     }
183 
184     public void setOleERSIdentifier(String oleERSIdentifier) {
185         this.oleERSIdentifier = oleERSIdentifier;
186     }
187 
188     public String getLocalId() {
189         return localId;
190     }
191 
192     public void setLocalId(String localId) {
193         this.localId = localId;
194     }
195 
196     public String getDocFormat() {
197         return docFormat;
198     }
199 
200     public void setDocFormat(String docFormat) {
201         this.docFormat = docFormat;
202     }
203 
204     public boolean isSelect() {
205         return select;
206     }
207 
208     public void setSelect(boolean select) {
209         this.select = select;
210     }
211 
212     public String getTitle() {
213         return title;
214     }
215 
216     public void setTitle(String title) {
217         if(this.title == null || this.title == "") {
218             this.title = title;
219         }
220     }
221 
222     public String getJournalTitle() {
223         return journalTitle;
224     }
225 
226     public void setJournalTitle(String journalTitle) {
227         this.journalTitle = journalTitle;
228     }
229 
230     public String getTitleDisplay() {
231         return titleDisplay;
232     }
233 
234     public void setTitleDisplay(String titleDisplay) {
235         this.titleDisplay = titleDisplay;
236     }
237 
238     public String getPublisher() {
239         return publisher;
240     }
241 
242     public void setPublisher(String publisher) {
243         this.publisher = publisher;
244     }
245 
246     public String getPublicationDate() {
247         return publicationDate;
248     }
249 
250     public void setPublicationDate(String publicationDate) {
251         this.publicationDate = publicationDate;
252     }
253 
254     public String getCallNumberPrefix() {
255         return callNumberPrefix;
256     }
257 
258     public void setCallNumberPrefix(String callNumberPrefix) {
259         this.callNumberPrefix = callNumberPrefix;
260     }
261 
262     public String getClassificationPart() {
263         return classificationPart;
264     }
265 
266     public void setClassificationPart(String classificationPart) {
267         this.classificationPart = classificationPart;
268     }
269 
270     public String getShelvingOrder() {
271         return shelvingOrder;
272     }
273 
274     public void setShelvingOrder(String shelvingOrder) {
275         this.shelvingOrder = shelvingOrder;
276     }
277 
278     public String getUri() {
279         return uri;
280     }
281 
282     public void setUri(String uri) {
283         this.uri = uri;
284     }
285 
286     public String getReceiptStatus() {
287         return receiptStatus;
288     }
289 
290     public void setReceiptStatus(String receiptStatus) {
291         this.receiptStatus = receiptStatus;
292     }
293 
294     public String getAuthor() {
295         return author;
296     }
297 
298     public void setAuthor(String author) {
299         this.author = author;
300     }
301 
302     public String getIsbn() {
303         return isbn;
304     }
305 
306     public void setIsbn(String isbn) {
307         this.isbn = isbn;
308     }
309 
310     public String getIssn() {
311         return issn;
312     }
313 
314     public void setIssn(String issn) {
315         this.issn = issn;
316     }
317 
318     public String getSubject() {
319         return subject;
320     }
321 
322     public void setSubject(String subject) {
323         this.subject = subject;
324     }
325 
326     public String getPublicationPlace() {
327         return publicationPlace;
328     }
329 
330     public void setPublicationPlace(String publicationPlace) {
331         this.publicationPlace = publicationPlace;
332     }
333 
334     public String getEdition() {
335         return edition;
336     }
337 
338     public void setEdition(String edition) {
339         this.edition = edition;
340     }
341 
342     public String getFormat() {
343         return format;
344     }
345 
346     public void setFormat(String format) {
347         this.format = format;
348     }
349 
350     public String getFormGenre() {
351         return formGenre;
352     }
353 
354     public void setFormGenre(String formGenre) {
355         this.formGenre = formGenre;
356     }
357 
358     public String getLanguage() {
359         return language;
360     }
361 
362     public void setLanguage(String language) {
363         this.language = language;
364     }
365 
366     public String getDescription() {
367         return description;
368     }
369 
370     public void setDescription(String description) {
371         this.description = description;
372     }
373 
374     public String getBibIdentifier() {
375         return bibIdentifier;
376     }
377 
378     public void setBibIdentifier(String bibIdentifier) {
379         if(this.bibIdentifier == null || this.bibIdentifier == ""){
380             this.bibIdentifier = bibIdentifier;
381         }
382     }
383 
384     public String getHoldingsIdentifier() {
385         return holdingsIdentifier;
386     }
387 
388     public void setHoldingsIdentifier(String holdingsIdentifier) {
389         this.holdingsIdentifier = holdingsIdentifier;
390     }
391 
392     public String getItemIdentifier() {
393         return itemIdentifier;
394     }
395 
396     public void setItemIdentifier(String itemIdentifier) {
397         this.itemIdentifier = itemIdentifier;
398     }
399 
400     public String getStaffOnly() {
401         return staffOnly;
402     }
403 
404     public void setStaffOnly(String staffOnly) {
405         this.staffOnly = staffOnly;
406     }
407 
408     public String getInstanceIdentifier() {
409         return instanceIdentifier;
410     }
411 
412     public void setInstanceIdentifier(String instanceIdentifier) {
413         this.instanceIdentifier = instanceIdentifier;
414     }
415 
416     public String getLocationName() {
417         return locationName;
418     }
419 
420     public void setLocationName(String locationName) {
421         this.locationName = locationName;
422     }
423 
424     public String getLinkedBibCount() {
425         return linkedBibCount;
426     }
427 
428     public void setLinkedBibCount(String linkedBibCount) {
429         this.linkedBibCount = linkedBibCount;
430     }
431 
432     public String getCallNumber() {
433         return callNumber;
434     }
435 
436     public void setCallNumber(String callNumber) {
437         this.callNumber = callNumber;
438     }
439 
440     public String getBarcode() {
441         return barcode;
442     }
443 
444     public void setBarcode(String barcode) {
445         this.barcode = barcode;
446     }
447 
448     public String getAccessStatus() {
449         return accessStatus;
450     }
451 
452     public void setAccessStatus(String accessStatus) {
453         this.accessStatus = accessStatus;
454     }
455 
456     public String getPlatForm() {
457         return platForm;
458     }
459 
460     public void setPlatForm(String platForm) {
461         this.platForm = platForm;
462     }
463 
464     public String getImprint() {
465         return imprint;
466     }
467 
468     public void setImprint(String imprint) {
469         this.imprint = imprint;
470     }
471 
472     public String getStatisticalCode() {
473         return statisticalCode;
474     }
475 
476     public void setStatisticalCode(String statisticalCode) {
477         this.statisticalCode = statisticalCode;
478     }
479 
480     public String getDonorCode() {
481         return donorCode;
482     }
483 
484     public void setDonorCode(String donorCode) {
485         this.donorCode = donorCode;
486     }
487 
488     public String getPrefixAndCallnumber() {
489         return prefixAndCallnumber;
490     }
491 
492     public void setPrefixAndCallnumber(String prefixAndCallnumber) {
493         this.prefixAndCallnumber = prefixAndCallnumber;
494     }
495 
496     public String getEnumeration() {
497         return enumeration;
498     }
499 
500     public void setEnumeration(String enumeration) {
501         this.enumeration = enumeration;
502     }
503 
504     public String getChronology() {
505         return chronology;
506     }
507 
508     public void setChronology(String chronology) {
509         this.chronology = chronology;
510     }
511 
512     public String getCopyNumber() {
513         return copyNumber;
514     }
515 
516     public void setCopyNumber(String copyNumber) {
517         this.copyNumber = copyNumber;
518     }
519 
520     public String getItemStatus() {
521         return itemStatus;
522     }
523 
524     public void setItemStatus(String itemStatus) {
525         this.itemStatus = itemStatus;
526     }
527 
528     public String getPoLineItemId() {
529         return PoLineItemId;
530     }
531 
532     public String getShelvingOrderCode() {
533         return shelvingOrderCode;
534     }
535 
536     public void setShelvingOrderCode(String shelvingOrderCode) {
537         this.shelvingOrderCode = shelvingOrderCode;
538     }
539 
540     public void setPoLineItemId(String poLineItemId) {
541         PoLineItemId = poLineItemId;
542     }
543 
544     public String getShelvingSchemeCode() {
545         return shelvingSchemeCode;
546     }
547 
548     public void setShelvingSchemeCode(String shelvingSchemeCode) {
549         this.shelvingSchemeCode = shelvingSchemeCode;
550     }
551 
552     public String getShelvingSchemeValue() {
553         return shelvingSchemeValue;
554     }
555 
556     public void setShelvingSchemeValue(String shelvingSchemeValue) {
557         this.shelvingSchemeValue = shelvingSchemeValue;
558     }
559 
560     public String getLocationLevel() {
561         return locationLevel;
562     }
563 
564     public void setLocationLevel(String locationLevel) {
565         this.locationLevel = locationLevel;
566     }
567 
568     public String getLocationLevelName() {
569         return locationLevelName;
570     }
571 
572     public void setLocationLevelName(String locationLevelName) {
573         this.locationLevelName = locationLevelName;
574     }
575 
576     public SearchResultDisplayFields getSearchResultDisplayFields() {
577         return searchResultDisplayFields;
578     }
579 
580     public void setSearchResultDisplayFields(SearchResultDisplayFields searchResultDisplayFields) {
581         this.searchResultDisplayFields = searchResultDisplayFields;
582     }
583 
584     public String getItemPart() {
585         return itemPart;
586     }
587 
588     public void setItemPart(String itemPart) {
589         this.itemPart = itemPart;
590     }
591 
592     public String getHoldingsNote() {
593         return holdingsNote;
594     }
595 
596     public void setHoldingsNote(String holdingsNote) {
597         this.holdingsNote = holdingsNote;
598     }
599 
600 
601     public String getExtentOfOwnershipNoteType() {
602         return extentOfOwnershipNoteType;
603     }
604 
605     public void setExtentOfOwnershipNoteType(String extentOfOwnershipNoteType) {
606         this.extentOfOwnershipNoteType = extentOfOwnershipNoteType;
607     }
608 
609     public String getExtentOfOwnershipNoteValue() {
610         return extentOfOwnershipNoteValue;
611     }
612 
613     public void setExtentOfOwnershipNoteValue(String extentOfOwnershipNoteValue) {
614         this.extentOfOwnershipNoteValue = extentOfOwnershipNoteValue;
615     }
616 
617     public String getExtentOfOwnershipType() {
618         return extentOfOwnershipType;
619     }
620 
621     public void setExtentOfOwnershipType(String extentOfOwnershipType) {
622         this.extentOfOwnershipType = extentOfOwnershipType;
623     }
624 
625     public String getBarcodeArsl() {
626         return barcodeArsl;
627     }
628 
629     public void setBarcodeArsl(String barcodeArsl) {
630         this.barcodeArsl = barcodeArsl;
631     }
632 
633     public String getVolumeNumberLabel() {
634         return volumeNumberLabel;
635     }
636 
637     public void setVolumeNumberLabel(String volumeNumberLabel) {
638         this.volumeNumberLabel = volumeNumberLabel;
639     }
640 
641     public String getCopyNumberLabel() {
642         return copyNumberLabel;
643     }
644 
645     public void setCopyNumberLabel(String copyNumberLabel) {
646         this.copyNumberLabel = copyNumberLabel;
647     }
648 
649     public String getItemTypeCodeValue() {
650         return itemTypeCodeValue;
651     }
652 
653     public void setItemTypeCodeValue(String itemTypeCodeValue) {
654         this.itemTypeCodeValue = itemTypeCodeValue;
655     }
656 
657     public String getItemTypeFullValue() {
658         return itemTypeFullValue;
659     }
660 
661     public void setItemTypeFullValue(String itemTypeFullValue) {
662         this.itemTypeFullValue = itemTypeFullValue;
663     }
664 
665     public String getVolumeNumber() {
666         return volumeNumber;
667     }
668 
669     public void setVolumeNumber(String volumeNumber) {
670         this.volumeNumber = volumeNumber;
671     }
672 
673     public List<Integer> getPoLineItemIds() {
674         return poLineItemIds;
675     }
676 
677     public void setPoLineItemIds(List<Integer> poLineItemIds) {
678         this.poLineItemIds = poLineItemIds;
679     }
680 
681     public String getNumberOfSimultaneousUses() {
682         return numberOfSimultaneousUses;
683     }
684 
685     public void setNumberOfSimultaneousUses(String numberOfSimultaneousUses) {
686         this.numberOfSimultaneousUses = numberOfSimultaneousUses;
687     }
688 
689     public String getPersistLink() {
690         return persistLink;
691     }
692 
693     public void setPersistLink(String persistLink) {
694         this.persistLink = persistLink;
695     }
696 
697     public String getAccessLocation() {
698         return accessLocation;
699     }
700 
701     public void setAccessLocation(String accessLocation) {
702         this.accessLocation = accessLocation;
703     }
704 
705     public String getAdminUserName() {
706         return adminUserName;
707     }
708 
709     public void setAdminUserName(String adminUserName) {
710         this.adminUserName = adminUserName;
711     }
712 
713     public String getAccessUserName() {
714         return accessUserName;
715     }
716 
717     public void setAccessUserName(String accessUserName) {
718         this.accessUserName = accessUserName;
719     }
720 
721     public String getAccessPassword() {
722         return accessPassword;
723     }
724 
725     public void setAccessPassword(String accessPassword) {
726         this.accessPassword = accessPassword;
727     }
728 
729     public String getAdminUrl() {
730         return adminUrl;
731     }
732 
733     public void setAdminUrl(String adminUrl) {
734         this.adminUrl = adminUrl;
735     }
736 
737     public String getLinkText() {
738         return linkText;
739     }
740 
741     public void setLinkText(String linkText) {
742         this.linkText = linkText;
743     }
744 
745     public String getAuthentication() {
746         return authentication;
747     }
748 
749     public void setAuthentication(String authentication) {
750         this.authentication = authentication;
751     }
752 
753     public String getProxied() {
754         return proxied;
755     }
756 
757     public void setProxied(String proxied) {
758         this.proxied = proxied;
759     }
760 
761     public String getIll() {
762         return ill;
763     }
764 
765     public void setIll(String ill) {
766         this.ill = ill;
767     }
768 
769     public String getSubscription() {
770         return subscription;
771     }
772 
773     public void setSubscription(String subscription) {
774         this.subscription = subscription;
775     }
776 
777     public String getAdminPassword() {
778         return adminPassword;
779     }
780 
781     public void setAdminPassword(String adminPassword) {
782         this.adminPassword = adminPassword;
783     }
784 
785     public String getDonorPublic() {
786         return donorPublic;
787     }
788 
789     public void setDonorPublic(String donorPublic) {
790         this.donorPublic = donorPublic;
791     }
792 
793     public String getDonorNote() {
794         return donorNote;
795     }
796 
797     public void setDonorNote(String donorNote) {
798         this.donorNote = donorNote;
799     }
800 
801     public String getCoverageDate() {
802         return coverageDate;
803     }
804 
805     public void setCoverageDate(String coverageDate) {
806         this.coverageDate = coverageDate;
807     }
808 
809     public String getPerpetualAccess() {
810         return perpetualAccess;
811     }
812 
813     public void setPerpetualAccess(String perpetualAccess) {
814         this.perpetualAccess = perpetualAccess;
815     }
816 
817     public String getPublicNote() {
818         return publicNote;
819     }
820 
821     public void setPublicNote(String publicNote) {
822         this.publicNote = publicNote;
823     }
824 
825     public String getUrl() {
826         return url;
827     }
828 
829     public void setUrl(String url) {
830         this.url = url;
831     }
832 
833     public String getHoldingsLocation() {
834         return holdingsLocation;
835     }
836 
837     public void setHoldingsLocation(String holdingsLocation) {
838         this.holdingsLocation = holdingsLocation;
839     }
840 
841     public String getHoldingsCallNumber() {
842         return holdingsCallNumber;
843     }
844 
845     public void setHoldingsCallNumber(String holdingsCallNumber) {
846         this.holdingsCallNumber = holdingsCallNumber;
847     }
848 
849     public String getResourceType() {
850         return resourceType;
851     }
852 
853     public void setResourceType(String resourceType) {
854         this.resourceType = resourceType;
855     }
856 
857     public String getCarrier() {
858         return carrier;
859     }
860 
861     public void setCarrier(String carrier) {
862         this.carrier = carrier;
863     }
864 
865     public void buildBibSearchResultField(List<SearchResultField> searchResultFields, String eResourceId) {
866         for (SearchResultField searchResultField : searchResultFields) {
867             // if (searchResultField.getDocType().equalsIgnoreCase(DocType.BIB.getCode())) {
868             if (searchResultField.getFieldName().equalsIgnoreCase("LocalId_display")) {
869                 setLocalId(searchResultField.getFieldValue());
870             }
871             if (searchResultField.getFieldName().equalsIgnoreCase("Title_display")) {
872                     setTitle(searchResultField.getFieldValue());
873             }
874             if (searchResultField.getFieldName().equalsIgnoreCase("Author_display")) {
875                 setAuthor(searchResultField.getFieldValue());
876             }
877             if (searchResultField.getFieldName().equalsIgnoreCase("PublicationDate_display")) {
878                 setPublicationDate(searchResultField.getFieldValue());
879             }
880             if (searchResultField.getFieldName().equalsIgnoreCase("DocFormat")) {
881                setDocFormat(searchResultField.getFieldValue());
882             }
883             if (searchResultField.getFieldName().equalsIgnoreCase("bibIdentifier")) {
884                 setBibIdentifier(searchResultField.getFieldValue());
885             }
886             if (searchResultField.getFieldName().equalsIgnoreCase("id")) {
887                setBibIdentifier(searchResultField.getFieldValue());
888             }
889             if (searchResultField.getFieldName().equalsIgnoreCase("staffOnlyFlag")) {
890                 setStaffOnly(searchResultField.getFieldValue());
891             }
892             if (searchResultField.getFieldName().equalsIgnoreCase("ISBN_display")) {
893                 setIsbn(searchResultField.getFieldValue());
894             }
895             if (searchResultField.getFieldName().equalsIgnoreCase("ISSN_display")) {
896                 setIssn(searchResultField.getFieldValue());
897             }
898             if (searchResultField.getFieldName().equalsIgnoreCase("Publisher_display")) {
899                 setPublisher(searchResultField.getFieldValue());
900             }
901             if (searchResultField.getFieldName().equalsIgnoreCase("Subject_display")) {
902                 setSubject(searchResultField.getFieldValue());
903             }
904             if (searchResultField.getFieldName().equalsIgnoreCase("PublicationPlace_display")) {
905                 setPublicationPlace(searchResultField.getFieldValue());
906             }
907             if (searchResultField.getFieldName().equalsIgnoreCase("Edition_display")) {
908                 setEdition(searchResultField.getFieldValue());
909             }
910             if (searchResultField.getFieldName().equalsIgnoreCase("Format_display")) {
911                 setFormat(searchResultField.getFieldValue());
912             }
913             if (searchResultField.getFieldName().equalsIgnoreCase("FormGenre_display")) {
914                 setFormGenre(searchResultField.getFieldValue());
915             }
916             if (searchResultField.getFieldName().equalsIgnoreCase("Language_display")) {
917                 setLanguage(searchResultField.getFieldValue());
918             }
919             if (searchResultField.getFieldName().equalsIgnoreCase("Description_display")) {
920                 setDescription(searchResultField.getFieldValue());
921             }
922             if (searchResultField.getFieldName().equalsIgnoreCase("staffOnlyFlag")) {
923                 setStaffOnly(searchResultField.getFieldValue());
924             }
925             if (searchResultField.getFieldName().equalsIgnoreCase("JournalTitle_display")) {
926                 setJournalTitle(searchResultField.getFieldValue());
927             }
928             if (searchResultField.getFieldName().equalsIgnoreCase("Title_display")) {
929                 setTitleDisplay(searchResultField.getFieldValue());
930             }
931             if (searchResultField.getFieldName().equalsIgnoreCase("ResourceType_display")) {
932                 setResourceType(searchResultField.getFieldValue());
933             }
934             if (searchResultField.getFieldName().equalsIgnoreCase("Carrier_display")) {
935                 setCarrier(searchResultField.getFieldValue());
936             }
937             if (eResourceId != null) {
938                 setOleERSIdentifier(eResourceId);
939             }
940             if (this.tokenId != null) {
941                 setTokenId(this.tokenId);
942             }
943 
944         }
945     }
946 
947     public void buildHoldingSearchResultField(List<SearchResultField> searchResultFields) {
948         for (SearchResultField searchResultField : searchResultFields) {
949             if (searchResultField.getFieldName().equalsIgnoreCase("LocalId_display")) {
950                 setLocalId(searchResultField.getFieldValue());
951             }
952             if (searchResultField.getFieldName().equalsIgnoreCase("Title_display")) {
953                 setTitle(searchResultField.getFieldValue());
954             }
955             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumber_display")) {
956                 setCallNumber(searchResultField.getFieldValue());
957             }
958             if (searchResultField.getFieldName().equalsIgnoreCase("DocFormat")) {
959                 setDocFormat(searchResultField.getFieldValue());
960             }
961             if (searchResultField.getFieldName().equalsIgnoreCase("DocType")) {
962                 setDocType(searchResultField.getFieldValue());
963             }
964             if (searchResultField.getFieldName().equalsIgnoreCase("bibIdentifier")) {
965                 setBibIdentifier(searchResultField.getFieldValue());
966             }
967             if (searchResultField.getFieldName().equalsIgnoreCase("holdingsIdentifier")) {
968                 setHoldingsIdentifier(searchResultField.getFieldValue());
969             }
970             if (searchResultField.getFieldName().equalsIgnoreCase("itemIdentifier")) {
971                 setItemIdentifier(searchResultField.getFieldValue());
972             }
973             if (searchResultField.getFieldName().equalsIgnoreCase("Location_display")) {
974                 setLocationName(searchResultField.getFieldValue());
975             }
976             if (searchResultField.getFieldName().equalsIgnoreCase("LocationLevelName_display")) {
977                 setLocationLevelName(searchResultField.getFieldValue());
978             }
979             if (searchResultField.getFieldName().equalsIgnoreCase("staffOnlyFlag")) {
980                 setStaffOnly(searchResultField.getFieldValue());
981             }
982             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsNote_display")) {
983                 setHoldingsNote(searchResultField.getFieldValue());
984             }
985             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumberPrefix_display")) {
986                 setCallNumberPrefix(searchResultField.getFieldValue());
987             }
988             if (searchResultField.getFieldName().equalsIgnoreCase("ClassificationPart_display")) {
989                 setClassificationPart(searchResultField.getFieldValue());
990             }
991             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingOrder_display")) {
992                 setShelvingOrder(searchResultField.getFieldValue());
993             }
994             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeCode_display")) {
995                 setShelvingSchemeCode(searchResultField.getFieldValue());
996             }
997             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeValue_display")) {
998                 setShelvingSchemeValue(searchResultField.getFieldValue());
999             }
1000             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingOrderCode_display")) {
1001                 setShelvingOrderCode(searchResultField.getFieldValue());
1002             }
1003             if (searchResultField.getFieldName().equalsIgnoreCase("Uri_display")) {
1004                 setUri(searchResultField.getFieldValue());
1005             }
1006             if (searchResultField.getFieldName().equalsIgnoreCase("ReceiptStatus_display")) {
1007                 setReceiptStatus(searchResultField.getFieldValue());
1008             }
1009             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsNote_display")) {
1010                 setHoldingsNote(searchResultField.getFieldValue());
1011             }
1012             if (searchResultField.getFieldName().equalsIgnoreCase("isSeries")) {
1013                setSeriesHolding(searchResultField.getFieldValue());
1014             }
1015             if (searchResultField.getFieldName().equalsIgnoreCase("isAnalytic")) {
1016                 setAnalyticItem(searchResultField.getFieldValue());
1017             }
1018             if (searchResultField.getFieldName().equalsIgnoreCase("isBoundwith")) {
1019                setBoundWithHolding(searchResultField.getFieldValue());
1020             }
1021             //added below code for global edit change for comparing text files into result field.
1022             if (searchResultField.getFieldName().equalsIgnoreCase("ItemBarcode_display")) {
1023                 setBarcode(searchResultField.getFieldValue());
1024             }
1025             if (searchResultField.getFieldName().equalsIgnoreCase("ExtentOfOwnership_Note_Type_display")) {
1026                 setExtentOfOwnershipNoteType(searchResultField.getFieldValue());
1027             }
1028             if (searchResultField.getFieldName().equalsIgnoreCase("ExtentOfOwnership_Note_Value_display")) {
1029                 setExtentOfOwnershipNoteValue(searchResultField.getFieldValue());
1030             }
1031             if (searchResultField.getFieldName().equalsIgnoreCase("ExtentOfOwnership_Type_display")) {
1032                 setExtentOfOwnershipType(searchResultField.getFieldValue());
1033             }
1034         }
1035     }
1036 
1037     public void buildItemSearchResultField(List<SearchResultField> searchResultFields) {
1038         for (SearchResultField searchResultField : searchResultFields) {
1039             if (searchResultField.getFieldName().equalsIgnoreCase("LocalId_display")) {
1040                 setLocalId(searchResultField.getFieldValue());
1041             }
1042             if (searchResultField.getFieldName().equalsIgnoreCase("Title_display")) {
1043                 setTitle(searchResultField.getFieldValue());
1044             }
1045             if (searchResultField.getFieldName().equalsIgnoreCase("locationName")) {
1046                 setLocationName(searchResultField.getFieldValue());
1047             }
1048             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumber_display")) {
1049                 setCallNumber(searchResultField.getFieldValue());
1050             }
1051             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumberPrefix_display")) {
1052                 setCallNumberPrefix(searchResultField.getFieldValue());
1053             }
1054             if (searchResultField.getFieldName().equalsIgnoreCase("BarcodeARSL_display")) {
1055                 setBarcode(searchResultField.getFieldValue());
1056             }
1057             if (searchResultField.getFieldName().equalsIgnoreCase("docFormat")) {
1058                 setDocFormat(searchResultField.getFieldValue());
1059             }
1060             if (searchResultField.getFieldName().equalsIgnoreCase("DocType")) {
1061                 setDocType(searchResultField.getFieldValue());
1062             }
1063             if (searchResultField.getFieldName().equalsIgnoreCase("bibIdentifier")) {
1064                 setBibIdentifier(searchResultField.getFieldValue());
1065             }
1066             if (searchResultField.getFieldName().equalsIgnoreCase("holdingsIdentifier")) {
1067                 setHoldingsIdentifier(searchResultField.getFieldValue());
1068             }
1069             if (searchResultField.getFieldName().equalsIgnoreCase("id")) {
1070                 setItemIdentifier(searchResultField.getFieldValue());
1071             }
1072             if (searchResultField.getFieldName().equalsIgnoreCase("ItemBarcode_display")) {
1073                 setBarcode(searchResultField.getFieldValue());
1074             }
1075             if (searchResultField.getFieldName().equalsIgnoreCase("Location_display")) {
1076                 setLocationName(searchResultField.getFieldValue());
1077             }
1078             if (searchResultField.getFieldName().equalsIgnoreCase("staffOnlyFlag")) {
1079                 setStaffOnly(searchResultField.getFieldValue());
1080             }
1081             if (searchResultField.getFieldName().equalsIgnoreCase("ClassificationPart_display")) {
1082                 setClassificationPart(searchResultField.getFieldValue());
1083             }
1084             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingOrder_display")) {
1085                 setShelvingOrder(searchResultField.getFieldValue());
1086             }
1087             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeCode_display")) {
1088                 setShelvingSchemeCode(searchResultField.getFieldValue());
1089             }
1090             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeValue_display")) {
1091                 setShelvingSchemeValue(searchResultField.getFieldValue());
1092             }
1093             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingOrderCode_display")) {
1094                 setShelvingOrderCode(searchResultField.getFieldValue());
1095             }
1096             if (searchResultField.getFieldName().equalsIgnoreCase("ItemStatus_display")) {
1097                 setItemStatus(searchResultField.getFieldValue());
1098             }
1099             if (searchResultField.getFieldName().equalsIgnoreCase("CopyNumber_display")) {
1100                 setCopyNumber(searchResultField.getFieldValue());
1101             }
1102             if (searchResultField.getFieldName().equalsIgnoreCase("CopyNumberLabel_display")) {
1103                 setCopyNumberLabel(searchResultField.getFieldValue());
1104             }
1105             if (searchResultField.getFieldName().equalsIgnoreCase("VolumeNumber_display")) {
1106                 setVolumeNumber(searchResultField.getFieldValue());
1107             }
1108             if (searchResultField.getFieldName().equalsIgnoreCase("VolumeNumberLabel_display")) {
1109                 setVolumeNumberLabel(searchResultField.getFieldValue());
1110             }
1111             if (searchResultField.getFieldName().equalsIgnoreCase("Enumeration_display")) {
1112                 setEnumeration(searchResultField.getFieldValue());
1113             }
1114             if (searchResultField.getFieldName().equalsIgnoreCase("Chronology_display")) {
1115                 setChronology(searchResultField.getFieldValue());
1116             }
1117             if (searchResultField.getFieldName().equalsIgnoreCase("ItemIdentifier_display")) {
1118                 setItemIdentifier(searchResultField.getFieldValue());
1119             }
1120             if (searchResultField.getFieldName().equalsIgnoreCase("ItemTypeCodeValue_display")) {
1121                 setItemTypeCodeValue(searchResultField.getFieldValue());
1122             }
1123             if (searchResultField.getFieldName().equalsIgnoreCase("ItemTypeFullValue_display")) {
1124                 setItemTypeFullValue(searchResultField.getFieldValue());
1125             }
1126             if (searchResultField.getFieldName().equalsIgnoreCase("isAnalytic")) {
1127                 setAnalyticItem(searchResultField.getFieldValue());
1128             }
1129             if (searchResultField.getFieldName().equalsIgnoreCase("DonorCode_display")) {
1130                 setDonorCode(searchResultField.getFieldValue());
1131             }
1132             if (searchResultField.getFieldName().equalsIgnoreCase("DueDateTime")) {
1133                 setDueDateTime(searchResultField.getFieldValue());
1134             }
1135 			 if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsLocation_display")) {
1136                 setHoldingsLocation(searchResultField.getFieldValue());
1137             }
1138             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsCallNumber_display")) {
1139                 setHoldingsCallNumber(searchResultField.getFieldValue());
1140             }
1141 
1142         }
1143     }
1144 
1145     public void buildEHoldingSearchResultField(List<SearchResultField> searchResultFields) {
1146         for (SearchResultField searchResultField : searchResultFields) {
1147 
1148             if (searchResultField.getFieldName().equalsIgnoreCase("DocFormat")) {
1149                 setDocFormat(searchResultField.getFieldValue());
1150             }
1151             if (searchResultField.getFieldName().equalsIgnoreCase("DocType")) {
1152                 setDocType(searchResultField.getFieldValue());
1153             }
1154             if (searchResultField.getFieldName().equalsIgnoreCase("bibIdentifier")) {
1155                 setBibIdentifier(searchResultField.getFieldValue());
1156             }
1157             if (searchResultField.getFieldName().equalsIgnoreCase("holdingsIdentifier")) {
1158                 setHoldingsIdentifier(searchResultField.getFieldValue());
1159             }
1160             if (searchResultField.getFieldName().equalsIgnoreCase("staffOnlyFlag")) {
1161                 setStaffOnly(searchResultField.getFieldValue());
1162             }
1163             if (searchResultField.getFieldName().equalsIgnoreCase("Access_Password_display")) {
1164                 setAccessPassword(searchResultField.getFieldValue());
1165             }
1166             if (searchResultField.getFieldName().equalsIgnoreCase("Access_UserName_display")) {
1167                 setAccessUserName(searchResultField.getFieldValue());
1168             }
1169             if (searchResultField.getFieldName().equalsIgnoreCase("AccessLocation_display")) {
1170                 setAccessLocation(searchResultField.getFieldValue());
1171             }
1172             if (searchResultField.getFieldName().equalsIgnoreCase("AccessStatus_display")) {
1173                 setAccessStatus(searchResultField.getFieldValue());
1174             }
1175             if (searchResultField.getFieldName().equalsIgnoreCase("Admin_Password_display")) {
1176                 setAdminPassword(searchResultField.getFieldValue());
1177             }
1178             if (searchResultField.getFieldName().equalsIgnoreCase("Admin_url_display")) {
1179                 setAdminUrl(searchResultField.getFieldValue());
1180             }
1181             if (searchResultField.getFieldName().equalsIgnoreCase("Admin_UserName_display")) {
1182                 setAdminUserName(searchResultField.getFieldValue());
1183             }
1184             if (searchResultField.getFieldName().equalsIgnoreCase("Authentication_display")) {
1185                 setAuthentication(searchResultField.getFieldValue());
1186             }
1187             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumber_display")) {
1188                 setCallNumber(searchResultField.getFieldValue());
1189             }
1190             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsLocation_display")) {
1191                 setHoldingsLocation(searchResultField.getFieldValue());
1192             }
1193             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsCallNumber_display")) {
1194                 setHoldingsCallNumber(searchResultField.getFieldValue());
1195             }
1196             if (searchResultField.getFieldName().equalsIgnoreCase("CallNumberPrefix_display")) {
1197                 setCallNumberPrefix(searchResultField.getFieldValue());
1198             }
1199             if (searchResultField.getFieldName().equalsIgnoreCase("ClassificationPart")) {
1200                 setClassificationPart(searchResultField.getFieldValue());
1201             }
1202             if (searchResultField.getFieldName().equalsIgnoreCase("CoverageDate_display")) {
1203                 setCoverageDate(searchResultField.getFieldValue());
1204             }
1205             if (searchResultField.getFieldName().equalsIgnoreCase("DonorPublic_display")) {
1206                 setDonorPublic(searchResultField.getFieldValue());
1207             }
1208             if (searchResultField.getFieldName().equalsIgnoreCase("DonorNote_display")) {
1209                 setDonorNote(searchResultField.getFieldValue());
1210             }
1211             if (searchResultField.getFieldName().equalsIgnoreCase("DonorCode_display")) {
1212                 setDonorCode(searchResultField.getFieldValue());
1213             }
1214             if (searchResultField.getFieldName().equalsIgnoreCase("E_Publisher_display")) {
1215                 setPublisher(searchResultField.getFieldValue());
1216             }
1217             if (searchResultField.getFieldName().equalsIgnoreCase("HoldingsNote_display")) {
1218                 setHoldingsNote(searchResultField.getFieldValue());
1219             }
1220             if (searchResultField.getFieldName().equalsIgnoreCase("ILL_display")) {
1221                 setIll(searchResultField.getFieldValue());
1222             }
1223             if (searchResultField.getFieldName().equalsIgnoreCase("Imprint_display")) {
1224                 setImprint(searchResultField.getFieldValue());
1225             }
1226             if (searchResultField.getFieldName().equalsIgnoreCase("ItemPart_display")) {
1227                 setItemPart(searchResultField.getFieldValue());
1228             }
1229             if (searchResultField.getFieldName().equalsIgnoreCase("Link_Text_display")) {
1230                 setLinkText(searchResultField.getFieldValue());
1231             }
1232             if (searchResultField.getFieldName().equalsIgnoreCase("LocalId_display")) {
1233                 setLocalId(searchResultField.getFieldValue());
1234             }
1235             if (searchResultField.getFieldName().equalsIgnoreCase("Location_display")) {
1236                 setLocationName(searchResultField.getFieldValue());
1237             }
1238             if (searchResultField.getFieldName().equalsIgnoreCase("LocationLevel")) {
1239                 setLocationLevel(searchResultField.getFieldValue());
1240             }
1241             if (searchResultField.getFieldName().equalsIgnoreCase("LocationLevelName_display")) {
1242                 setLocationLevelName(searchResultField.getFieldValue());
1243             }
1244             if (searchResultField.getFieldName().equalsIgnoreCase("NumberOfSimultaneousUses_display")) {
1245                 setNumberOfSimultaneousUses(searchResultField.getFieldValue());
1246             }
1247             if (searchResultField.getFieldName().equalsIgnoreCase("PerpetualAccess_display")) {
1248                 setPerpetualAccess(searchResultField.getFieldValue());
1249             }
1250             if (searchResultField.getFieldName().equalsIgnoreCase("Persist_Link_display")) {
1251                 setPersistLink(searchResultField.getFieldValue());
1252             }
1253             if (searchResultField.getFieldName().equalsIgnoreCase("Platform_display")) {
1254                 setPlatForm(searchResultField.getFieldValue());
1255             }
1256             if (searchResultField.getFieldName().equalsIgnoreCase("Proxied_display")) {
1257                 setProxied(searchResultField.getFieldValue());
1258             }
1259             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingOrderCode_display")) {
1260                 setShelvingOrderCode(searchResultField.getFieldValue());
1261             }
1262             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeCode_display")) {
1263                 setShelvingSchemeCode(searchResultField.getFieldValue());
1264             }
1265             if (searchResultField.getFieldName().equalsIgnoreCase("ShelvingSchemeValue_display")) {
1266                 setShelvingSchemeValue(searchResultField.getFieldValue());
1267             }
1268             if (searchResultField.getFieldName().equalsIgnoreCase("StatisticalSearchingCodeValue_display")) {
1269                 setStatisticalCode(searchResultField.getFieldValue());
1270             }
1271             if (searchResultField.getFieldName().equalsIgnoreCase("Subscription_display")) {
1272                 setSubscription(searchResultField.getFieldValue());
1273             }
1274             if (searchResultField.getFieldName().equalsIgnoreCase("Title_sort")) {
1275                 setTitle(searchResultField.getFieldValue());
1276             }
1277             if (searchResultField.getFieldName().equalsIgnoreCase("Title_display")) {
1278                 setTitle(searchResultField.getFieldValue());
1279             }
1280             if (searchResultField.getFieldName().equalsIgnoreCase("Url_display")) {
1281                 setUrl(searchResultField.getFieldValue());
1282             }
1283             if (searchResultField.getFieldName().equalsIgnoreCase("DonorPublic_display")) {
1284                 setPublicNote(searchResultField.getFieldValue());
1285             }
1286         }
1287     }
1288 
1289 }