jQuery.template("Tmpl-dataset-browser-empty-dataset",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="empty-datasets">   <div class="pin-image">   <\/div>   <span class="pin-text">'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataset-browser-empty-dataset.htm","There are no datasets added to Bookmarks currently. Please select another section to see more <br/> datasets and add datasets to Bookmarks.")),__.push('<\/span> <span class="upload-text">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-empty-dataset.htm","There are no datasets uploaded yet for the currently selected section. Please upload dataset or select another section to see more datasets."))),__.push('<\/span>   <span class="default-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-empty-dataset.htm","There are no items in the currently selected section. Please select another section to see more datasets."))),__.push("<\/span>  <\/div>");return __});jQuery.template("Tmpl-dsbrowser2-all-dataset-list",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="dsbrowser-datasets">   <div class="filter-textarea">    <input type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-all-dataset-list.htm","Type to filter"))),__.push('" class="filter"/>   <\/div>   <div class="dataset-results"><\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-dataset-result-table",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="dataset-result-container">   <table id="dataset-result">    <thead>     <tr>      <th style="width: 30px">      <\/th>      <th style="width: calc(100% - 30px)">      <\/th>     <\/tr>    <\/thead>    <tbody><\/tbody>   <\/table>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-dataset-results",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="result-container">   <div class="filter-textarea">    <input type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-results.htm"," Type to filter"))),__.push('" class="filter" />   <\/div>   <div class="sort-container">    <div class="sort-container-grid">     <div id="sort-by-name" class="sort">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-results.htm","Name:"))),__.push(' <\/span>     <\/div>     <div id="sort-by-date" class="sort">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-results.htm","Date:"))),__.push(' <\/span>     <\/div>    <\/div>   <\/div>   <div class="selection-options"><\/div>   <div class="dataset-results">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-group-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="group-item '),typeof item!="undefined"&&item!=null&&__.push($.encode(typeof item=="function"?item.call($item):item)),__.push('" data-item="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('"    '),typeof(item=="source")!="undefined"&&item=="source"!=null&&(typeof(item=="source")=="function"?(item=="source").call($item):item=="source")&&(__.push('    data-text="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('"    ')),__.push(">   "),typeof(item=="source")!="undefined"&&item=="source"!=null&&(typeof(item=="source")=="function"?(item=="source").call($item):item=="source")?(__.push("   "),typeof concatText!="undefined"&&concatText!=null&&__.push($.encode(typeof concatText=="function"?concatText.call($item):concatText)),__.push("   ")):typeof(item=="topic"||item=="industry")!="undefined"&&(item=="topic"||item=="industry")!=null&&(typeof(item=="topic"||item=="industry")=="function"?(item=="topic"||item=="industry").call($item):item=="topic"||item=="industry")?(__.push("   "),typeof localized!="undefined"&&localized!=null&&__.push($.encode(typeof localized=="function"?localized.call($item):localized)),__.push("   ")):!0&&(__.push("   "),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("   ")),__.push("  <\/div>  "),typeof(item!="region")!="undefined"&&item!="region"!=null&&(typeof(item!="region")=="function"?(item!="region").call($item):item!="region")&&(__.push('  <span class="dataset-count"> ('),typeof count!="undefined"&&count!=null&&__.push($.encode(typeof count=="function"?count.call($item):count)),__.push(")<\/span>  ")),__.push("  "),typeof(item=="industry"&&subIndustries.length>0)!="undefined"&&(item=="industry"&&subIndustries.length>0)!=null&&(typeof(item=="industry"&&subIndustries.length>0)=="function"?(item=="industry"&&subIndustries.length>0).call($item):item=="industry"&&subIndustries.length>0)&&(__.push('  <ul class="subindustries-list">   '),typeof subIndustries!="undefined"&&subIndustries!=null&&$.each(typeof subIndustries=="function"?subIndustries.call($item):subIndustries,function(i,subindustry){with(this)__.push('   <li class="subindustries-list-item">    <label class="subindustry" data-item="'),typeof subindustry.id!="undefined"&&subindustry.id!=null&&__.push($.encode(typeof subindustry.id=="function"?subindustry.id.call($item):subindustry.id)),__.push('">'),typeof subindustry.localized!="undefined"&&subindustry.localized!=null&&__.push($.encode(typeof subindustry.localized=="function"?subindustry.localized.call($item):subindustry.localized)),__.push('<\/label>    <span class="dataset-count"> ('),typeof subindustry.count!="undefined"&&subindustry.count!=null&&__.push($.encode(typeof subindustry.count=="function"?subindustry.count.call($item):subindustry.count)),__.push(")<\/span>"),typeof(i<subIndustries.length-1)!="undefined"&&i<subIndustries.length-1!=null&&(typeof(i<subIndustries.length-1)=="function"?(i<subIndustries.length-1).call($item):i<subIndustries.length-1)&&__.push('<label class="comma">,<\/label>'),__.push("   <\/li>   ")}),__.push("  <\/ul>  ")),__.push("");return __});jQuery.template("Tmpl-dsbrowser2-selection",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dsbrowser2">   <div class="bread-crumb">    <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-selection.htm","Filter:"))),__.push(' <\/span>    <div>     <a class="filter-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-selection.htm","All"))),__.push('<\/a>    <\/div>   <\/div>   <div id="dsbrowser-tabs">    <ul class="parent-selection">     '),typeof userFlag!="undefined"&&userFlag!=null&&(typeof userFlag=="function"?userFlag.call($item):userFlag)&&(__.push('     <li class="personal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-selection.htm","Personal"))),__.push("<\/li>     ")),__.push("     "),typeof browsableFields!="undefined"&&browsableFields!=null&&$.each(typeof browsableFields=="function"?browsableFields.call($item):browsableFields,function(n,$value){with(this)__.push("      "),typeof($value.name.length>16)!="undefined"&&$value.name.length>16!=null&&(typeof($value.name.length>16)=="function"?($value.name.length>16).call($item):$value.name.length>16)?(__.push('       <li class="custom-search" data-field-id="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('" title="'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push('">'),typeof $value.name.substr!="undefined"&&$value.name.substr!=null&&__.push($.encode($value.name.substr(0,13))),__.push("...<\/li>      ")):!0&&(__.push('       <li class="custom-search" data-field-id="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/li>      ")),__.push("     ")}),__.push('     <li class="search">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-selection.htm","Search"))),__.push('<\/li>    <\/ul>   <\/div>   <!--On loading less styles are not applying somehow, and position is changing with $.busy, so we have to add inline-style-->   <div class="dataset-list">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-region-section-result",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="result-container">   <div class="filter-textarea">    <input type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-region-section-result.htm","Type to filter"))),__.push('" class="filter" />   <\/div>   <div class="sort-container">    <div class="sort-container-grid">     <div class="sort">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-region-section-result.htm","Name:"))),__.push(" <\/span>     <\/div>     "),typeof!hasRootRegion!="undefined"&&!hasRootRegion!=null&&(typeof!hasRootRegion=="function"?(!hasRootRegion).call($item):!hasRootRegion)&&(__.push('     <div id="region-group">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-region-section-result.htm","Group:"))),__.push('<\/span>      <a class="alpha-view selected"><\/a>      <a class="region-view"><\/a>     <\/div>     ')),__.push('    <\/div>   <\/div>   <div class="dataset-results">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-search-dataset-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<li class="dataset-result-item">   <div class="result-title-with-arrow">    <a class="dataset-result-title" id="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-category="'),typeof dataset.category!="undefined"&&dataset.category!=null&&__.push($.encode(typeof dataset.category=="function"?dataset.category.call($item):dataset.category)),__.push('" href="#">     <span class="dataset-result-arrow" />     '),typeof dataset.multiselect!="undefined"&&dataset.multiselect!=null&&(typeof dataset.multiselect=="function"?dataset.multiselect.call($item):dataset.multiselect)&&(__.push("     "),typeof dataset.shareToCommunitiesAllowed!="undefined"&&dataset.shareToCommunitiesAllowed!=null&&(typeof dataset.shareToCommunitiesAllowed=="function"?dataset.shareToCommunitiesAllowed.call($item):dataset.shareToCommunitiesAllowed)?(__.push("     "),typeof hasShortCut!="undefined"&&hasShortCut!=null&&(typeof hasShortCut=="function"?hasShortCut.call($item):hasShortCut)?__.push('     <span class="dataset-result-included check-license-status"><\/span>     '):!0&&(__.push('                <label class="mtl-checkbox check-license-status">          <input type="checkbox" class="mtl-checkbox-input dataset-result-check" id="dataset-check-'),typeof dataset.id.replace!="undefined"&&dataset.id.replace!=null&&__.push($.encode(dataset.id.replace(" ","-"))),__.push('" '),typeof dataset.checked!="undefined"&&dataset.checked!=null&&(typeof dataset.checked=="function"?dataset.checked.call($item):dataset.checked)&&__.push(' checked="checked" '),__.push(' />      <span class="mtl-checkbox-bg"><\/span>     <\/label>          ')),__.push("     ")):!0&&__.push('     <span class="dataset-result-forbidden check-license-status"><\/span>     '),__.push("     ")),__.push('     <label class="dataset-result-name" for="dataset-check-'),typeof dataset.id.replace!="undefined"&&dataset.id.replace!=null&&__.push($.encode(dataset.id.replace(" ","-"))),__.push('">'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("<\/label>    <\/a><br />    "),typeof(filter!="global")!="undefined"&&filter!="global"!=null&&(typeof(filter!="global")=="function"?(filter!="global").call($item):filter!="global")&&(__.push('     <a href="/resource/pin/'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" id="dataset-pin" data-datasetid="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-datasetname="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('" class="'),typeof pinned!="undefined"&&pinned!=null&&(typeof pinned=="function"?pinned.call($item):pinned)?__.push("pinned"):!0&&__.push("unpinned"),__.push('">      <span        class="knoema-ico bookmark"        title=\''),typeof pinned!="undefined"&&pinned!=null&&(typeof pinned=="function"?pinned.call($item):pinned)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Remove Dataset from Bookmarks"))),__.push("")):!0&&(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Add Dataset to Bookmarks"))),__.push("")),__.push("'      ><\/span>     <\/a>    ")),__.push('   <\/div>   <div class="dataset-result-preview">    <div class="top-element"><\/div>    '),typeof resource.publicationDate!="undefined"&&resource.publicationDate!=null&&(typeof resource.publicationDate=="function"?resource.publicationDate.call($item):resource.publicationDate)&&(__.push('    <div class="publication-date">     '),typeof resource.publicationDate!="undefined"&&resource.publicationDate!=null&&__.push($.encode(typeof resource.publicationDate=="function"?resource.publicationDate.call($item):resource.publicationDate)),__.push("    <\/div>    ")),__.push('    <div class="source">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Source:"))),__.push(" <\/span>"),typeof resource.source!="undefined"&&resource.source!=null&&(typeof resource.source=="function"?resource.source.call($item):resource.source)?(__.push(" <span>"),typeof resource.source!="undefined"&&resource.source!=null&&__.push($.encode(typeof resource.source=="function"?resource.source.call($item):resource.source)),__.push("<\/span> ")):!0&&(__.push("     <i>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","unavailable"))),__.push("<\/i>")),__.push("    <\/div>    "),typeof dataset.source!="undefined"&&dataset.source!=null&&(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)&&(__.push("    "),typeof dataset.licenseTypeName!="undefined"&&dataset.licenseTypeName!=null&&(typeof dataset.licenseTypeName=="function"?dataset.licenseTypeName.call($item):dataset.licenseTypeName)?(__.push('    <div class="license">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Data Usage Terms:"))),__.push(" <\/span><span>"),typeof dataset.licenseTypeName!="undefined"&&dataset.licenseTypeName!=null&&__.push($.encode(typeof dataset.licenseTypeName=="function"?dataset.licenseTypeName.call($item):dataset.licenseTypeName)),__.push("<\/span>    <\/div>    ")):!0&&(__.push("    "),typeof dataset.sourceLicenseTypeName!="undefined"&&dataset.sourceLicenseTypeName!=null&&(typeof dataset.sourceLicenseTypeName=="function"?dataset.sourceLicenseTypeName.call($item):dataset.sourceLicenseTypeName)&&(__.push('    <div class="license">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Data Usage Terms:"))),__.push(" <\/span><span>"),typeof dataset.sourceLicenseTypeName!="undefined"&&dataset.sourceLicenseTypeName!=null&&__.push($.encode(typeof dataset.sourceLicenseTypeName=="function"?dataset.sourceLicenseTypeName.call($item):dataset.sourceLicenseTypeName)),__.push("<\/span>    <\/div>    ")),__.push("    ")),__.push("    ")),__.push('    <div class="owner">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Uploaded by:"))),__.push(" <\/span><span>"),typeof resource.owner!="undefined"&&resource.owner!=null&&__.push($.encode(typeof resource.owner=="function"?resource.owner.call($item):resource.owner)),__.push("<\/span>    <\/div>    "),typeof dataset.showCategory!="undefined"&&dataset.showCategory!=null&&(typeof dataset.showCategory=="function"?dataset.showCategory.call($item):dataset.showCategory)&&(__.push("    "),typeof dataset.shareToCommunitiesAllowed!="undefined"&&dataset.shareToCommunitiesAllowed!=null&&(typeof dataset.shareToCommunitiesAllowed=="function"?dataset.shareToCommunitiesAllowed.call($item):dataset.shareToCommunitiesAllowed)&&(__.push('   <div class="category">    <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Category:"))),__.push(" <\/span><span>"),typeof dataset.category!="undefined"&&dataset.category!=null&&__.push($.encode(typeof dataset.category=="function"?dataset.category.call($item):dataset.category)),__.push("<\/span>   <\/div>    ")),__.push("    ")),__.push("    "),typeof resource.accessedOn!="undefined"&&resource.accessedOn!=null&&(typeof resource.accessedOn=="function"?resource.accessedOn.call($item):resource.accessedOn)&&(__.push('    <div class="last-accessed-on">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Accessed On:"))),__.push(" <\/span><span>"),typeof resource.accessedOn!="undefined"&&resource.accessedOn!=null&&__.push($.encode(typeof resource.accessedOn=="function"?resource.accessedOn.call($item):resource.accessedOn)),__.push("<\/span>    <\/div>    ")),__.push("    "),typeof resource.customMetadataFieldValues!="undefined"&&resource.customMetadataFieldValues!=null&&(typeof resource.customMetadataFieldValues=="function"?resource.customMetadataFieldValues.call($item):resource.customMetadataFieldValues)&&(__.push("    "),!0&&(__=__.concat($item.nest("Tmpl-dataset-list-custom-fields",{fields:resource.customMetadataFieldValues}))),__.push("    ")),__.push('    <div class="bottom-element"><\/div>    '),typeof(dataset.addToCatalogMode&&!dataset.shareToCommunitiesAllowed)!="undefined"&&(dataset.addToCatalogMode&&!dataset.shareToCommunitiesAllowed)!=null&&(typeof(dataset.addToCatalogMode&&!dataset.shareToCommunitiesAllowed)=="function"?(dataset.addToCatalogMode&&!dataset.shareToCommunitiesAllowed).call($item):dataset.addToCatalogMode&&!dataset.shareToCommunitiesAllowed)&&(__.push('    <div class="license-warning">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","This dataset cannot be use on Enterprise systems because of its terms of use. If you are interested in using it, please contact "))),__.push("<a href=mailto:info@knoema.com>info@knoema.com<\/a><\/div>    ")),__.push("    "),typeof!dataset.multiselect!="undefined"&&!dataset.multiselect!=null&&(typeof!dataset.multiselect=="function"?(!dataset.multiselect).call($item):!dataset.multiselect)&&(__.push("    "),typeof(filter=="global")!="undefined"&&filter=="global"!=null&&(typeof(filter=="global")=="function"?(filter=="global").call($item):filter=="global")?(__.push("    "),typeof hasShortCut!="undefined"&&hasShortCut!=null&&(typeof hasShortCut=="function"?hasShortCut.call($item):hasShortCut)?(__.push('    <span class="included-in-catalog">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Included in catalog"))),__.push("<\/span>    ")):!0&&(__.push('    <a class="select-dataset include-to-catalog kn-button common accent" id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Add to catalog"))),__.push("<\/a>    ")),__.push("    ")):!0&&(__.push('    <a class="select-dataset'),typeof disableSelection!="undefined"&&disableSelection!=null&&(typeof disableSelection=="function"?disableSelection.call($item):disableSelection)&&__.push(" disabled"),__.push(' kn-button common accent" '),typeof disableReason!="undefined"&&disableReason!=null&&(typeof disableReason=="function"?disableReason.call($item):disableReason)&&(__.push(' data-disable-reason="'),typeof disableReason!="undefined"&&disableReason!=null&&__.push($.encode(typeof disableReason=="function"?disableReason.call($item):disableReason)),__.push('" ')),__.push(' data-datasetid="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-calendar="'),typeof(calendar||0)!="undefined"&&(calendar||0)!=null&&__.push($.encode(typeof(calendar||0)=="function"?(calendar||0).call($item):calendar||0)),__.push('" href="/'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push("/"),typeof Knoema.Utils.normalizeString!="undefined"&&Knoema.Utils.normalizeString!=null&&__.push($.encode(Knoema.Utils.normalizeString(resource.title))),__.push('"> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-dataset-list.htm","Select Dataset"))),__.push("<\/a>    ")),__.push("    ")),__.push("    "),typeof description!="undefined"&&description!=null&&(typeof description=="function"?description.call($item):description)&&(__.push('    <div class="description">'),typeof Knoema.Utils.tidyUpHTML!="undefined"&&Knoema.Utils.tidyUpHTML!=null&&__.push(Knoema.Utils.tidyUpHTML(resource.description)),__.push("<\/div>    ")),__.push("   <\/div>  <\/li>");return __});jQuery.template("Tmpl-dsbrowser2-search-section",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-section">   <ul class="search-section-items">    <li class="active dataset">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-section.htm","Datasets"))),__.push("<\/li>    "),typeof(filter!="global")!="undefined"&&filter!="global"!=null&&(typeof(filter!="global")=="function"?(filter!="global").call($item):filter!="global")&&(__.push('    <li class="timeseries">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-section.htm","Time Series"))),__.push("<\/li>    ")),__.push('   <\/ul>   <div class="search-filter-textarea">    <input type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-search-section.htm","Enter search query here"))),__.push('" value="'),typeof filterText!="undefined"&&filterText!=null&&__.push($.encode(typeof filterText=="function"?filterText.call($item):filterText)),__.push('" />   <\/div>   <div class="dataset-results">    <div class="dataset-result-container">     <ul class="dataset-result"><\/ul>    <\/div>   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-section-result",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="result-container">   <div class="filter-textarea">    <input type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-section-result.htm","Type to filter"))),__.push('" class="filter" />   <\/div>   <div class="sort-container">    <div class="sort-container-grid">     <div class="sort">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-section-result.htm","Name:"))),__.push(' <\/span>     <\/div>    <\/div>   <\/div>   <div class="dataset-results">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-hierarchy-section-result",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="result-container">   <div class="sort-container">    <div class="sort-container-grid">     <div class="sort">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-hierarchy-section-result.htm","Name:"))),__.push(' <\/span>     <\/div>    <\/div>   <\/div>   <div class="dataset-results">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-personal-section",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="personal-section">   <div class="personal-section-menu">    <ul class="personal-section-items">     <li class="active favorites">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-personal-section.htm","Bookmarks"))),__.push('<\/li>     <li class="recent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-personal-section.htm","Recently used"))),__.push('<\/li>     <li class="my">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-personal-section.htm","My datasets"))),__.push('<\/li>     <li class="shared">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-personal-section.htm","Shared with me"))),__.push("<\/li>     "),typeof showRecentUploads!="undefined"&&showRecentUploads!=null&&(typeof showRecentUploads=="function"?showRecentUploads.call($item):showRecentUploads)&&(__.push('     <li class="uploads">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-personal-section.htm","Recent uploads"))),__.push("<\/li>     ")),__.push('    <\/ul>   <\/div>   <div class="dsbrowser-datasets-container">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-dsbrowser2-dataset-result-tbody",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof sortedDatasets!="undefined"&&sortedDatasets!=null&&$.each(typeof sortedDatasets=="function"?sortedDatasets.call($item):sortedDatasets,function(n,result){with(this)__.push("   "),typeof result.datasets!="undefined"&&result.datasets!=null&&$.each(typeof result.datasets=="function"?result.datasets.call($item):result.datasets,function(j,dataset){with(this)__.push("    <tr>     "),typeof(j==0)!="undefined"&&j==0!=null&&(typeof(j==0)=="function"?(j==0).call($item):j==0)?(__.push('      <td id="'),typeof(dataset.sortBy=="name")!="undefined"&&dataset.sortBy=="name"!=null&&(typeof(dataset.sortBy=="name")=="function"?(dataset.sortBy=="name").call($item):dataset.sortBy=="name")?(__.push(""),typeof result.text!="undefined"&&result.text!=null&&__.push($.encode(typeof result.text=="function"?result.text.call($item):result.text)),__.push("")):!0&&(__.push(""),typeof result.id!="undefined"&&result.id!=null&&__.push($.encode(typeof result.id=="function"?result.id.call($item):result.id)),__.push("")),__.push('" class="dataset-header">'),typeof result.text!="undefined"&&result.text!=null&&__.push($.encode(typeof result.text=="function"?result.text.call($item):result.text)),__.push("<\/td>     ")):!0&&__.push("      <td><\/td>     "),__.push("     <td "),typeof(dataset.sortBy=="date")!="undefined"&&dataset.sortBy=="date"!=null&&(typeof(dataset.sortBy=="date")=="function"?(dataset.sortBy=="date").call($item):dataset.sortBy=="date")&&(__.push('data-parent-item-text="'),typeof result.text!="undefined"&&result.text!=null&&__.push($.encode(typeof result.text=="function"?result.text.call($item):result.text)),__.push('" data-parent-item-id="'),typeof result.id!="undefined"&&result.id!=null&&__.push($.encode(typeof result.id=="function"?result.id.call($item):result.id)),__.push('"')),__.push(">      "),!0&&(__=__.concat($item.nest("Tmpl-dsbrowser2-dataset-list",dataset))),__.push("     <\/td>    <\/tr>   ")}),__.push("  ")}),__.push("");return __});jQuery.template("Tmpl-dsbrowser2-dataset-list",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div class="dataset-result-item">   <div class="result-title-with-arrow">          <a class="dataset-result-title" id="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" data-id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" data-category="'),typeof category!="undefined"&&category!=null&&__.push($.encode(typeof category=="function"?category.call($item):category)),__.push('" href="#">              <span class="dataset-result-arrow"><\/span>              '),typeof multiselect!="undefined"&&multiselect!=null&&(typeof multiselect=="function"?multiselect.call($item):multiselect)&&(__.push("              "),typeof shareToCommunitiesAllowed!="undefined"&&shareToCommunitiesAllowed!=null&&(typeof shareToCommunitiesAllowed=="function"?shareToCommunitiesAllowed.call($item):shareToCommunitiesAllowed)?(__.push("              "),typeof hasShortCut!="undefined"&&hasShortCut!=null&&(typeof hasShortCut=="function"?hasShortCut.call($item):hasShortCut)?__.push('              <span class="dataset-result-included check-license-status"><\/span>              '):!0&&(__.push('                            <label class="mtl-checkbox check-license-status">                  <input type="checkbox" class="mtl-checkbox-input dataset-result-check" id="dataset-check-'),typeof id.replace!="undefined"&&id.replace!=null&&__.push($.encode(id.replace(" ","-"))),__.push('" '),typeof checked!="undefined"&&checked!=null&&(typeof checked=="function"?checked.call($item):checked)&&__.push(' checked="checked" '),__.push(' />                  <span class="mtl-checkbox-bg"><\/span>              <\/label>              ')),__.push("              ")):!0&&__.push('              <span class="dataset-result-forbidden check-license-status"><\/span>              '),__.push("              ")),__.push('              <label class="dataset-result-name" for="dataset-check-'),typeof id.replace!="undefined"&&id.replace!=null&&__.push($.encode(id.replace(" ","-"))),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/label>          <\/a>    "),typeof(filter!="global")!="undefined"&&filter!="global"!=null&&(typeof(filter!="global")=="function"?(filter!="global").call($item):filter!="global")&&(__.push('     <a href="/resource/pin/'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" id="dataset-pin" data-datasetid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" data-datasetname="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" class="add-favorites '),typeof pinned!="undefined"&&pinned!=null&&(typeof pinned=="function"?pinned.call($item):pinned)?__.push("pinned"):!0&&__.push("unpinned"),__.push('">      <span        class="knoema-ico bookmark"        title=\''),typeof pinned!="undefined"&&pinned!=null&&(typeof pinned=="function"?pinned.call($item):pinned)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Remove Dataset from Bookmarks"))),__.push("")):!0&&(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Add Dataset to Bookmarks"))),__.push("")),__.push("'      ><\/span>     <\/a>    ")),__.push('   <\/div>   <div class="dataset-result-preview">    <div class="top-element"><\/div>    '),typeof publicationDateMonthAndYear!="undefined"&&publicationDateMonthAndYear!=null&&(typeof publicationDateMonthAndYear=="function"?publicationDateMonthAndYear.call($item):publicationDateMonthAndYear)?(__.push('    <div class="publication-date">'),typeof publicationDateMonthAndYear!="undefined"&&publicationDateMonthAndYear!=null&&__.push($.encode(typeof publicationDateMonthAndYear=="function"?publicationDateMonthAndYear.call($item):publicationDateMonthAndYear)),__.push("<\/div>    ")):typeof publicationDate!="undefined"&&publicationDate!=null&&(typeof publicationDate=="function"?publicationDate.call($item):publicationDate)&&(__.push('    <div class="publication-date">'),typeof publicationDate!="undefined"&&publicationDate!=null&&__.push($.encode(typeof publicationDate=="function"?publicationDate.call($item):publicationDate)),__.push("<\/div>    ")),__.push('    <div class="source">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Source:"))),__.push(" <\/span>"),typeof source!="undefined"&&source!=null&&(typeof source=="function"?source.call($item):source)?(__.push(" <span>"),typeof source.localizedName!="undefined"&&source.localizedName!=null&&__.push($.encode(typeof source.localizedName=="function"?source.localizedName.call($item):source.localizedName)),__.push("<\/span> ")):!0&&(__.push(" <i>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","unavailable"))),__.push("<\/i>")),__.push("    <\/div>    "),typeof source!="undefined"&&source!=null&&(typeof source=="function"?source.call($item):source)&&(__.push("    "),typeof licenseTypeName!="undefined"&&licenseTypeName!=null&&(typeof licenseTypeName=="function"?licenseTypeName.call($item):licenseTypeName)?(__.push('    <div class="license">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Data Usage Terms:"))),__.push(" <\/span><span>"),typeof licenseTypeName!="undefined"&&licenseTypeName!=null&&__.push($.encode(typeof licenseTypeName=="function"?licenseTypeName.call($item):licenseTypeName)),__.push("<\/span>    <\/div>    ")):!0&&(__.push("    "),typeof source.licenseTypeName!="undefined"&&source.licenseTypeName!=null&&(typeof source.licenseTypeName=="function"?source.licenseTypeName.call($item):source.licenseTypeName)&&(__.push('    <div class="license">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Data Usage Terms:"))),__.push(" <\/span><span>"),typeof source.licenseTypeName!="undefined"&&source.licenseTypeName!=null&&__.push($.encode(typeof source.licenseTypeName=="function"?source.licenseTypeName.call($item):source.licenseTypeName)),__.push("<\/span>    <\/div>    ")),__.push("    ")),__.push("    ")),__.push('    <div class="owner">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Uploaded by:"))),__.push(" <\/span><span>"),typeof owner!="undefined"&&owner!=null&&__.push($.encode(typeof owner=="function"?owner.call($item):owner)),__.push("<\/span>    <\/div>    "),typeof showCategory!="undefined"&&showCategory!=null&&(typeof showCategory=="function"?showCategory.call($item):showCategory)&&(__.push("    "),typeof shareToCommunitiesAllowed!="undefined"&&shareToCommunitiesAllowed!=null&&(typeof shareToCommunitiesAllowed=="function"?shareToCommunitiesAllowed.call($item):shareToCommunitiesAllowed)&&(__.push('    <div class="category">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Category:"))),__.push(" <\/span><span>"),typeof category!="undefined"&&category!=null&&__.push($.encode(typeof category=="function"?category.call($item):category)),__.push("<\/span>    <\/div>    ")),__.push("    ")),__.push("    "),typeof accessedOn!="undefined"&&accessedOn!=null&&(typeof accessedOn=="function"?accessedOn.call($item):accessedOn)&&(__.push('    <div class="last-accessed-on">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Accessed On:"))),__.push(" <\/span><span>"),typeof accessedOn!="undefined"&&accessedOn!=null&&__.push($.encode(typeof accessedOn=="function"?accessedOn.call($item):accessedOn)),__.push("<\/span>    <\/div>    ")),__.push("    "),typeof customMetadataFieldValues!="undefined"&&customMetadataFieldValues!=null&&(typeof customMetadataFieldValues=="function"?customMetadataFieldValues.call($item):customMetadataFieldValues)&&(__.push("    "),!0&&(__=__.concat($item.nest("Tmpl-dataset-list-custom-fields",{fields:customMetadataFieldValues}))),__.push("    ")),__.push('    <div class="bottom-element"><\/div>    '),typeof(filter=="global")!="undefined"&&filter=="global"!=null&&(typeof(filter=="global")=="function"?(filter=="global").call($item):filter=="global")&&(__.push("    "),typeof hasShortCut!="undefined"&&hasShortCut!=null&&(typeof hasShortCut=="function"?hasShortCut.call($item):hasShortCut)&&(__.push('    <span class="included-in-catalog">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Included in catalog"))),__.push("<\/span>    ")),__.push("    ")),__.push("    "),typeof multiselect!="undefined"&&multiselect!=null&&(typeof multiselect=="function"?multiselect.call($item):multiselect)&&(__.push("    "),typeof!shareToCommunitiesAllowed!="undefined"&&!shareToCommunitiesAllowed!=null&&(typeof!shareToCommunitiesAllowed=="function"?(!shareToCommunitiesAllowed).call($item):!shareToCommunitiesAllowed)&&(__.push('    <div class="license-warning">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","This dataset cannot be use on Enterprise systems because of its terms of use. If you are interested in using it, please contact "))),__.push("<a href=mailto:info@knoema.com>info@knoema.com<\/a><\/div>    ")),__.push("    ")),__.push("    "),typeof(filter!=="global")!="undefined"&&filter!=="global"!=null&&(typeof(filter!=="global")=="function"?(filter!=="global").call($item):filter!=="global")&&(__.push("    "),typeof($data.calendar=$data.calendar||0,"")!="undefined"&&($data.calendar=$data.calendar||0,"")!=null&&__.push($.encode(typeof($data.calendar=$data.calendar||0,"")=="function"?($data.calendar=$data.calendar||0,"").call($item):($data.calendar=$data.calendar||0,""))),__.push('    <a class="select-dataset'),typeof disableSelection!="undefined"&&disableSelection!=null&&(typeof disableSelection=="function"?disableSelection.call($item):disableSelection)&&__.push(" disabled"),__.push(' kn-button common accent" '),typeof disableReason!="undefined"&&disableReason!=null&&(typeof disableReason=="function"?disableReason.call($item):disableReason)&&(__.push(' data-disable-reason="'),typeof disableReason!="undefined"&&disableReason!=null&&__.push($.encode(typeof disableReason=="function"?disableReason.call($item):disableReason)),__.push('" ')),__.push(' data-datasetid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" data-calendar="'),typeof calendar!="undefined"&&calendar!=null&&__.push($.encode(typeof calendar=="function"?calendar.call($item):calendar)),__.push('" href="/'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push("/"),typeof Knoema.Utils.normalizeString!="undefined"&&Knoema.Utils.normalizeString!=null&&__.push($.encode(Knoema.Utils.normalizeString(title))),__.push('"> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Select Dataset"))),__.push("<\/a>    "),typeof showRemoveDs!="undefined"&&showRemoveDs!=null&&(typeof showRemoveDs=="function"?showRemoveDs.call($item):showRemoveDs)&&(__.push('    <a class="remove-dataset" data-datasetid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" href="#"> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dsbrowser2-dataset-list.htm","Remove Dataset"))),__.push("<\/a>    ")),__.push("    ")),__.push("    "),typeof description!="undefined"&&description!=null&&(typeof description=="function"?description.call($item):description)&&(__.push('    <div class="description">'),typeof Knoema.Utils.tidyUpHTML!="undefined"&&Knoema.Utils.tidyUpHTML!=null&&__.push(Knoema.Utils.tidyUpHTML(description)),__.push("<\/div>    ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-search-empty",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-empty-msg">   '),typeof noRelevantResults!="undefined"&&noRelevantResults!=null&&(typeof noRelevantResults=="function"?noRelevantResults.call($item):noRelevantResults)?(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No relevant results were found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>&#046;&nbsp;"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","To see what we were able to find click"))),__.push('&nbsp;<span id="search-show-no-relevant-results">here<\/span>&#046;<\/p>   ')):!0&&(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No results found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>.<\/p>   ")),__.push("     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Search tips:"))),__.push("<ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Ensure words are spelled correctly."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try rephrasing keywords or using synonyms."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try less specific keywords."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Make your queries as concise as possible."))),__.push("<\/li>    <\/ul>   <\/p>     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Other resources that may help you:"))),__.push("    <ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Get additional search tips by visiting Web Search Help."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","If you cannot find a page that you know exists, send the address to us"))),__.push("<\/li>    <\/ul>   <\/p>  <\/div>");return __});jQuery.template("Tmpl-dataset-list-custom-fields",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof fields!="undefined"&&fields!=null&&$.each(typeof fields=="function"?fields.call($item):fields,function(n,field){with(this)__.push("   "),typeof field.value!="undefined"&&field.value!=null&&(typeof field.value=="function"?field.value.call($item):field.value)&&(__.push('    <div class="dataset-list-custom-field">     <span>'),typeof field.name!="undefined"&&field.name!=null&&__.push($.encode(typeof field.name=="function"?field.name.call($item):field.name)),__.push(" : <\/span>     "),typeof(field.type=="FormattedText")!="undefined"&&field.type=="FormattedText"!=null&&(typeof(field.type=="FormattedText")=="function"?(field.type=="FormattedText").call($item):field.type=="FormattedText")?(__.push('      <div class="formatted-field">'),typeof field.displayValue!="undefined"&&field.displayValue!=null&&__.push(typeof field.displayValue=="function"?field.displayValue.call($item):field.displayValue),__.push("<\/div>     ")):typeof(field.type=="Hyperlink")!="undefined"&&field.type=="Hyperlink"!=null&&(typeof(field.type=="Hyperlink")=="function"?(field.type=="Hyperlink").call($item):field.type=="Hyperlink")?(__.push('      <a href="'),typeof field.value!="undefined"&&field.value!=null&&__.push($.encode(typeof field.value=="function"?field.value.call($item):field.value)),__.push('">'),typeof field.displayValue!="undefined"&&field.displayValue!=null&&__.push($.encode(typeof field.displayValue=="function"?field.displayValue.call($item):field.displayValue)),__.push("<\/a>     ")):!0&&(__.push("      <span>"),typeof field.displayValue!="undefined"&&field.displayValue!=null&&__.push($.encode(typeof field.displayValue=="function"?field.displayValue.call($item):field.displayValue)),__.push("<\/span>     ")),__.push("    <\/div>   ")),__.push("  ")}),__.push("");return __});jQuery.template("Tmpl-dataset-browser-search-timeseries",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item">   <a class="search-result-title" id="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('" href="#">    '),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<span class="search-result-arrow"><\/span><\/a>   <div style= "margin-top: '),typeof metadataMarginTop!="undefined"&&metadataMarginTop!=null&&__.push($.encode(typeof metadataMarginTop=="function"?metadataMarginTop.call($item):metadataMarginTop)),__.push('">    <span class="search-metadata-item">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-search-timeseries.htm","Source:"))),__.push(' <\/span><span class="search-metadata-value">     <a target="_blank" href="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('">'),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push("<\/a>;<\/span>&nbsp;    "),typeof(typeof startDate!="undefined"&&typeof endDate!="undefined")!="undefined"&&(typeof startDate!="undefined"&&typeof endDate!="undefined")!=null&&(typeof(typeof startDate!="undefined"&&typeof endDate!="undefined")=="function"?(typeof startDate!="undefined"&&typeof endDate!="undefined").call($item):typeof startDate!="undefined"&&typeof endDate!="undefined")&&(__.push('     <span class="search-metadata-item">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-search-timeseries.htm","Range:"))),__.push(' <\/span><span class="search-metadata-value">     '),typeof startDate!="undefined"&&startDate!=null&&__.push($.encode(typeof startDate=="function"?startDate.call($item):startDate)),__.push("-"),typeof endDate!="undefined"&&endDate!=null&&__.push($.encode(typeof endDate=="function"?endDate.call($item):endDate)),__.push(";<\/span>&nbsp;     ")),__.push('    <span class="search-metadata-item">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-search-timeseries.htm","Type:"))),__.push(' <\/span><span class="search-metadata-value">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-search-timeseries.htm","Timeseries"))),__.push('<\/span>   <\/div>   <input id="data-desc" type="hidden" value="'),typeof JSON.stringify!="undefined"&&JSON.stringify!=null&&__.push($.encode(JSON.stringify(dataDescriptor))),__.push('" />   <div class="search-result-preview">    <br />    <div class="search-result-preview-host gadget-container">    <\/div>    <a class="ui-button timeseries-browse" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-ts="'),typeof timeSeriesKey!="undefined"&&timeSeriesKey!=null&&__.push($.encode(typeof timeSeriesKey=="function"?timeSeriesKey.call($item):timeSeriesKey)),__.push('"     data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-history-key="'),typeof historyKey!="undefined"&&historyKey!=null&&__.push($.encode(typeof historyKey=="function"?historyKey.call($item):historyKey)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-search-timeseries.htm","Browse"))),__.push("    <\/a>   <\/div>  "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("  ")),__.push("  <\/div>");return __})