660
| <![CDATA[<div class="col-md-3" style="margin-top: -35px">
<h5 class="facets">Refinar busca</h5>
<div class="card facet-card">
<ul class="list-group list-group-flush">
<li id="facet_type" class="list-group-item default-strong-background"><b>Acervo</b></li>
<li class="list-group-item"><span class="badge badge-light float-right">10</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=type&filterquery=V%C3%ADdeo&filtertype=equals"
title="Filtrado por Vídeo">
Vídeo
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">2</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=type&filterquery=Texto&filtertype=equals"
title="Filtrado por Texto">
Texto
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">1</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=type&filterquery=%C3%81udio&filtertype=equals"
title="Filtrado por Áudio">
Áudio
</a></li>
</ul>
</div>
<div class="card facet-card">
<ul class="list-group list-group-flush">
<li id="facet_classification" class="list-group-item default-strong-background"><b>Area Temática</b></li>
<li class="list-group-item"><span class="badge badge-light float-right">6</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=classification&filterquery=Sa%C3%BAde+da+Crian%C3%A7a&filtertype=equals"
title="Filtrado por Saúde da Criança">
Saúde da Criança
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">4</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=classification&filterquery=Alimenta%C3%A7%C3%A3o+e+Nutri%C3%A7%C3%A3o&filtertype=equals"
title="Filtrado por Alimentação e Nutrição">
Alimentação e Nutrição
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">4</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=classification&filterquery=Sa%C3%BAde+da+Mulher&filtertype=equals"
title="Filtrado por Saúde da Mulher">
Saúde da Mulher
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">3</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=classification&filterquery=Diabetes&filtertype=equals"
title="Filtrado por Diabetes">
Diabetes
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">3</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=classification&filterquery=Educa%C3%A7%C3%A3o+em+Sa%C3%BAde&filtertype=equals"
title="Filtrado por Educação em Saúde">
Educação em Saúde
</a></li>
<li class="list-group-item"><span style="visibility: hidden;">.</span>
<a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&classification_page=1"><span class="pull-right">próximo ></span></a>
</li>
</ul>
</div>
<div class="card facet-card">
<ul class="list-group list-group-flush">
<li id="facet_audienceOccupationOrder" class="list-group-item default-strong-background"><b>Público-alvo: ocupação</b></li>
<li class="list-group-item"><span class="badge badge-light float-right">3</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=audienceOccupationOrder&filterquery=M%C3%A9dicos%2C+enfermeiros%2C+gestantes%2C+parturientes.&filtertype=equals"
title="Filtrado por Médicos, enfermeiros, gestantes, parturientes.">
Médicos, enfermeiros, gestantes, ...
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">2</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=audienceOccupationOrder&filterquery=Enfermeiros+e+afins&filtertype=equals"
title="Filtrado por Enfermeiros e afins">
Enfermeiros e afins
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">2</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=audienceOccupationOrder&filterquery=M%C3%A9dicos%2C+enfermeiros&filtertype=equals"
title="Filtrado por Médicos, enfermeiros">
Médicos, enfermeiros
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">1</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=audienceOccupationOrder&filterquery=Cuidador+em+sa%C3%BAde&filtertype=equals"
title="Filtrado por Cuidador em saúde">
Cuidador em saúde
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">1</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=audienceOccupationOrder&filterquery=Cuidadores+de+crian%C3%A7as%2C+jovens%2C+adultos+e+idosos&filtertype=equals"
title="Filtrado por Cuidadores de crianças, jovens, adultos e idosos">
Cuidadores de crianças, jovens, a...
</a></li>
<li class="list-group-item"><span style="visibility: hidden;">.</span>
<a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&audienceOccupationOrder_page=1"><span class="pull-right">próximo ></span></a>
</li>
</ul>
</div>
<div class="card facet-card">
<ul class="list-group list-group-flush">
<li id="facet_learningResourceType" class="list-group-item default-strong-background"><b>Tipo de recurso</b></li>
<li class="list-group-item"><span class="badge badge-light float-right">9</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=learningResourceType&filterquery=V%C3%ADdeo&filtertype=equals"
title="Filtrado por Vídeo">
Vídeo
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">2</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=learningResourceType&filterquery=Texto&filtertype=equals"
title="Filtrado por Texto">
Texto
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">1</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=learningResourceType&filterquery=Anima%C3%A7%C3%A3o&filtertype=equals"
title="Filtrado por Animação">
Animação
</a></li>
<li class="list-group-item"><span class="badge badge-light float-right">1</span> <a href="/acervo/handle/ARES/1315/simple-search?query=&sort_by=score&order=desc&rpp=10&etal=0&filtername=learningResourceType&filterquery=%C3%81udio&filtertype=equals"
title="Filtrado por Áudio">
Áudio
</a></li>
</ul>
</div>
</div>]]>
|
72
| <![CDATA[<script>
$(document).ready(function(){
$(function () {
$('[data-toggle="tooltip"]').tooltip();
})
});
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var urlBase="https://intranet.unasus.gov.br/statistics/";
_paq.push(["setTrackerUrl", urlBase+"piwik.php"]);
_paq.push(["setSiteId", "6"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=urlBase+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>]]>
|
112
| <![CDATA[<script type="text/javascript">
let availableValuesForFields = new Map();
function buildNewSelectWithOptions(selectedField, isAnActivatedField, identifier) {
let inputFilterQueryAsSelect = '';
if (isAnActivatedField) {
inputFilterQueryAsSelect += '<select id="filterquery-selection_' + identifier + '" class="form-control pull-left" style="width: 100%"';
} else {
inputFilterQueryAsSelect = '<select id="filterquery-selection" class="form-control pull-left" style="width: 100%"';
}
inputFilterQueryAsSelect += '>';
availableValuesForFields.get(selectedField).forEach(result => inputFilterQueryAsSelect += ('<option value="' + result + '">' + result + '</option>'));
inputFilterQueryAsSelect += '</select>';
return inputFilterQueryAsSelect;
}
function handleMultivaluedOption(selectedField, fieldValue = "#filterquery", fieldValueSelector = "#filterquery-selection", joinTypeField = "#filtertype", isAnActivatedField = false, identifier) {
$(joinTypeField).prop('selectedIndex', 0);
$(fieldValueSelector).remove();
$(fieldValue).hide();
let inputFilterQueryAsSelect = buildNewSelectWithOptions(selectedField, isAnActivatedField, identifier);
$(fieldValue).after(inputFilterQueryAsSelect);
if (isAnActivatedField) {
let currentValue = $(fieldValue).val();
$(fieldValueSelector + " option[value='" + $(fieldValue).val() + "']").attr('selected', 'selected');
} else {
$(fieldValue).val($(fieldValueSelector).children("option:selected").val());
}
$(fieldValueSelector).click(function () {
$(fieldValue).val($(fieldValueSelector).children("option:selected").val())
});
}
function commonHandleDynamicFields()
{
let identifier = $(this).prop('id');
let currentIndex = identifier.split("_")[2];
let selectedField = $(this).val();
if (availableValuesForFields.get(selectedField))
{
handleMultivaluedOption($("#" + identifier).val(), "#filter_value_" + currentIndex,
"#filterquery-selection_" + currentIndex, "#filter_type_" + currentIndex, true, currentIndex);
}
else
{
$.ajax({
method: "GET",
url: "/acervo/json/discovery/controlledvalues",
data: {selectedField: selectedField}
})
.done(function (results) {
if (results) {
availableValuesForFields.set(selectedField, results);
handleMultivaluedOption($("#" + identifier).val(), "#filter_value_" + currentIndex,
"#filterquery-selection_" + currentIndex, "#filter_type_" + currentIndex, true, currentIndex);
}
else {
$("#filterquery-selection_" + currentIndex).remove();
$("#filter_value_" + currentIndex).val('');
$("#filter_value_" + currentIndex).show();
}
});
}
}
function doFilterChange() {
let selectedField = $(this).val();
if (availableValuesForFields.get(selectedField)) {
handleMultivaluedOption(selectedField, "#filterquery", "#filterquery-selection", "#filtertype");
} else {
$.ajax({
method: "GET",
url: "/acervo/json/discovery/controlledvalues",
data: {selectedField: selectedField}
})
.done(function (results) {
if (results) {
availableValuesForFields.set(selectedField, results);
handleMultivaluedOption(selectedField, "#filterquery", "#filterquery-selection", "#filtertype");
} else {
$("#filterquery-selection").remove();
$("#filterquery").val('');
$("#filterquery").show();
}
});
}
}
$(document).ready(function () {
$('.ui-autocomplete-input').autocomplete({appendTo: '#main-container'});
$('select[id^="filter_field_"]').each(function () {
commonHandleDynamicFields.call(this);
});
$('select[id^="filter_field_"]').change(function () {
commonHandleDynamicFields.call(this);
});
$("#filtername").change(function () {
doFilterChange.call(this);
});
doFilterChange.call($("#filtername"));
$("#spellCheckQuery").click(function () {
$("#query").val($(this).attr('data-spell'));
$("#main-query-submit").click();
});
$("#filterquery")
.autocomplete({
source: function (request, response) {
$.ajax({
url: "/acervo/json/discovery/autocomplete?query=",
dataType: "json",
cache: false,
data: {
auto_idx: $("#filtername").val(),
auto_query: request.term,
auto_sort: 'count',
auto_type: $("#filtertype").val(),
location: 'ARES/1315'
},
success: function (data) {
response($.map(data.autocomplete, function (item) {
var tmp_val = item.authorityKey;
if (tmp_val == null || tmp_val == '') {
tmp_val = item.displayedValue;
}
return {
label: item.displayedValue + " (" + item.count + ")",
value: tmp_val
};
}))
}
})
}
});
});
function validateFilters() {
let isValid = document.getElementById("filterquery").value.length > 0;
return isValid;
}
</script>]]>
|