View Javadoc
1   package org.kuali.ole.deliver.util;
2   
3   import org.kuali.ole.docstore.common.search.SearchParams;
4   
5   /**
6    * Created by pvsubrah on 5/18/15.
7    */
8   public class SearchParmsBuilder {
9   
10      public static void buildSearchParams(SearchParams searchParams){
11          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "ItemBarcode_display"));
12          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "id"));
13          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "bibIdentifier"));
14          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "Title_display"));
15          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "Author_display"));
16          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "LocalId_display"));
17          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "holdingsIdentifier"));
18          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "ClaimsReturnedFlag_display"));
19          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "claimsReturnedFlagCreateDate"));
20          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "claimsReturnedNote"));
21          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "CallNumber_display"));
22          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "TemporaryItemTypeFullValue_search"));
23          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "ItemTypeFullValue_display"));
24          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "Enumeration_display"));
25          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "Chronology_display"));
26          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "ItemStatus_display"));
27          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "ItemDamagedStatus_display"));
28          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "DamagedItemNote_search"));
29          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "MissingPieceFlagNote_search"));
30          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "MissingPieceFlag_display"));
31          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "Location_display"));
32          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "HoldingsCopyNumber_search"));
33          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "HoldingsCallNumber_search"));
34          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "HoldingsLocation_search"));
35          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "MissingPieceCount_search"));
36          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "NumberOfPieces_search"));
37          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "CallNumberPrefix_display"));
38          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "CopyNumber_search"));
39          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "proxyBorrower"));
40          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "VolumeNumberLabel_display"));
41          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "dueDateTime"));
42          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item", "NumberOfRenew_display"));
43          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item" , "checkOutDateTime"));
44          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","ClaimsReturnedFlag_search"));
45          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","itemStatusEffectiveDate"));
46          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsCallNumberPrefix_search"));
47          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsCallNumberPrefix_display"));
48          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsShelvingSchemeCode_search"));
49          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsShelvingSchemeCode_display"));
50          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsShelvingSchemeValue_search"));
51          searchParams.getSearchResultFields().add(searchParams.buildSearchResultField("item","HoldingsShelvingSchemeValue_display"));
52      }
53  
54  }