Last active
February 15, 2019 19:43
-
-
Save dynamicguy/12b3d691422b930d89d33356a64d0979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
if (typeof ($.fn.button.noConflict) == "function") { | |
var h = $.fn.button.noConflict(); | |
$.fn.bootstrapBtn = h | |
} | |
brandTheme.prototype.fields.HOL.hl += ",HOL_TH"; | |
brandTheme.prototype.fields.GS.hl += ",GS_TH"; | |
brandTheme.prototype.fields.RP.hl += ",RP_TH"; | |
brandTheme.prototype.fields.BRAND.hl += ",BRAND_TH"; | |
brandTheme.prototype.fields.BRAND_P.hl += ",BRAND_TH"; | |
brandTheme.prototype.fields.BRAND_S.hl += ",BRAND_TH"; | |
var g = new brandTheme(interfaceLanguage,"ID",{ | |
scriptVersion: "8591", | |
captchaURL: "../captcha-solrManager.html", | |
logoHelper: true, | |
multipleImageClass: true, | |
multipleGoodsClass: true, | |
headImage: "/branddb/images/MyIPO_letterhead.png", | |
ajaxBusyImage: "../images/ajax-busy-fafafa-405176.gif", | |
ajaxLightBusyImage: "../images/ajax-busy-e0e5ee-405176.gif", | |
ajaxMediumBusyImage: "../images/ajax-busy-d0d6e5-405176.gif", | |
ajaxDarkBusyImage: "../images/ajax-busy-405170.gif", | |
gridCheckBoxColumn: 5 | |
}); | |
var b = g.getDownloadSettings(); | |
var e = $("#search_pane"); | |
top.currentManager = e; | |
e.solrManager({ | |
solrUrl: "../jsp/", | |
searchOnReady: true, | |
ajaxMethod: "post", | |
serverName: "brand", | |
pdfLink: true, | |
pdfDocLink: true, | |
useQueue: true, | |
logName: "branddb", | |
servlet: "select.jsp", | |
logServlet: "block.jsp", | |
keyServlet: "qk.jsp", | |
useResultsCache: true, | |
useDefaultParameters: true, | |
compressRequest: true, | |
terseHighlightFields: true, | |
browserType: (typeof (browserType) == "string") ? browserType : "normal", | |
theme: g, | |
scrollableTabs: true, | |
resizableTabs: true, | |
defaultQuery: "*:*", | |
searchLegendInList: true, | |
downloadServlets: b.downloadServlets, | |
validateQuerySyntax: true, | |
sortOrder: "score desc", | |
moveStatusToContainers: true, | |
scoreSecondarySortOrder: "AD desc", | |
resizeBody: true, | |
defaultParameters: { | |
hl: true, | |
facet: true, | |
type: true, | |
"hl.fragsize": true, | |
"hl.requireFieldMatch": true, | |
"json.nl": true, | |
wt: true | |
} | |
}); | |
e.solrManager("addWidget", "solrSearch", "brand_search", { | |
format: { | |
fie: { | |
order: ["1", "2", "3"], | |
"1": { | |
fie: "BRAND", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableConnector: false, | |
changeableOperator: true, | |
allowStemming: false, | |
focusOnOpen: true | |
} | |
}, | |
"2": { | |
fie: "LOGO", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
}, | |
"3": { | |
fie: "GS_ALL", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "BRAND_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrSearch", "name_search", { | |
format: { | |
fie: { | |
order: ["1", "2"], | |
"1": { | |
fie: "HOL", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false, | |
focusOnOpen: true | |
} | |
}, | |
"2": { | |
fie: "RP", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "NAME_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrSearch", "number_search", { | |
format: { | |
fie: { | |
order: ["1", "2"], | |
"1": { | |
fie: "IRN", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false, | |
focusOnOpen: true | |
} | |
}, | |
"2": { | |
fie: "AN", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "NUMBER_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrSearch", "date_search", { | |
format: { | |
fie: { | |
order: ["1", "2", "3"], | |
"1": { | |
fie: "RD", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
}, | |
"2": { | |
fie: "AD", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
}, | |
"3": { | |
fie: "ED", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "DATE_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrSearch", "class_search", { | |
format: { | |
fie: { | |
order: ["1", "2"], | |
"1": { | |
fie: "IMAGE_CLASS", | |
op: "EQ", | |
options: { | |
changeableField: true, | |
fieldMenu: true, | |
changeableOperator: false, | |
changeableConnector: false, | |
focusOnOpen: true | |
} | |
}, | |
"2": { | |
fie: "GOODS_CLASS", | |
op: "EQ", | |
options: { | |
changeableField: true, | |
fieldMenu: true, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "CLASS_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrSearch", "country_search", { | |
format: { | |
fie: { | |
order: ["1", "2"], | |
"1": { | |
fie: "OO", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
}, | |
"2": { | |
fie: "DS", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
} | |
}, | |
label: "COUNTRY_SEARCH" | |
}); | |
e.solrManager("addWidget", "solrFilter", "source_filter", { | |
fixedFacetStyles: true, | |
isFacetInDefaultParameters: true, | |
facet: { | |
field: "SOURCE", | |
type: "field", | |
limit: 50, | |
mincount: 1, | |
inDefaultParameters: true | |
}, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
sortSelectOptions: ["count_asc", "count_desc", "bucket_asc", "bucket_desc"], | |
params: { | |
columns: 3, | |
orientation: "horizontal" | |
}, | |
sortDefault: "bucket_asc" | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
sortSelectOptions: ["count_asc", "count_desc", "bucket_asc", "bucket_desc"], | |
params: { | |
type: "bar", | |
orientation: "vertical" | |
}, | |
sortDefault: "bucket_asc", | |
showSort: true | |
} | |
}, | |
columns: 2, | |
orientation: "vertical", | |
buckets: [{ | |
facet: "AETM", | |
title: "SOURCE_FILTER_AETM", | |
label: "SOURCE_FILTER_AETM_SHORT", | |
filterLabel: "AETM" | |
}, { | |
facet: "AUTM", | |
title: "SOURCE_FILTER_AUTM", | |
label: "SOURCE_FILTER_AUTM_SHORT", | |
filterLabel: "AUTM" | |
}, { | |
facet: "BHTM", | |
title: "SOURCE_FILTER_BHTM", | |
label: "SOURCE_FILTER_BHTM_SHORT", | |
filterLabel: "BHTM" | |
}, { | |
facet: "BNTM", | |
title: "SOURCE_FILTER_BNTM", | |
label: "SOURCE_FILTER_BNTM_SHORT", | |
filterLabel: "BNTM" | |
}, { | |
facet: "CATM", | |
title: "SOURCE_FILTER_CATM", | |
label: "SOURCE_FILTER_CATM_SHORT", | |
filterLabel: "CATM" | |
}, { | |
facet: "CHTM", | |
title: "SOURCE_FILTER_CHTM", | |
label: "SOURCE_FILTER_CHTM_SHORT", | |
filterLabel: "CHTM" | |
}, { | |
facet: "CLTM", | |
title: "SOURCE_FILTER_CLTM", | |
label: "SOURCE_FILTER_CLTM_SHORT", | |
filterLabel: "CLTM" | |
}, { | |
facet: "DETM", | |
title: "SOURCE_FILTER_DETM", | |
label: "SOURCE_FILTER_DETM_SHORT", | |
filterLabel: "DETM" | |
}, { | |
facet: "DKTM", | |
title: "SOURCE_FILTER_DKTM", | |
label: "SOURCE_FILTER_DKTM_SHORT", | |
filterLabel: "DKTM" | |
}, { | |
facet: "DZTM", | |
title: "SOURCE_FILTER_DZTM", | |
label: "SOURCE_FILTER_DZTM_SHORT", | |
filterLabel: "DZTM" | |
}, { | |
facet: "EETM", | |
title: "SOURCE_FILTER_EETM", | |
label: "SOURCE_FILTER_EETM_SHORT", | |
filterLabel: "EETM" | |
}, { | |
facet: "EGTM", | |
title: "SOURCE_FILTER_EGTM", | |
label: "SOURCE_FILTER_EGTM_SHORT", | |
filterLabel: "EGTM" | |
}, { | |
facet: "EMTM", | |
title: "SOURCE_FILTER_EMTM", | |
label: "SOURCE_FILTER_EMTM_SHORT", | |
filterLabel: "EMTM" | |
}, { | |
facet: "ESTM", | |
title: "SOURCE_FILTER_ESTM", | |
label: "SOURCE_FILTER_ESTM_SHORT", | |
filterLabel: "ESTM" | |
}, { | |
facet: "FRTM", | |
title: "SOURCE_FILTER_FRTM", | |
label: "SOURCE_FILTER_FRTM_SHORT", | |
filterLabel: "FRTM" | |
}, { | |
facet: "GETM", | |
title: "SOURCE_FILTER_GETM", | |
label: "SOURCE_FILTER_GETM_SHORT", | |
filterLabel: "GETM" | |
}, { | |
facet: "IDTM", | |
title: "SOURCE_FILTER_IDTM", | |
label: "SOURCE_FILTER_IDTM_SHORT", | |
filterLabel: "IDTM" | |
}, { | |
facet: "ILTM", | |
title: "SOURCE_FILTER_ILTM", | |
label: "SOURCE_FILTER_ILTM_SHORT", | |
filterLabel: "ILTM" | |
}, { | |
facet: "ISTM", | |
title: "SOURCE_FILTER_ISTM", | |
label: "SOURCE_FILTER_ISTM_SHORT", | |
filterLabel: "ISTM" | |
}, { | |
facet: "ITTM", | |
title: "SOURCE_FILTER_ITTM", | |
label: "SOURCE_FILTER_ITTM_SHORT", | |
filterLabel: "ITTM" | |
}, { | |
facet: "JOTM", | |
title: "SOURCE_FILTER_JOTM", | |
label: "SOURCE_FILTER_JOTM_SHORT", | |
filterLabel: "JOTM" | |
}, { | |
facet: "JPTM", | |
title: "SOURCE_FILTER_JPTM", | |
label: "SOURCE_FILTER_JPTM_SHORT", | |
filterLabel: "JPTM" | |
}, { | |
facet: "KHTM", | |
title: "SOURCE_FILTER_KHTM", | |
label: "SOURCE_FILTER_KHTM_SHORT", | |
filterLabel: "KHTM" | |
}, { | |
facet: "KRTM", | |
title: "SOURCE_FILTER_KRTM", | |
label: "SOURCE_FILTER_KRTM_SHORT", | |
filterLabel: "KRTM" | |
}, { | |
facet: "KWTM", | |
title: "SOURCE_FILTER_KWTM", | |
label: "SOURCE_FILTER_KWTM_SHORT", | |
filterLabel: "KWTM" | |
}, { | |
facet: "LATM", | |
title: "SOURCE_FILTER_LATM", | |
label: "SOURCE_FILTER_LATM_SHORT", | |
filterLabel: "LATM" | |
}, { | |
facet: "MATM", | |
title: "SOURCE_FILTER_MATM", | |
label: "SOURCE_FILTER_MATM_SHORT", | |
filterLabel: "MATM" | |
}, { | |
facet: "MDTM", | |
title: "SOURCE_FILTER_MDTM", | |
label: "SOURCE_FILTER_MDTM_SHORT", | |
filterLabel: "MDTM" | |
}, { | |
facet: "MKTM", | |
title: "SOURCE_FILTER_MKTM", | |
label: "SOURCE_FILTER_MKTM_SHORT", | |
filterLabel: "MKTM" | |
}, { | |
facet: "MNTM", | |
title: "SOURCE_FILTER_MNTM", | |
label: "SOURCE_FILTER_MNTM_SHORT", | |
filterLabel: "MNTM" | |
}, { | |
facet: "MXTM", | |
title: "SOURCE_FILTER_MXTM", | |
label: "SOURCE_FILTER_MXTM_SHORT", | |
filterLabel: "MXTM" | |
}, { | |
facet: "MYTM", | |
title: "SOURCE_FILTER_MYTM", | |
label: "SOURCE_FILTER_MYTM_SHORT", | |
filterLabel: "MYTM" | |
}, { | |
facet: "NZTM", | |
title: "SOURCE_FILTER_NZTM", | |
label: "SOURCE_FILTER_NZTM_SHORT", | |
filterLabel: "NZTM" | |
}, { | |
facet: "OMTM", | |
title: "SOURCE_FILTER_OMTM", | |
label: "SOURCE_FILTER_OMTM_SHORT", | |
filterLabel: "OMTM" | |
}, { | |
facet: "PGTM", | |
title: "SOURCE_FILTER_PGTM", | |
label: "SOURCE_FILTER_PGTM_SHORT", | |
filterLabel: "PGTM" | |
}, { | |
facet: "PHTM", | |
title: "SOURCE_FILTER_PHTM", | |
label: "SOURCE_FILTER_PHTM_SHORT", | |
filterLabel: "PHTM" | |
}, { | |
facet: "SGTM", | |
title: "SOURCE_FILTER_SGTM", | |
label: "SOURCE_FILTER_SGTM_SHORT", | |
filterLabel: "SGTM" | |
}, { | |
facet: "SDTM", | |
title: "SOURCE_FILTER_SDTM", | |
label: "SOURCE_FILTER_SDTM_SHORT", | |
filterLabel: "SDTM" | |
}, { | |
facet: "THTM", | |
title: "SOURCE_FILTER_THTM", | |
label: "SOURCE_FILTER_THTM_SHORT", | |
filterLabel: "THTM" | |
}, { | |
facet: "TNTM", | |
title: "SOURCE_FILTER_TNTM", | |
label: "SOURCE_FILTER_TNTM_SHORT", | |
filterLabel: "TNTM" | |
}, { | |
facet: "USTM", | |
title: "SOURCE_FILTER_USTM", | |
label: "SOURCE_FILTER_USTM_SHORT", | |
filterLabel: "USTM" | |
}, { | |
facet: "VNTM", | |
title: "SOURCE_FILTER_VNTM", | |
label: "SOURCE_FILTER_VNTM_SHORT", | |
filterLabel: "VNTM" | |
}, { | |
facet: "WSTM", | |
title: "SOURCE_FILTER_WSTM", | |
label: "SOURCE_FILTER_WSTM_SHORT", | |
filterLabel: "WSTM" | |
}, { | |
facet: "LIS", | |
title: "SOURCE_FILTER_LIS", | |
label: "SOURCE_FILTER_LIS_SHORT", | |
filterLabel: "LIS" | |
}, { | |
facet: "MAD", | |
title: "SOURCE_FILTER_MAD", | |
label: "SOURCE_FILTER_MAD_SHORT", | |
filterLabel: "WOTM" | |
}, { | |
facet: "6TER", | |
title: "SOURCE_FILTER_6TER", | |
label: "SOURCE_FILTER_6TER_SHORT", | |
filterLabel: "6TER" | |
}, { | |
facet: "INNTM", | |
title: "SOURCE_FILTER_INNTM", | |
label: "SOURCE_FILTER_INNTM_SHORT", | |
filterLabel: "INN" | |
}], | |
label: "SOURCE_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "image_filter", { | |
isFacetInDefaultParameters: true, | |
facet: { | |
field: "IMAGE", | |
type: "file", | |
imageOptions: ["ph_ha", "cl_ha", "eh_ha", "jc_ha"] | |
}, | |
uploadTarget: "../jsp/upload.jsp", | |
label: "IMAGE_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "imageType_filter", { | |
facet: { | |
field: "ITY", | |
displayField: "ITY", | |
inDefaultParameters: true, | |
type: "query", | |
queries: ["VERBAL", "NONVERBAL", "COMBINED", "UNKNOWN"] | |
}, | |
label: "IMAGE_TYPE_FILTER", | |
tipPosition: { | |
my: "right middle", | |
at: "left middle" | |
}, | |
container: "#image_filter", | |
header: "IMAGE_TYPE_FILTER_HEADER", | |
makeFilterButton: false, | |
isFacetInDefaultParameters: true, | |
helpButton: false, | |
minWidth: "100%", | |
display: { | |
defaultDisplay: "list", | |
order: ["list"], | |
list: { | |
type: "list", | |
params: { | |
columns: 2, | |
type: "menu" | |
}, | |
sortDefault: "none", | |
showSort: false | |
} | |
}, | |
buckets: [{ | |
facet: "VERBAL", | |
filterLabel: "VERBAL_DISPLAY", | |
label: "VERBAL" | |
}, { | |
facet: "NONVERBAL", | |
filterLabel: "NONVERBAL_DISPLAY", | |
label: "NONVERBAL" | |
}, { | |
facet: "COMBINED", | |
filterLabel: "COMBINED_DISPLAY", | |
label: "COMBINED" | |
}, { | |
facet: "UNKNOWN", | |
filterLabel: "ITY_UNKNOWN_DISPLAY", | |
label: "ITY_UNKNOWN" | |
}] | |
}); | |
e.solrManager("addWidget", "solrFilter", "status_filter", { | |
facet: { | |
field: "STATUS", | |
type: "field", | |
limit: 20, | |
mincount: 1, | |
inDefaultParameters: true | |
}, | |
isFacetInDefaultParameters: true, | |
display: { | |
defaultDisplay: "list", | |
labelPrefix: "STATUS_FILTER_", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
params: { | |
columns: 1 | |
}, | |
showSort: false, | |
sortDefault: "bucket_asc" | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
params: { | |
type: "pie" | |
}, | |
showSort: false, | |
sortDefault: "bucket_asc" | |
} | |
}, | |
buckets: [{ | |
facet: "ACT", | |
label: "STATUS_FILTER_ACT", | |
filterLabel: "ACT" | |
}, { | |
facet: "PEND", | |
label: "STATUS_FILTER_PEND", | |
filterLabel: "PEND" | |
}, { | |
facet: "DEL", | |
label: "STATUS_FILTER_INA", | |
filterLabel: "INA" | |
}], | |
label: "STATUS_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "origin_filter", { | |
type: "country", | |
isFacetInDefaultParameters: true, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "MAP_WORLD"], | |
list: { | |
type: "list", | |
label: "LIST", | |
params: { | |
columns: 4 | |
}, | |
sortDefault: "count_desc" | |
}, | |
MAP_WORLD: { | |
type: "chart", | |
label: "MAP_LABEL_WORLD", | |
showSort: false, | |
params: { | |
type: "map" | |
} | |
} | |
}, | |
columns: 4, | |
facet: { | |
field: "OO", | |
type: "field", | |
mincount: 1, | |
inDefaultParameters: true | |
}, | |
label: "ORIGIN_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "nice_filter", { | |
facetByDefault: false, | |
hidden: true, | |
hideable: true, | |
facet: { | |
field: "NC", | |
type: "field", | |
limit: 75, | |
mincount: 1 | |
}, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc_int", "value_desc_int"], | |
sortDefault: "value_asc_int", | |
params: { | |
columns: 4 | |
} | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
sortDefault: "value_asc_int", | |
scroll: false, | |
params: { | |
type: "bar", | |
sortType: "int", | |
orientation: "horizontal", | |
scroll: false, | |
textRotation: "vertical" | |
}, | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc_int", "value_desc_int"], | |
showSort: true | |
} | |
}, | |
label: "NICE_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "ad_filter", { | |
facetByDefault: false, | |
hideable: true, | |
facet: { | |
field: "AD", | |
type: "date", | |
limit: 200, | |
mincount: 1, | |
end: "NOW/YEAR+1YEAR", | |
gap: "+1YEAR", | |
other: "all", | |
start: "NOW/YEAR-500YEAR" | |
}, | |
processFacetLabel: function(i) { | |
if (i.indexOf("-") > -1) { | |
return i.substring(0, i.indexOf("-")) | |
} else { | |
return "" | |
} | |
}, | |
columns: 4, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc_int", "value_desc_int"], | |
sortDefault: "value_desc_int", | |
params: { | |
columns: 4 | |
} | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
sortDefault: "value_asc_int", | |
showSort: false, | |
params: { | |
type: "line", | |
slider: true, | |
gap: 1, | |
dataType: "date" | |
} | |
} | |
}, | |
label: "AD_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "rd_filter", { | |
facetByDefault: false, | |
hideable: true, | |
hidden: true, | |
facet: { | |
field: "RD", | |
type: "date", | |
limit: 200, | |
mincount: 1, | |
end: "NOW/YEAR+1YEAR", | |
gap: "+1YEAR", | |
other: "all", | |
start: "NOW/YEAR-500YEAR" | |
}, | |
processFacetLabel: function(i) { | |
if (i.indexOf("-") > -1) { | |
return i.substring(0, i.indexOf("-")) | |
} else { | |
return "" | |
} | |
}, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
params: { | |
columns: 4 | |
}, | |
sortDefault: "value_desc", | |
showSort: true | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
params: { | |
type: "line", | |
slider: true, | |
gap: 1, | |
dataType: "date" | |
}, | |
sortDefault: "value_asc", | |
showSort: false | |
} | |
}, | |
label: "RD_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "image_class_filter", { | |
facetByDefault: false, | |
hideable: true, | |
hidden: true, | |
facet: { | |
field: "VC2", | |
type: "field", | |
mincount: 1, | |
limit: 50 | |
}, | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "chart"], | |
list: { | |
type: "list", | |
label: "LIST", | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc_int", "value_desc_int"], | |
sortDefault: "count_desc", | |
params: { | |
columns: 4 | |
} | |
}, | |
chart: { | |
type: "chart", | |
label: "CHART", | |
sortDefault: "value_asc_int", | |
scroll: false, | |
params: { | |
type: "bar", | |
sortType: "int", | |
orientation: "horizontal", | |
scroll: false, | |
textRotation: "vertical" | |
}, | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc_int", "value_desc_int"], | |
showSort: true | |
} | |
}, | |
label: "IMAGE_CLASS_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "hol_filter", { | |
facetByDefault: false, | |
hideable: true, | |
hidden: true, | |
facet: { | |
field: "HOL_STR", | |
type: "field", | |
mincount: 1, | |
limit: 50 | |
}, | |
label: "HOL_FILTER", | |
display: { | |
defaultDisplay: "list", | |
order: ["list"], | |
list: { | |
type: "list", | |
label: "LIST", | |
sortSelectOptions: ["count_asc", "count_desc", "value_asc", "value_desc"], | |
sortDefault: "count_desc", | |
params: { | |
columns: 0 | |
} | |
} | |
} | |
}); | |
e.solrManager("addWidget", "solrFilter", "designation_filter", { | |
facetByDefault: false, | |
hidden: true, | |
hideable: true, | |
type: "country", | |
display: { | |
defaultDisplay: "list", | |
order: ["list", "MAP_WORLD"], | |
list: { | |
type: "list", | |
label: "LIST", | |
params: { | |
columns: 4 | |
}, | |
sortDefault: "count_desc", | |
showSort: true | |
}, | |
MAP_WORLD: { | |
type: "chart", | |
label: "MAP_LABEL_WORLD", | |
params: { | |
type: "map" | |
}, | |
showSort: false | |
} | |
}, | |
sort: { | |
defaultOrder: "facet", | |
order: ["facet", "count"], | |
facet: { | |
label: "VALUE" | |
}, | |
count: { | |
label: "COUNT" | |
} | |
}, | |
columns: 4, | |
facet: { | |
field: "DS", | |
type: "field", | |
mincount: 1, | |
limit: 250 | |
}, | |
label: "DESIGNATION_FILTER" | |
}); | |
e.solrManager("addWidget", "solrFilter", "expiration_filter", { | |
hideable: true, | |
isFacetInDefaultParameters: true, | |
facet: { | |
field: "ED", | |
queries: ["[* TO NOW/DAY]", "[NOW/DAY-1MONTH TO NOW/DAY]", "[NOW/DAY+1DAY TO *]", "[NOW/DAY+1DAY TO NOW/DAY+1MONTH]", "[NOW/DAY+1DAY TO NOW/DAY+6MONTHS]", "[NOW/DAY+1DAY TO NOW/DAY+1YEAR]"], | |
type: "query", | |
inDefaultParameters: true | |
}, | |
display: { | |
defaultDisplay: "list", | |
order: ["list"], | |
list: { | |
type: "list", | |
params: { | |
columns: 1 | |
}, | |
sortDefault: "none", | |
showSort: false | |
} | |
}, | |
buckets: [{ | |
facet: "[* TO NOW/DAY]", | |
filterLabel: "EXPIRATION_FILTER_EXPIRED_DISPLAY", | |
label: "EXPIRATION_FILTER_EXPIRED" | |
}, { | |
facet: "[NOW/DAY-1MONTH TO NOW/DAY]", | |
filterLabel: "EXPIRATION_FILTER_LAST_MONTH_DISPLAY", | |
label: "EXPIRATION_FILTER_LAST_MONTH", | |
align: "right" | |
}, { | |
facet: "[NOW/DAY+1DAY TO *]", | |
filterLabel: "EXPIRATION_FILTER_WILL_EXPIRE_DISPLAY", | |
label: "EXPIRATION_FILTER_WILL_EXPIRE" | |
}, { | |
facet: "[NOW/DAY+1DAY TO NOW/DAY+1MONTH]", | |
filterLabel: "EXPIRATION_FILTER_NEXT_MONTH_DISPLAY", | |
label: "EXPIRATION_FILTER_NEXT_MONTH", | |
align: "right" | |
}, { | |
facet: "[NOW/DAY+1DAY TO NOW/DAY+6MONTHS]", | |
filterLabel: "EXPIRATION_FILTER_NEXT_6_MONTHS_DISPLAY", | |
label: "EXPIRATION_FILTER_NEXT_6_MONTHS", | |
align: "right" | |
}, { | |
facet: "[NOW/DAY+1DAY TO NOW/DAY+1YEAR]", | |
filterLabel: "EXPIRATION_FILTER_NEXT_YEAR_DISPLAY", | |
label: "EXPIRATION_FILTER_NEXT_YEAR", | |
align: "right" | |
}], | |
label: "EXPIRATION_FILTER" | |
}); | |
e.solrManager("addWidget", "solrStatus", "status", { | |
splitItems: false, | |
changeableConnector: false, | |
searchFunctionButtons: true, | |
filterFunctionButtons: true | |
}); | |
e.solrManager("addWidget", "solrResults", "results", { | |
windowOffset: 5, | |
draggable: true, | |
includeFlow: true, | |
draggableImages: true, | |
flowSortOrder: true, | |
downloadLinkFormats: b.downloadLinkFormats, | |
pagerOptions: { | |
defaultPerPage: 30, | |
rowOptions: [10, 30, 60, 100], | |
showDisplaySelect: true, | |
rowMenu: true, | |
background: "medium", | |
displaySelectButtons: true, | |
externalSearchLink: { | |
className: "externalSearchLink", | |
label: "OHIM TMview", | |
target: "tmView" | |
} | |
} | |
}); | |
var d = false; | |
if ((login != null) && (login == "chenl" || login == "hoibian" || login == "macstrav" || login == "gbd" || login == "fosspho" || login == "FOSSPHO")) { | |
d = true | |
} | |
var f = false; | |
if (location.hash == "editWatches") { | |
f = true | |
} | |
e.solrManager("addWidget", "solrTools", "solrTools", { | |
saveSearchOption: true, | |
watchSearchOption: d, | |
showWatchListDialog: f, | |
container: $(".content"), | |
draggableSavedSearches: true, | |
bookmarkSearch: true, | |
draggableSavedRecordSets: true, | |
helpFile: "branddb-help.jsp", | |
videoTutorial: "branddb-tutorial.jsp", | |
helpLinks: [{ | |
url: "branddb-help.jsp#faq", | |
label: "FAQ" | |
}] | |
}); | |
g.activateScrollbars($(".bumper"), $("#newsBoxOpenLink"), $("#newsBox .featured")); | |
e.solrManager("ready"); | |
var c = new logoTheme(interfaceLanguage,"ID",{ | |
gridCheckBoxColumn: 4, | |
ajaxBusyImage: "../images/ajax-busy-fafafa-405176.gif", | |
ajaxLightBusyImage: "../images/ajax-busy-e0e5ee-405176.gif", | |
ajaxDarkBusyImage: "../images/ajax-busy-405170.gif" | |
}); | |
var a = $('<div id="lookup_pane" class="solrSearchInterface"/>'); | |
$("body").append(a); | |
a.solrManager({ | |
solrUrl: "../jsp/", | |
serverName: "class", | |
ajaxMethod: "post", | |
servlet: "select.jsp", | |
defaultQuery: "", | |
finalFilter: ["SOURCE:(VC OR US)"], | |
sortOrder: "VCS asc", | |
helpButton: false, | |
keyServlet: "qk.jsp", | |
displayConnector: false, | |
useDefaultParameters: true, | |
compressRequest: true, | |
terseHighlightFields: true, | |
theme: c, | |
defaultParameters: { | |
hl: true, | |
facet: true, | |
type: true, | |
"hl.fragsize": true, | |
"hl.requireFieldMatch": true, | |
"json.nl": true, | |
wt: true | |
} | |
}); | |
a.solrManager("setParameter", "hl.requireFieldMatch", false); | |
a.append(c.getMessage("LOGO_HELPER_HEAD")); | |
a.solrManager("addWidget", "solrSearch", "logoSearchInput", { | |
format: { | |
fie: { | |
order: ["1", "2"], | |
1: { | |
fie: "CLASS", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
}, | |
2: { | |
fie: "CODE", | |
op: "EQ", | |
options: { | |
changeableField: false, | |
fieldMenu: false, | |
changeableOperator: false, | |
changeableConnector: false | |
} | |
} | |
}, | |
dis: { | |
"0": {}, | |
"1": {}, | |
"2": {}, | |
"3": {} | |
} | |
}, | |
helpButton: false | |
}); | |
a.solrManager("addWidget", "solrStatus", "logoStatus", { | |
showFilters: false, | |
helpButton: false, | |
reorderableSearches: false, | |
changeableConnector: false, | |
splitItems: false, | |
dropAction: "merge" | |
}); | |
a.solrManager("addWidget", "solrResults", "logoResults", { | |
minWidth: 560, | |
width: 590, | |
fixedWidth: true, | |
windowOffset: 10, | |
moveableColumns: false, | |
helpButton: false, | |
pagerOptions: { | |
defaultPerPage: 50, | |
showSortSelect: false, | |
showRowOptions: false, | |
showRowCount: false, | |
rowOptions: [25, 50, 100] | |
}, | |
selectDocument: function(m, o) { | |
var p = $(m.target).parents("tr"); | |
var i = p.hasClass("ui-state-selected"); | |
var n = p.offset(); | |
currentDialog = $(m.target).parents(".ui-dialog"); | |
targetOffset = e.solrManager("getHelperTarget").element.solrSearchItem("getOffset"); | |
if (i) { | |
var j = n; | |
n = targetOffset; | |
targetOffset = j | |
} | |
var l = o.doc.VCS.replace(/<\/?em>/g, ""); | |
var k = $("<div class='helperMarker'/>").html(o.doc.SOURCE + "." + l).css({ | |
position: "absolute", | |
top: n.top + "px", | |
left: n.left + "px", | |
"z-index": (currentDialog.css("z-index") + 1) | |
}); | |
$("body").append(k); | |
k.animate({ | |
left: targetOffset.left, | |
top: targetOffset.top | |
}, 600, function() { | |
if (i == false) { | |
e.solrManager("addValueToHelperTarget", m, o.doc.SOURCE + "." + l); | |
p.addClass("ui-state-selected") | |
} else { | |
e.solrManager("removeValueFromHelperTarget", m, o.doc.SOURCE + "." + l); | |
p.removeClass("ui-state-selected") | |
} | |
k.remove() | |
}) | |
} | |
}); | |
a.solrManager("ready") | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment