var ListConfig = {}; var templateRoot = "/search/templates/"; ListConfig.BaseURL = '/_assets/cf-list/lib' ListConfig.item = {}; ListConfig.item.url = "/_data/search-data.json"; if( window.location.href.indexOf( "localhost" ) > -1 ) { templateRoot = "/elements/CFList/nemcc-search/templates/"; ListConfig.BaseURL = '../cf-list/lib' ListConfig.item.url = "data.js"; } else if( window.location.href.indexOf( "dev.cascadefactory.com" ) > -1 ) { templateRoot = "/nemcc/search/templates/"; ListConfig.BaseURL = '/nemcc/_assets/cf-list/lib' ListConfig.item.url = "/nemcc/_data/search-data.json"; } else if( window.location.href.indexOf( "b0-47D59" ) > -1 ) { templateRoot = "/b0-47D59/search/templates/"; ListConfig.BaseURL = '/b0-47D59/_files/js/cf-list/lib' ListConfig.item.url = "/b0-47D59/_data/search-data.json"; } else if( window.location.href.indexOf( "nemcc.edu" ) > -1 ) { templateRoot = "/search/templates/"; ListConfig.BaseURL = '/_assets/cf-list/lib' ListConfig.item.url = "/_data/search-data.json"; } else if( window.location.href.indexOf( "catalog.nemcc.edu" ) > -1 ) { templateRoot = "/search/templates/"; ListConfig.BaseURL = '/_assets/cf-list/lib' ListConfig.item.url = "/_data/catalog-data.json"; } ListConfig.item.idVar = "link"; ListConfig.item.infiniteScroll = true; ListConfig.filter = {}; ListConfig.filter.url = ""; ListConfig.filter.attributesWithCSV = []; ListConfig.filter.useServer = false; ListConfig.filter.initialJson = [ { "title": "Page Type" , "attr":"type" } ]; ListConfig.search = {}; ListConfig.search.matches = []; ListConfig.search.contains = [ 'title' , 'teaser', 'content' , 'link']; ListConfig.template = {}; //ListConfig.template.root = templateRoot; ListConfig.template.list_layout = templateRoot + 'listLayoutTemplate.html'; ListConfig.template.list_item = templateRoot + 'listItemTemplate.html'; ListConfig.template.item_detail = templateRoot + 'listItemDetailTemplate.html'; ListConfig.template.filter_layout = templateRoot + 'filterLayoutTemplate.html'; ListConfig.template.filter_item = templateRoot + 'filterItemTemplate.html'; ListConfig.template.non_js_detail_url = ""; //needs to be set though it is not in use ListConfig.template.item_detail_meta = templateRoot + 'listItemDetailMetaTemplate.html'; ListConfig.item.defaults = { title: '' ,type: '' ,teaser: '' ,link: '' ,content: '' } var is_in_ccms = window.location.href.indexOf( "http://172.26.10.195/" ) > -1; if( is_in_ccms ) { templateRoot = "/render/file.act?type=file&forceDownload=false&rewrite=false&id="; ListConfig.BaseURL = '/renderfile/f3b4ca6eac1ed2021df0d1014a4cc409/assets/cf-list/lib' ListConfig.item.url = "/render/page.act?id=2b86bce9ac1a02ce45fc87691779562e"; ListConfig.template.list_layout = templateRoot + '2c258b33ac1a02ce45fc8769c49dc5c3'; ListConfig.template.list_item = templateRoot + '2c258b2cac1a02ce45fc8769ae0acd71'; ListConfig.template.item_detail = templateRoot + '2c258b24ac1a02ce45fc87692d50bb86'; ListConfig.template.filter_layout = templateRoot + '2c258b14ac1a02ce45fc8769b138de1a'; ListConfig.template.filter_item = templateRoot + '2c258b0cac1a02ce45fc8769d0b15114'; ListConfig.template.item_detail_meta = templateRoot + '2c258b1cac1a02ce45fc876913288b3a'; }