1 package org.kuali.ole.describe.bo;
2
3 import org.kuali.ole.docstore.common.document.config.DocFieldConfig;
4 import org.kuali.ole.docstore.common.document.config.DocFormatConfig;
5 import org.kuali.ole.docstore.common.document.config.DocTypeConfig;
6 import org.kuali.ole.docstore.common.document.content.enums.DocFormat;
7 import org.kuali.ole.docstore.common.document.content.enums.DocType;
8
9 import java.util.List;
10
11
12
13
14
15
16
17
18 public class SearchResultDisplayFields {
19
20 private boolean localId = false;
21 private boolean title = false;
22 private boolean journalTitle = false;
23 private boolean author = false;
24 private boolean publisher = false;
25 private boolean isbn = false;
26 private boolean issn = false;
27 private boolean subject = false;
28 private boolean publicationPlace = false;
29 private boolean edition = false;
30 private boolean format = false;
31 private boolean formGenre = false;
32 private boolean language = false;
33 private boolean description = false;
34 private boolean publicationDate = false;
35
36 private boolean location = false;
37 private boolean callNumber = false;
38 private boolean callNumberPrefix = false;
39 private boolean classificationPart = false;
40 private boolean shelvingOrder = false;
41 private boolean shelvingOrderCode = false;
42 private boolean shelvingSchemeCode = false;
43 private boolean shelvingSchemeValue = false;
44 private boolean uri = false;
45 private boolean receiptStatus = false;
46 private boolean copyNumber = false;
47 private boolean copyNumberLabel = false;
48 private boolean itemPart = false;
49 private boolean locationLevel = false;
50 private boolean locationLevelName = false;
51 private boolean itemIdentifier = false;
52 private boolean vendorLineItemIdentifier = false;
53
54 private boolean barcode = false;
55 private boolean barcodeArsl = false;
56 private boolean volumeNumber = false;
57 private boolean volumeNumberLabel = false;
58 private boolean enumeration = false;
59 private boolean chronology = false;
60 private boolean itemStatus = false;
61 private boolean itemTypeCodeValue = false;
62 private boolean itemTypeFullValue = false;
63
64 private boolean accessStatus = false;
65 private boolean platform = false;
66 private boolean imprint = false;
67 private boolean statisticalCode = false;
68 private boolean holdingsNote = false;
69 private boolean coverageDate = false;
70 private boolean perpetualAccess = false;
71 private boolean publicNote = false;
72 private boolean url = false;
73 private boolean numberOfSimultaneousUses =false;
74 private boolean persistLink =false;
75 private boolean accessLocation =false;
76 private boolean adminUserName =false;
77 private boolean accessUserName =false;
78 private boolean accessPassword =false;
79 private boolean adminUrl =false;
80 private boolean authentication =false;
81 private boolean proxied =false;
82 private boolean ill =false;
83 private boolean subscription =false;
84 private boolean linkText =false;
85 private boolean adminPassword =false;
86 private boolean donorPublic =false;
87 private boolean donorNote =false;
88 private boolean donorCode =false;
89 private boolean extentOfOwnershipNoteType = false;
90 private boolean extentOfOwnershipNoteValue = false;
91 private boolean extentOfOwnershipType = false;
92
93 private String sortFieldString = "";
94
95 public SearchResultDisplayFields() {
96 }
97
98 public boolean isLocalId() {
99 return localId;
100 }
101
102 public void setLocalId(boolean localId) {
103 this.localId = localId;
104 }
105
106 public boolean isTitle() {
107 return title;
108 }
109
110 public void setTitle(boolean title) {
111 this.title = title;
112 }
113
114 public boolean isJournalTitle() {
115 return journalTitle;
116 }
117
118 public void setJournalTitle(boolean journalTitle) {
119 this.journalTitle = journalTitle;
120 }
121
122 public boolean isAuthor() {
123 return author;
124 }
125
126 public void setAuthor(boolean author) {
127 this.author = author;
128 }
129
130 public boolean isPublisher() {
131 return publisher;
132 }
133
134 public void setPublisher(boolean publisher) {
135 this.publisher = publisher;
136 }
137
138 public boolean isIsbn() {
139 return isbn;
140 }
141
142 public void setIsbn(boolean isbn) {
143 this.isbn = isbn;
144 }
145
146 public boolean isIssn() {
147 return issn;
148 }
149
150 public void setIssn(boolean issn) {
151 this.issn = issn;
152 }
153
154 public boolean isSubject() {
155 return subject;
156 }
157
158 public void setSubject(boolean subject) {
159 this.subject = subject;
160 }
161
162 public boolean isPublicationPlace() {
163 return publicationPlace;
164 }
165
166 public void setPublicationPlace(boolean publicationPlace) {
167 this.publicationPlace = publicationPlace;
168 }
169
170 public boolean isEdition() {
171 return edition;
172 }
173
174 public void setEdition(boolean edition) {
175 this.edition = edition;
176 }
177
178 public boolean isFormat() {
179 return format;
180 }
181
182 public void setFormat(boolean format) {
183 this.format = format;
184 }
185
186 public boolean isFormGenre() {
187 return formGenre;
188 }
189
190 public void setFormGenre(boolean formGenre) {
191 this.formGenre = formGenre;
192 }
193
194 public boolean isLanguage() {
195 return language;
196 }
197
198 public void setLanguage(boolean language) {
199 this.language = language;
200 }
201
202 public boolean isDescription() {
203 return description;
204 }
205
206 public void setDescription(boolean description) {
207 this.description = description;
208 }
209
210 public boolean isPublicationDate() {
211 return publicationDate;
212 }
213
214 public void setPublicationDate(boolean publicationDate) {
215 this.publicationDate = publicationDate;
216 }
217
218 public boolean isLocation() {
219 return location;
220 }
221
222 public void setLocation(boolean location) {
223 this.location = location;
224 }
225
226 public boolean isCallNumber() {
227 return callNumber;
228 }
229
230 public void setCallNumber(boolean callNumber) {
231 this.callNumber = callNumber;
232 }
233
234 public boolean isCallNumberPrefix() {
235 return callNumberPrefix;
236 }
237
238 public void setCallNumberPrefix(boolean callNumberPrefix) {
239 this.callNumberPrefix = callNumberPrefix;
240 }
241
242 public boolean isClassificationPart() {
243 return classificationPart;
244 }
245
246 public void setClassificationPart(boolean classificationPart) {
247 this.classificationPart = classificationPart;
248 }
249
250 public boolean isShelvingOrder() {
251 return shelvingOrder;
252 }
253
254 public void setShelvingOrder(boolean shelvingOrder) {
255 this.shelvingOrder = shelvingOrder;
256 }
257
258 public boolean isUri() {
259 return uri;
260 }
261
262 public void setUri(boolean uri) {
263 this.uri = uri;
264 }
265
266 public boolean isReceiptStatus() {
267 return receiptStatus;
268 }
269
270 public void setReceiptStatus(boolean receiptStatus) {
271 this.receiptStatus = receiptStatus;
272 }
273
274 public boolean isBarcode() {
275 return barcode;
276 }
277
278 public void setBarcode(boolean barcode) {
279 this.barcode = barcode;
280 }
281
282 public boolean isVolumeNumber() {
283 return volumeNumber;
284 }
285
286 public void setVolumeNumber(boolean volumeNumber) {
287 this.volumeNumber = volumeNumber;
288 }
289
290 public boolean isEnumeration() {
291 return enumeration;
292 }
293
294 public void setEnumeration(boolean enumeration) {
295 this.enumeration = enumeration;
296 }
297
298 public boolean isChronology() {
299 return chronology;
300 }
301
302 public void setChronology(boolean chronology) {
303 this.chronology = chronology;
304 }
305
306 public boolean isAccessStatus() {
307 return accessStatus;
308 }
309
310 public void setAccessStatus(boolean accessStatus) {
311 this.accessStatus = accessStatus;
312 }
313
314 public boolean isPlatform() {
315 return platform;
316 }
317
318 public void setPlatform(boolean platform) {
319 this.platform = platform;
320 }
321
322 public boolean isImprint() {
323 return imprint;
324 }
325
326 public void setImprint(boolean imprint) {
327 this.imprint = imprint;
328 }
329
330 public boolean isStatisticalCode() {
331 return statisticalCode;
332 }
333
334 public void setStatisticalCode(boolean statisticalCode) {
335 this.statisticalCode = statisticalCode;
336 }
337
338 public boolean isItemStatus() {
339 return itemStatus;
340 }
341
342 public void setItemStatus(boolean itemStatus) {
343 this.itemStatus = itemStatus;
344 }
345
346 public boolean isCopyNumber() {
347 return copyNumber;
348 }
349
350 public void setCopyNumber(boolean copyNumber) {
351 this.copyNumber = copyNumber;
352 }
353
354 public boolean isItemPart() {
355 return itemPart;
356 }
357
358 public void setItemPart(boolean itemPart) {
359 this.itemPart = itemPart;
360 }
361
362 public boolean isLocationLevel() {
363 return locationLevel;
364 }
365
366 public void setLocationLevel(boolean locationLevel) {
367 this.locationLevel = locationLevel;
368 }
369
370 public boolean isLocationLevelName() {
371 return locationLevelName;
372 }
373
374 public void setLocationLevelName(boolean locationLevelName) {
375 this.locationLevelName = locationLevelName;
376 }
377
378 public boolean isShelvingOrderCode() {
379 return shelvingOrderCode;
380 }
381
382 public void setShelvingOrderCode(boolean shelvingOrderCode) {
383 this.shelvingOrderCode = shelvingOrderCode;
384 }
385
386 public boolean isShelvingSchemeCode() {
387 return shelvingSchemeCode;
388 }
389
390 public void setShelvingSchemeCode(boolean shelvingSchemeCode) {
391 this.shelvingSchemeCode = shelvingSchemeCode;
392 }
393
394
395 public boolean isShelvingSchemeValue() {
396 return shelvingSchemeValue;
397 }
398
399 public void setShelvingSchemeValue(boolean shelvingSchemeValue) {
400 this.shelvingSchemeValue = shelvingSchemeValue;
401 }
402
403 public boolean isHoldingsNote() {
404 return holdingsNote;
405 }
406
407 public void setHoldingsNote(boolean holdingsNote) {
408 this.holdingsNote = holdingsNote;
409 }
410
411 public boolean isCopyNumberLabel() {
412 return copyNumberLabel;
413 }
414
415 public void setCopyNumberLabel(boolean copyNumberLabel) {
416 this.copyNumberLabel = copyNumberLabel;
417 }
418
419 public boolean isItemIdentifier() {
420 return itemIdentifier;
421 }
422
423 public void setItemIdentifier(boolean itemIdentifier) {
424 this.itemIdentifier = itemIdentifier;
425 }
426
427 public boolean isVendorLineItemIdentifier() {
428 return vendorLineItemIdentifier;
429 }
430
431 public void setVendorLineItemIdentifier(boolean vendorLineItemIdentifier) {
432 this.vendorLineItemIdentifier = vendorLineItemIdentifier;
433 }
434
435 public boolean isBarcodeArsl() {
436 return barcodeArsl;
437 }
438
439 public void setBarcodeArsl(boolean barcodeArsl) {
440 this.barcodeArsl = barcodeArsl;
441 }
442
443 public boolean isVolumeNumberLabel() {
444 return volumeNumberLabel;
445 }
446
447 public void setVolumeNumberLabel(boolean volumeNumberLabel) {
448 this.volumeNumberLabel = volumeNumberLabel;
449 }
450
451 public boolean isItemTypeCodeValue() {
452 return itemTypeCodeValue;
453 }
454
455 public void setItemTypeCodeValue(boolean itemTypeCodeValue) {
456 this.itemTypeCodeValue = itemTypeCodeValue;
457 }
458
459 public boolean isItemTypeFullValue() {
460 return itemTypeFullValue;
461 }
462
463 public void setItemTypeFullValue(boolean itemTypeFullValue) {
464 this.itemTypeFullValue = itemTypeFullValue;
465 }
466
467 public boolean isNumberOfSimultaneousUses() {
468 return numberOfSimultaneousUses;
469 }
470
471 public void setNumberOfSimultaneousUses(boolean numberOfSimultaneousUses) {
472 this.numberOfSimultaneousUses = numberOfSimultaneousUses;
473 }
474
475 public boolean isPersistLink() {
476 return persistLink;
477 }
478
479 public void setPersistLink(boolean persistLink) {
480 this.persistLink = persistLink;
481 }
482
483 public boolean isAccessLocation() {
484 return accessLocation;
485 }
486
487 public void setAccessLocation(boolean accessLocation) {
488 this.accessLocation = accessLocation;
489 }
490
491 public boolean isAdminUserName() {
492 return adminUserName;
493 }
494
495 public void setAdminUserName(boolean adminUserName) {
496 this.adminUserName = adminUserName;
497 }
498
499 public boolean isAccessUserName() {
500 return accessUserName;
501 }
502
503 public void setAccessUserName(boolean accessUserName) {
504 this.accessUserName = accessUserName;
505 }
506
507 public boolean isAccessPassword() {
508 return accessPassword;
509 }
510
511 public void setAccessPassword(boolean accessPassword) {
512 this.accessPassword = accessPassword;
513 }
514
515 public boolean isAdminUrl() {
516 return adminUrl;
517 }
518
519 public void setAdminurl(boolean adminUrl) {
520 this.adminUrl = adminUrl;
521 }
522
523 public boolean isAuthentication() {
524 return authentication;
525 }
526
527 public void setAuthentication(boolean authentication) {
528 this.authentication = authentication;
529 }
530
531 public boolean isProxied() {
532 return proxied;
533 }
534
535 public void setProxied(boolean proxied) {
536 this.proxied = proxied;
537 }
538
539 public boolean isIll() {
540 return ill;
541 }
542
543 public void setIll(boolean ill) {
544 this.ill = ill;
545 }
546
547 public boolean isSubscription() {
548 return subscription;
549 }
550
551 public void setSubscription(boolean subscription) {
552 this.subscription = subscription;
553 }
554
555 public boolean isLinkText() {
556 return linkText;
557 }
558
559 public void setLinkText(boolean linkText) {
560 this.linkText = linkText;
561 }
562
563 public boolean isAdminPassword() {
564 return adminPassword;
565 }
566
567 public void setAdminPassword(boolean adminPassword) {
568 this.adminPassword = adminPassword;
569 }
570
571 public boolean isDonorPublic() {
572 return donorPublic;
573 }
574
575 public void setDonorPublic(boolean donorPublic) {
576 this.donorPublic = donorPublic;
577 }
578
579 public boolean isDonorNote() {
580 return donorNote;
581 }
582
583 public void setDonorNote(boolean donorNote) {
584 this.donorNote = donorNote;
585 }
586
587 public boolean isDonorCode() {
588 return donorCode;
589 }
590
591 public void setDonorCode(boolean donorCode) {
592 this.donorCode = donorCode;
593 }
594
595 public boolean isCoverageDate() {
596 return coverageDate;
597 }
598
599 public void setCoverageDate(boolean coverageDate) {
600 this.coverageDate = coverageDate;
601 }
602
603 public boolean isPerpetualAccess() {
604 return perpetualAccess;
605 }
606
607 public void setPerpetualAccess(boolean perpetualAccess) {
608 this.perpetualAccess = perpetualAccess;
609 }
610
611 public boolean isPublicNote() {
612 return publicNote;
613 }
614
615 public void setPublicNote(boolean publicNote) {
616 this.publicNote = publicNote;
617 }
618
619 public boolean isUrl() {
620 return url;
621 }
622
623 public void setUrl(boolean url) {
624 this.url = url;
625 }
626
627 public boolean isExtentOfOwnershipNoteType() {
628 return extentOfOwnershipNoteType;
629 }
630
631 public void setExtentOfOwnershipNoteType(boolean extentOfOwnershipNoteType) {
632 this.extentOfOwnershipNoteType = extentOfOwnershipNoteType;
633 }
634
635 public boolean isExtentOfOwnershipNoteValue() {
636 return extentOfOwnershipNoteValue;
637 }
638
639 public void setExtentOfOwnershipNoteValue(boolean extentOfOwnershipNoteValue) {
640 this.extentOfOwnershipNoteValue = extentOfOwnershipNoteValue;
641 }
642
643 public boolean isExtentOfOwnershipType() {
644 return extentOfOwnershipType;
645 }
646
647 public void setExtentOfOwnershipType(boolean extentOfOwnershipType) {
648 this.extentOfOwnershipType = extentOfOwnershipType;
649 }
650
651 public String getSortFieldString() {
652 return sortFieldString;
653 }
654
655 public void setSortFieldString(String sortFieldString) {
656 this.sortFieldString = sortFieldString;
657 }
658
659 public void buildSearchResultDisplayFields(List<DocTypeConfig> docTypeConfigs, String docType) {
660 StringBuffer boSortFieldForUI= new StringBuffer("{'bSortable':false, 'sWidth':'1%'},");
661 for (DocTypeConfig docTypeConfig : docTypeConfigs) {
662 if (docTypeConfig.getName().equals(docType)) {
663 for (DocFormatConfig docFormatConfig : docTypeConfig.getDocFormatConfigList()) {
664 if (docFormatConfig.getDocTypeId().equals(docTypeConfig.getId())) {
665 for (DocFieldConfig docFieldConfig : docFormatConfig.getDocFieldConfigList()) {
666 if (docFieldConfig.isDisplayable() && docFieldConfig.getName().endsWith("_display") || ((docFormatConfig.getName().equalsIgnoreCase(DocFormat.MARC.getCode()) || docFormatConfig.getName().equalsIgnoreCase(DocFormat.OLEML.getCode())) && docFieldConfig.getName().equalsIgnoreCase("Title_display"))) {
667
668 boolean boSortFlag = false;
669
670 if(DocType.BIB.getCode().equalsIgnoreCase(docType)){
671 if (docFieldConfig.getName().equalsIgnoreCase("LocalId_display")) {
672 setLocalId(true);
673 boSortFieldForUI.insert(35,"{'sType':'numeric','bSortable':true, 'sWidth':'5%'},");
674 }
675 else if (docFieldConfig.getName().equalsIgnoreCase("Author_display")) {
676 setAuthor(true);
677 boSortFlag = true;
678 }
679 else if (docFieldConfig.getName().equalsIgnoreCase("Title_display")) {
680 setTitle(true);
681 boSortFlag = true;
682 }
683 else if (docFieldConfig.getName().equalsIgnoreCase("JournalTitle_display")) {
684 setJournalTitle(true);
685 boSortFieldForUI.append("{'bSortable':true, 'sWidth':'1%'},");
686 boSortFlag = false;
687 }
688 else if (docFieldConfig.getName().equalsIgnoreCase("Publisher_display")) {
689 setPublisher(true);
690 boSortFlag = true;
691 }
692 else if (docFieldConfig.getName().equalsIgnoreCase("Isbn_display")) {
693 setIsbn(true);
694 boSortFlag = true;
695 }
696 else if (docFieldConfig.getName().equalsIgnoreCase("Issn_display")) {
697 setIssn(true);
698 boSortFlag = true;
699 }
700 else if (docFieldConfig.getName().equalsIgnoreCase("Subject_display")) {
701 setSubject(true);
702 boSortFlag = true;
703 }
704 else if (docFieldConfig.getName().equalsIgnoreCase("PublicationPlace_display")) {
705 setPublicationPlace(true);
706 boSortFlag = true;
707 }
708 else if (docFieldConfig.getName().equalsIgnoreCase("Edition_display")) {
709 setEdition(true);
710 boSortFlag = true;
711 }
712 else if (docFieldConfig.getName().equalsIgnoreCase("Format_display")) {
713 setFormat(true);
714 boSortFlag = true;
715 }
716 else if (docFieldConfig.getName().equalsIgnoreCase("FormGenre_display")) {
717 setFormGenre(true);
718 boSortFlag = true;
719 }
720 else if (docFieldConfig.getName().equalsIgnoreCase("Language_display")) {
721 setLanguage(true);
722 boSortFlag = true;
723 }
724 else if (docFieldConfig.getName().equalsIgnoreCase("Description_display")) {
725 setDescription(true);
726 boSortFlag = true;
727 }
728 else if (docFieldConfig.getName().equalsIgnoreCase("PublicationDate_display")) {
729 setPublicationDate(true);
730 boSortFlag = true;
731 }
732 }
733 else {
734
735 if (docFieldConfig.getName().equalsIgnoreCase("LocalId_display")) {
736 setLocalId(true);
737 boSortFieldForUI.insert(35,"{'sType':'numeric','bSortable':true, 'sWidth':'5%'},\n");
738 }
739 else if (docFieldConfig.getName().equalsIgnoreCase("Title_display")) {
740 setTitle(true);
741 boSortFlag = true;
742 }
743 else if (docFieldConfig.getName().equalsIgnoreCase("Location_display")) {
744 setLocation(true);
745 boSortFlag = true;
746 }
747 else if (docFieldConfig.getName().equalsIgnoreCase("Location_display")) {
748 setLocation(true);
749 boSortFlag = true;
750 }
751 else if (docFieldConfig.getName().equalsIgnoreCase("CallNumber_display")) {
752 setCallNumber(true);
753 boSortFlag = true;
754 }
755 else if (docFieldConfig.getName().equalsIgnoreCase("CallNumberPrefix_display")) {
756 setCallNumberPrefix(true);
757 boSortFlag = true;
758 }
759 else if (docFieldConfig.getName().equalsIgnoreCase("ClassificationPart_display")) {
760 setClassificationPart(true);
761 boSortFlag = true;
762 }
763 else if (docFieldConfig.getName().equalsIgnoreCase("ShelvingOrder_display")) {
764 setShelvingOrder(true);
765 boSortFlag = true;
766 }
767 else if (docFieldConfig.getName().equalsIgnoreCase("ShelvingOrderCode_display")) {
768 setShelvingOrderCode(true);
769 boSortFlag = true;
770 }
771 else if (docFieldConfig.getName().equalsIgnoreCase("Uri_display")) {
772 setUri(true);
773 boSortFlag = true;
774 }
775 else if (docFieldConfig.getName().equalsIgnoreCase("ReceiptStatus_display")) {
776 setReceiptStatus(true);
777 boSortFlag = true;
778 }
779 else if (docFieldConfig.getName().equalsIgnoreCase("CopyNumber_display")) {
780 setCopyNumber(true);
781 boSortFlag = true;
782 }
783 else if (docFieldConfig.getName().equalsIgnoreCase("CopyNumberLabel_display")) {
784 setCopyNumberLabel(true);
785 boSortFlag = true;
786 }
787 else if (docFieldConfig.getName().equalsIgnoreCase("HoldingsNote_display")) {
788 setHoldingsNote(true);
789 boSortFlag = true;
790 }
791
792 else if (docFieldConfig.getName().equalsIgnoreCase("ItemStatus_display")) {
793 setItemStatus(true);
794 boSortFlag = true;
795 }
796 else if (docFieldConfig.getName().equalsIgnoreCase("Barcode_display")) {
797 setBarcode(true);
798 boSortFlag = true;
799 }
800 else if (docFieldConfig.getName().equalsIgnoreCase("ItemBarcode_display")) {
801 setBarcode(true);
802 boSortFlag = true;
803 }
804 else if (docFieldConfig.getName().equalsIgnoreCase("BarcodeARSL_display")) {
805 setBarcode(true);
806 boSortFlag = true;
807 }
808
809 else if (docFieldConfig.getName().equalsIgnoreCase("VolumeNumber_display")) {
810 setVolumeNumber(true);
811 boSortFlag = true;
812 }
813 else if (docFieldConfig.getName().equalsIgnoreCase("VolumeNumberLabel_display")) {
814 setVolumeNumberLabel(true);
815 boSortFlag = true;
816 }
817 else if (docFieldConfig.getName().equalsIgnoreCase("Enumeration_display")) {
818 setEnumeration(true);
819 boSortFlag = true;
820 }
821 else if (docFieldConfig.getName().equalsIgnoreCase("Chronology_display")) {
822 setChronology(true);
823 boSortFlag = true;
824 }
825 else if (docFieldConfig.getName().equalsIgnoreCase("AccessStatus_display")) {
826 setAccessStatus(true);
827 boSortFlag = true;
828 }
829 else if (docFieldConfig.getName().equalsIgnoreCase("Platform_display")) {
830 setPlatform(true);
831 boSortFlag = true;
832 }
833 else if (docFieldConfig.getName().equalsIgnoreCase("Imprint_display")) {
834 setImprint(true);
835 boSortFlag = true;
836 }
837 else if (docFieldConfig.getName().equalsIgnoreCase("StatisticalSearchingCodeValue_display")) {
838 setStatisticalCode(true);
839 boSortFlag = true;
840 }
841 else if (docFieldConfig.getName().equalsIgnoreCase("ItemPart_display")) {
842 setItemPart(true);
843 boSortFlag = true;
844 }
845 else if (docFieldConfig.getName().equalsIgnoreCase("Location_display")) {
846 setLocationLevel(true);
847 boSortFlag = true;
848 }
849 else if (docFieldConfig.getName().equalsIgnoreCase("LocationLevelName_display")) {
850 setLocationLevelName(true);
851 boSortFlag = true;
852 }
853 else if (docFieldConfig.getName().equalsIgnoreCase("ShelvingSchemeCode_display")) {
854 setShelvingSchemeCode(true);
855 boSortFlag = true;
856 }
857 else if (docFieldConfig.getName().equalsIgnoreCase("ShelvingSchemeValue_display")) {
858 setShelvingSchemeValue(true);
859 boSortFlag = true;
860 }
861 else if (docFieldConfig.getName().equalsIgnoreCase("ItemTypeCodeValue_display")) {
862 setItemTypeCodeValue(true);
863 boSortFlag = true;
864 }
865 else if (docFieldConfig.getName().equalsIgnoreCase("ItemTypeFullValue_display")) {
866 setItemTypeFullValue(true);
867 boSortFlag = true;
868 }
869 else if (docFieldConfig.getName().equalsIgnoreCase("ItemIdentifier_display")) {
870 setItemIdentifier(true);
871 boSortFlag = true;
872 }
873 else if (docFieldConfig.getName().equalsIgnoreCase("ExtentOfOwnership_Note_Type_display")) {
874 setExtentOfOwnershipNoteType(true);
875 boSortFlag = true;
876 }
877 else if (docFieldConfig.getName().equalsIgnoreCase("ExtentOfOwnership_Note_Value_display")) {
878 setExtentOfOwnershipNoteValue(true);
879 boSortFlag = true;
880 }
881 else if (docFieldConfig.getName().equalsIgnoreCase("ExtentOfOwnership_Type_display")) {
882 setExtentOfOwnershipType(true);
883 boSortFlag = true;
884 }
885
886 else if (docFieldConfig.getName().equalsIgnoreCase("NumberOfSimultaneousUses_display")) {
887 setNumberOfSimultaneousUses(true);
888 boSortFlag = true;
889 }
890 else if (docFieldConfig.getName().equalsIgnoreCase("Persist_Link_display")) {
891 setPersistLink(true);
892 boSortFlag = true;
893 }
894 else if (docFieldConfig.getName().equalsIgnoreCase("AccessLocation_display")) {
895 setAccessLocation(true);
896 boSortFlag = true;
897 }
898 else if (docFieldConfig.getName().equalsIgnoreCase("Admin_UserName_display")) {
899 setAdminUserName(true);
900 boSortFlag = true;
901 }
902 else if (docFieldConfig.getName().equalsIgnoreCase("Access_UserName_display")) {
903 setAccessUserName(true);
904 boSortFlag = true;
905 }
906 else if (docFieldConfig.getName().equalsIgnoreCase("Access_Password_display")) {
907 setAccessPassword(true);
908 boSortFlag = true;
909 }
910 else if (docFieldConfig.getName().equalsIgnoreCase("Admin_url_display")) {
911 setAdminurl(true);
912 boSortFlag = true;
913 }
914 else if (docFieldConfig.getName().equalsIgnoreCase("Authentication_display")) {
915 setAuthentication(true);
916 boSortFlag = true;
917 }
918 else if (docFieldConfig.getName().equalsIgnoreCase("Proxied_display")) {
919 setProxied(true);
920 boSortFlag = true;
921 }
922 else if (docFieldConfig.getName().equalsIgnoreCase("ILL_display")) {
923 setIll(true);
924 boSortFlag = true;
925 }
926 else if (docFieldConfig.getName().equalsIgnoreCase("HoldingsNote_display")) {
927 setHoldingsNote(true);
928 boSortFlag = true;
929 }
930 else if (docFieldConfig.getName().equalsIgnoreCase("Subscription_display")) {
931 setSubscription(true);
932 boSortFlag = true;
933 }
934 else if (docFieldConfig.getName().equalsIgnoreCase("Link_Text_display")) {
935 setLinkText(true);
936 boSortFlag = true;
937 }
938 else if (docFieldConfig.getName().equalsIgnoreCase("Admin_Password_display")) {
939 setAdminPassword(true);
940 boSortFlag = true;
941 }
942 else if (docFieldConfig.getName().equalsIgnoreCase("DonorPublic_display")) {
943 setDonorPublic(true);
944 boSortFlag = true;
945 }
946 else if (docFieldConfig.getName().equalsIgnoreCase("DonorNote_display")) {
947 setDonorNote(true);
948 boSortFlag = true;
949 }
950 else if (docFieldConfig.getName().equalsIgnoreCase("DonorCode_display")) {
951 setDonorCode(true);
952 boSortFlag = true;
953 }
954
955 else if (docFieldConfig.getName().equalsIgnoreCase("CoverageDate_display")) {
956 setCoverageDate(true);
957 boSortFlag = true;
958 }
959 else if (docFieldConfig.getName().equalsIgnoreCase("PerpetualAccess_display")) {
960 setPerpetualAccess(true);
961 boSortFlag = true;
962 }
963 else if (docFieldConfig.getName().equalsIgnoreCase("Public_Note_display")) {
964 setPublicNote(true);
965 boSortFlag = true;
966 }
967 else if (docFieldConfig.getName().equalsIgnoreCase("Url_display")) {
968 setUrl(true);
969 boSortFlag = true;
970 }
971 else if (docFieldConfig.getName().equalsIgnoreCase("E_Publisher_display")) {
972 setPublisher(true);
973 boSortFlag = true;
974 }
975
976 }
977
978 if(boSortFlag){
979 boSortFieldForUI.append("{'bSortable':true, 'sWidth':'10%'},\n");
980 boSortFlag = false;
981 }
982 }
983 }
984 }
985 }
986 }
987 }
988 String sortField = "";
989 if(docType.equalsIgnoreCase(DocType.ITEM.getCode()) || docType.equalsIgnoreCase(DocType.HOLDINGS.getCode())){
990 boSortFieldForUI.insert(35,"{'bSortable':true, 'sWidth':'4%'},\n");
991 sortField = "["+boSortFieldForUI+"]";
992 } else{
993 sortField = "["+boSortFieldForUI+"]";
994 }
995 this.setSortFieldString(sortField);
996 }
997 }