jQuery.template("Tmpl-knoema-page-dashboard-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<form class="new-page" action="/page/new" method="GET">      <div id="layout-desc">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/dashboard-dialog.htm","Select a predefined layout."))),__.push('<\/div>        <div class="layout-table">          <div class="layout-row">           <div class="layout-cell">            <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="Single" checked/>            <div class="layout-placeholder"><\/div>           <\/div>           <div class="layout-cell">            <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoRow" />            <div class="layout-placeholder"><\/div>           <\/div>              <div class="layout-cell">                  <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoColumn" />                  <div class="layout-placeholder"><\/div>              <\/div>          <\/div>       <div class="layout-row">        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoColumnLeftSplit" />         <div class="layout-placeholder"><\/div>        <\/div>        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoColumnRightSplit" />         <div class="layout-placeholder"><\/div>        <\/div>        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoRowThreeGadget"/>         <div class="layout-placeholder"><\/div>        <\/div>       <\/div>       <div class="layout-row">        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="TwoRowBottomSplit" />         <div class="layout-placeholder"><\/div>        <\/div>        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="FourGadget"/>         <div class="layout-placeholder"><\/div>        <\/div>        '),typeof full!="undefined"&&full!=null&&(typeof full=="function"?full.call($item):full)&&__.push('        <div class="layout-cell">         <input type="radio" class="ui-helper-hidden-accessible" name="layout" value="Wiki"/>         <div class="layout-placeholder"><\/div>        <\/div>        '),__.push("       <\/div>      <\/div>  <\/form>    "),typeof showWarning!="undefined"&&showWarning!=null&&(typeof showWarning=="function"?showWarning.call($item):showWarning)&&(__.push('   <div id="dataset-warning-message">    '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/page/dashboard-dialog.htm","The content of this dashboard will be saved to the {default} locale. You may localize it to the {current} locale later.",{"default":defaultLocale,current:currentLocale})),__.push("   <\/div>  ")),__.push("");return __});jQuery.template("Tmpl-knoema-page-save-copy-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="save-copy-dialog" title="'),typeof dialogTitle!="undefined"&&dialogTitle!=null&&__.push($.encode(typeof dialogTitle=="function"?dialogTitle.call($item):dialogTitle)),__.push('">     <div class="title">    <label>     '),typeof titleEditorLabel!="undefined"&&titleEditorLabel!=null&&__.push($.encode(typeof titleEditorLabel=="function"?titleEditorLabel.call($item):titleEditorLabel)),__.push('<\/label><br />    <input class="title-editor" type="text" maxlength="255" value="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('" />   <\/div>     <div class="description">    <label>     '),typeof descriptionEditorLabel!="undefined"&&descriptionEditorLabel!=null&&__.push($.encode(typeof descriptionEditorLabel=="function"?descriptionEditorLabel.call($item):descriptionEditorLabel)),__.push('<\/label><br />    <div class="description-editor">     '),typeof description!="undefined"&&description!=null&&__.push(typeof description=="function"?description.call($item):description),__.push("    <\/div>   <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-page-save-copy-noshortcut-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="no-shortcut-datasets-dialog" class="save-copy-noshortcut-dialog">  <p class="dialog-warning-message">'),typeof warningMessage!="undefined"&&warningMessage!=null&&__.push($.encode(typeof warningMessage=="function"?warningMessage.call($item):warningMessage)),__.push("<\/p>  <p>"),typeof message!="undefined"&&message!=null&&__.push($.encode(typeof message=="function"?message.call($item):message)),__.push("<\/p>  <ul>   "),typeof datasets!="undefined"&&datasets!=null&&$.each(typeof datasets=="function"?datasets.call($item):datasets,function(){with(this)__.push('    <li><a href="//'),typeof Url!="undefined"&&Url!=null&&__.push($.encode(typeof Url=="function"?Url.call($item):Url)),__.push("\" target='_blank'>"),typeof Name!="undefined"&&Name!=null&&__.push($.encode(typeof Name=="function"?Name.call($item):Name)),__.push("<\/a><\/li>   ")}),__.push("  <\/ul> <\/div>");return __});jQuery.template("Tmpl-knoema-page-edit-infographics-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="edit-infographics-dialog" title="'),typeof infographics!="undefined"&&infographics!=null&&(typeof infographics=="function"?infographics.call($item):infographics)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/edit-infographics-dialog.htm","Edit Infographics Url"))),__.push(" ")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/edit-infographics-dialog.htm","Set Infographics Url"))),__.push(" ")),__.push('" class="form">   <label for="infographics">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/edit-infographics-dialog.htm","Image url:"))),__.push('   <\/label>   <input type="text" id="infographics" value="'),typeof infographics!="undefined"&&infographics!=null&&__.push($.encode(typeof infographics=="function"?infographics.call($item):infographics)),__.push('" />   <div class="error-message"><\/div>  <\/div>');return __});jQuery.template("Tmpl-share-resource-people-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<li data-key="'),typeof Key!="undefined"&&Key!=null&&__.push($.encode(typeof Key=="function"?Key.call($item):Key)),__.push('" data-id="'),typeof Id!="undefined"&&Id!=null&&__.push($.encode(typeof Id=="function"?Id.call($item):Id)),__.push('" data-provider="'),typeof $item.provider!="undefined"&&$item.provider!=null&&__.push($.encode(typeof $item.provider=="function"?$item.provider.call($item):$item.provider)),__.push('" data-note="'),typeof Note!="undefined"&&Note!=null&&__.push($.encode(typeof Note=="function"?Note.call($item):Note)),__.push('" class="friend">      <div class="avatar" style="background: url(/img/v2/shared/site/user.gif)">&nbsp;<\/div>      '),typeof Name!="undefined"&&Name!=null&&(typeof Name=="function"?Name.call($item):Name)?(__.push('      <b class="name">'),typeof Name!="undefined"&&Name!=null&&__.push($.encode(typeof Name=="function"?Name.call($item):Name)),__.push("<\/b><br />      ")):!0&&(__.push('      <b class="name">'),typeof Id!="undefined"&&Id!=null&&__.push($.encode(typeof Id=="function"?Id.call($item):Id)),__.push("<\/b><br />      ")),__.push('      <div class="levels-table">          <div class="levels-table-row">              <div class="levels-table-col"><span data-level="None">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/share-resource-people-item.htm","No access"))),__.push('<\/span><\/div>              <div class="levels-table-col"><span data-level="Read">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/share-resource-people-item.htm","View"))),__.push('<\/span><\/div>              <div class="levels-table-col"><span data-level="Write">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/share-resource-people-item.htm","Edit"))),__.push('<\/span><\/div>              <div class="levels-table-col"><span data-level="Full">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/share-resource-people-item.htm","Full control"))),__.push("<\/span><\/div>          <\/div>      <\/div>  <\/li>");return __});jQuery.template("Tmpl-change-owner-dialog",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="change-owner-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-owner-dialog.htm","Change owner"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-owner-dialog.htm","Loading..."))),__.push("<\/div>");return __});jQuery.template("Tmpl-change-resource-owner-user",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('﻿<img src="'),typeof pictureUrl!="undefined"&&pictureUrl!=null&&__.push($.encode(typeof pictureUrl=="function"?pictureUrl.call($item):pictureUrl)),__.push('" alt=""/>  <div>   <div class="user-item-name">'),typeof firstName!="undefined"&&firstName!=null&&__.push($.encode(typeof firstName=="function"?firstName.call($item):firstName)),__.push(" "),typeof lastName!="undefined"&&lastName!=null&&__.push($.encode(typeof lastName=="function"?lastName.call($item):lastName)),__.push('<\/div>   <div class="user-item-email">'),typeof email!="undefined"&&email!=null&&__.push($.encode(typeof email=="function"?email.call($item):email)),__.push("<\/div>  <\/div>");return __});jQuery.template("Tmpl-change-resource-owner",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="change-resource-owner" class="">  <div class="resource-old-owner user-item">    <div class="legend">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-resource-owner.htm","Current owner:"))),__.push('<\/div>    <div class="container">     '),typeof oldOwner!="undefined"&&oldOwner!=null&&(typeof oldOwner=="function"?oldOwner.call($item):oldOwner)?(__.push("      "),!0&&(__=__.concat($item.nest("Tmpl-change-resource-owner-user",oldOwner))),__.push("     ")):!0&&__.push('      <span class="logo-knoema"><\/span>     '),__.push('     <\/div>  <\/div>  <div class="resource-new-owner">   <div class="find-new-owner">    <input id="find-new-owner" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-resource-owner.htm","To find new owner type e-mail address here..."))),__.push('" />     <button class="ui-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-resource-owner.htm","Find"))),__.push('<\/button>    <div class="error-message"  style="display: none"><\/div>   <\/div>   <div class="resource-new-owner user-item" style="display: none">    <div class="legend">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-resource-owner.htm","New owner:"))),__.push('<\/div>    <div class="container"><\/div>     <a href="#" class="back">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/change-resource-owner.htm","Back"))),__.push("<\/a>   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-dataset-browser-dataset-results",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/dataset-browser-dataset-results.htm","Type to filter"))),__.push('" class="filter" />   <\/div>   <div class="dataset-results">    <div class="dataset-results-content"><\/div>   <\/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-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-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-file-upload-local",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="'),typeof uploadContainerId!="undefined"&&uploadContainerId!=null&&__.push($.encode(typeof uploadContainerId=="function"?uploadContainerId.call($item):uploadContainerId)),__.push('" class="upload-container">   <form action="/page/uploadfile" enctype="multipart/form-data" method="post">    <a class="'),typeof css!="undefined"&&css!=null&&__.push($.encode(typeof css=="function"?css.call($item):css)),__.push(' kn-button common accent">     '),typeof buttonText!="undefined"&&buttonText!=null&&__.push($.encode(typeof buttonText=="function"?buttonText.call($item):buttonText)),__.push('    <\/a>    <input type="hidden" name="filter" value="'),typeof filter!="undefined"&&filter!=null&&__.push($.encode(typeof filter=="function"?filter.call($item):filter)),__.push('" />    <input type="file" name="file" id="file" class="invisible" />    <img id="progress" src="/img/v2/shared/progress-anim.gif" alt="" />   <\/form>  <\/div>');return __});jQuery.template("Tmpl-user-banners",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="userBanners" class="userBanners">   <div id="title" class="title">Previously uploaded<\/div>   <ul id="banners" class="banners">    '),typeof banners!="undefined"&&banners!=null&&$.each(typeof banners=="function"?banners.call($item):banners,function(n,banner){with(this)__.push('    <li>     <div class="oneBanner" id="'),typeof banner.id!="undefined"&&banner.id!=null&&__.push($.encode(typeof banner.id=="function"?banner.id.call($item):banner.id)),__.push('">      <img class="bannerImage" src="'),typeof banner.scr!="undefined"&&banner.scr!=null&&__.push($.encode(typeof banner.scr=="function"?banner.scr.call($item):banner.scr)),__.push('">      <img class="deleteButton">     <\/div>    <\/li>     ')}),__.push("   <\/ul>  <\/div>");return __})