示例#1
0
 private JComponent getIndTestParamBox() {
   SearchParams params = getAlgorithmRunner().getParams();
   IndTestParams indTestParams = params.getIndTestParams();
   return getIndTestParamBox(indTestParams);
 }
示例#2
0
  public void buildSearchParams(SearchParams searchParams, String docType) {

    if (DocType.BIB.getCode().equalsIgnoreCase(docType)) {
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocalId_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_sort"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "JournalTitle_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Author_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Publisher_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ISBN_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ISSN_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Subject_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Publisher_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "PublicationDate_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Edition_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Format_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ResourceType_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Carrier_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Language_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Description_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "FormGenre_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DocFormat"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "staffOnlyFlag"));
    } else if (DocType.HOLDINGS.getCode().equalsIgnoreCase(docType)) {
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocalId_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_sort"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumberPrefix_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ClassificationPart_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingOrder_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingOrderCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Uri_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ReceiptStatus_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CopyNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Location_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DocFormat"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "bibIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "itemIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "holdingsIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Location_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocationLevelName_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "HoldingsNote_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "staffOnlyFlag"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "isSeries"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "isAnalytic"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "isBoundwith"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ExtentOfOwnership_Type_display"));
      searchParams
          .getSearchResultFields()
          .add(
              searchParams.buildSearchResultField(docType, "ExtentOfOwnership_Note_Value_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ExtentOfOwnership_Note_Type_display"));
    } else if (DocType.EHOLDINGS.getCode().equalsIgnoreCase(docType)) {
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocalId_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_sort"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "AccessStatus_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Platform_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Imprint_display"));
      searchParams
          .getSearchResultFields()
          .add(
              searchParams.buildSearchResultField(
                  docType, "StatisticalSearchingFullValue_display"));
      searchParams
          .getSearchResultFields()
          .add(
              searchParams.buildSearchResultField(
                  docType, "StatisticalSearchingCodeValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DocFormat"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "bibIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "holdingsIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "staffOnlyFlag"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Location_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocationLevelName_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumberPrefix_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Access_Password_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Access_UserName_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "AccessLocation_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Admin_Password_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Admin_url_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Admin_UserName_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Authentication_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CoverageDate_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DonorCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DonorPublic_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DonorNote_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "E_Publisher_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "HoldingsNote_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ILL_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemPart_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Link_Text_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "NumberOfSimultaneousUses_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "PerpetualAccess_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Persist_Link_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Proxied_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ReceiptStatus_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Subscription_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Url_display"));
    } else if (DocType.ITEM.getCode().equalsIgnoreCase(docType)) {
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "LocalId_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_sort"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Title_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Location_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "HoldingsLocation_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "HoldingsCallNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CallNumberPrefix_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ClassificationPart_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingOrder_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingOrderCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeCode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ShelvingSchemeValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DocFormat"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "bibIdentifier"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "holdingsIdentifier"));
      searchParams.getSearchResultFields().add(searchParams.buildSearchResultField(docType, "id"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemBarcode_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemStatus_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Location_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemUri_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CopyNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "CopyNumberLabel_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "VolumeNumber_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "VolumeNumberLabel_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Enumeration_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "Chronology_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "staffOnlyFlag"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "isAnalytic"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemTypeCodeValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemTypeFullValue_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "ItemType_display"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "dueDateTime"));
      searchParams
          .getSearchResultFields()
          .add(searchParams.buildSearchResultField(docType, "DonorCode_display"));
    }
  }
示例#3
0
 public List<String> getVarNames() {
   SearchParams params = getAlgorithmRunner().getParams();
   return params.getVarNames();
 }