Notice de collectivité
- Notice
"
+ "> Accéder à mes références"
+ "");
// $('#modalAjoutAMesNotices').modal('show');
}
});
}
/** Ref #22306: lien local, on passe en https **/
/** Script des actions dans l'affichage des notices (bib+auto) pour les jsp noticeAut.jsp et noticeBib.jsp pour éviter la duplication du code**/
function versPage(pageNotice) {
var indexNotice = pageNotice - 1;
var hostLocal = "https://" + location.host;
location.replace(hostLocal+"/consultationSelection.do?indexSelectNotice="+indexNotice);
}
/* Raffichage de la page dans le nouveau format sélectionné */
function changeFormat() {
jQuery('.onglets .skin-select select').change(function() {
var hostLocal = "https://" + location.host;
location.replace(hostLocal+"/change-format-notice.do?arkQualifier="+jQuery(this).val()+"&urlArk="+jQuery('#permalien').val());
});
}
/* Pour séléctionner et voir la liste des notices */
function selectNotice(aut) {
jQuery('.liste-notices input[type="checkbox"]').bind('change', function () {
var list = [];
var lien = {};
/* lien.id = jQuery(this).parent().prev().text(); */
if(aut == true)
{
lien.id = jQuery(this).parent().prev().text();
}
else
{
lien.id = jQuery(this).attr('id');
}
/* if(aut==true)
{
lien.ark = jQuery(this).next().find('input').val();
//lien.type = jQuery(this).parent().parent().find(".notice-type").first().text();
lien.type = " ";
if (jQuery(this).parent().parent().parent().next().find('span').hasClass("liste-noticesAUTbold")) {
alert('ok');
lien.type = jQuery(this).parent().parent().parent.next().find('span.liste-noticesAUTbold').text();
} else if (jQuery(this).parent().parent().next().next().next().hasClass("notice-type")) {
lien.type = jQuery(this).parent().parent().next().next().next().first().text();
}
}
else
{ */
/* alert(lien.id); */
lien.ark = jQuery(this).next().val();
//lien.type = jQuery(this).parent().parent().find(".notice-type").first().text();
lien.type = " ";
if (jQuery(this).parent().parent().next().next().hasClass("notice-type")) {
lien.type = jQuery(this).parent().parent().next().next().first().text();
} else if (jQuery(this).parent().parent().next().next().next().hasClass("notice-type")) {
lien.type = jQuery(this).parent().parent().next().next().next().first().text();
}
/* } */
list.push(lien);
if (jQuery(this).is(':checked')) {
jQuery.ajax({
url: "/selectionNotice.do;jsessionid=2B814FC99F8A1A7B077CEEEE4CF38553",
/* RAMI O. encodeUTRI nécessaire en DEV à priori non obligatoire en PFC : sinon quand on désélectionne toutes les notices compteur reste à 10 ! */
data: "listeNotice="+encodeURI(JSON.stringify(list)),
dataType: "json",
success: function (data) {
jQuery('#nbSelectNotice, #nbSelectNoticeOutils').html(data);
}
});
} else {
jQuery.ajax({
url: "/selectionNotice.do;jsessionid=2B814FC99F8A1A7B077CEEEE4CF38553",
data: "listeNoticeSup="+encodeURI(JSON.stringify(list)),
dataType: "json",
success: function (data) {
jQuery('#nbSelectNotice, #nbSelectNoticeOutils').html(data);
jQuery('#cbSel').prop('checked', false);
/* jQuery('#cbSel').prop('title', ttSelect); */
}
});
}
});
jQuery('.selection input[type="checkbox"]').bind('click',function() {
var list = [];
var ttSelect = jQuery('#ttSelect').val();
var ttDeselect = jQuery('#ttDeselect').val();
if (jQuery(this).is(':checked')) {
var i = 0;
jQuery('.liste-notices input[type="checkbox"]').each(function(){
var lien = {};
/* lien.id = jQuery(this).parent().prev().text(); */
if(aut == true)
{
lien.id = jQuery(this).parent().prev().text();
}
else
{
lien.id = jQuery(this).attr('id');
}
lien.ark = jQuery(this).next().val();
lien.type = "";
if (jQuery(this).parent().parent().next().next().hasClass("notice-type")) {
lien.type = jQuery(this).parent().parent().next().next().first().text();
} else if (jQuery(this).parent().parent().next().next().next().hasClass("notice-type")) {
lien.type = jQuery(this).parent().parent().next().next().next().first().text();
}
list.push(lien);
jQuery(this).prop('checked',true);
//i = i + 1 ;
});
var call1 = jQuery.ajax({
type:'POST',
url: "/selectionNotice.do;jsessionid=2B814FC99F8A1A7B077CEEEE4CF38553",
data:{
listeNotice:JSON.stringify(list)
},
success: function(data) {
jQuery('#nbSelectNotice, #nbSelectNoticeOutils').html(data);
jQuery('#cbSel').prop('title', ttDeselect);
}
});
}
else {
jQuery('.liste-notices input[type="checkbox"]').each(function(){
var lien = {};
/* lien.id = jQuery(this).parent().prev().text(); */
if(aut == true)
{
lien.id = jQuery(this).parent().prev().text();
}
else
{
lien.id = jQuery(this).attr('id');
}
lien.ark = "";
list.push(lien);
jQuery(this).prop('checked',false);
});
jQuery.ajax({
url: "/selectionNotice.do;jsessionid=2B814FC99F8A1A7B077CEEEE4CF38553",
data: "listeNoticeSup="+ encodeURI(JSON.stringify(list)),
dataType: "json",
success: function(data) {
jQuery('#nbSelectNotice, #nbSelectNoticeOutils').html(data);
jQuery('#cbSel').prop('title', ttSelect);
}
});
}
});
jQuery(document).ready(function() {
jQuery.ajax({
url: "/cocheNotice.do;jsessionid=2B814FC99F8A1A7B077CEEEE4CF38553",
contentType: "application/json",
dataType: "json",
success: function(responseJson) {
if(responseJson != null)
{
jQuery.each(responseJson, function(key, value) {
var identifiant;
identifiant = value.substr(value.length - 11)
/* Demande : 10269 identifiant : identifiant de la notice sous le format cbXXXXXXXXX */
jQuery('#'+identifiant).prev().prop('checked', true);
});
var nbrNoticeCheked = 0;
// Pour cocher le checkbox voir la sélection
jQuery('.liste-notices input[type="checkbox"]').each(function(){
if (jQuery(this).is(':checked')) {
nbrNoticeCheked++;
}
if (nbrNoticeCheked == jQuery('#nbResultParPage').val()) {
jQuery('.selection input[type="checkbox"]').prop('checked', true);
}
});
}
},
fail: function(response) {
alert("fail");
}
});
});
}
// radio6 -> Public
// radio7 -> Itermarc
// radio8 -> Unirmarc
// radio9 -> ISBD
// Ne concerne que les listes de notices
function initPopupImp() {
//Fonction pour réinitialiser la popin
jQuery("a#telechImprimPdf").click(function(e){
if ($('#pageRechNotice').val() != 'rat') {
// notices complètes BIB
$('#radio22').prop('checked', true);
} else {
$('#radio11').prop('checked', true);
}
jQuery("#radio6").prop('checked', true);
/* TLA #40186 28/02/20 - Remarque num 6 LAB / 28/05/21 #51415 Mauvaise correction */
jQuery('#radio7').prop('disabled', false);
jQuery('#radio8').prop('disabled', false);
/* Rajouté aussi le 28/05/21 - ISBD */
jQuery('#radio9').prop('disabled', false);
});
}
// Ne concerne que les listes de notices
function initPopupMail() {
//Fonction pour réinitialiser la popin
jQuery("a#EnvoiParMail").click(function(e){
if ($('#pageRechNotice').val() != 'rat') {
// notices abrégées BIB
$('.popinMail #radio21').prop('checked', true);
} else {
$('.popinMail #radio11').prop('checked', true);
}
jQuery(".popinMail #radio6").prop('checked', true);
/* TLA #40186 28/02/20 - Remarque num 6 LAB / 28/05/21 #51415 Mauvaise correction */
jQuery('.popinMail #radio7').prop('disabled', true);
jQuery('.popinMail #radio8').prop('disabled', true);
/* Rajouté aussi le 28/05/21 - ISBD */
jQuery('.popinMail #radio9').prop('disabled', true);
});
}
Notice de collectivité
Notices bibliographiques liées
Voir les notices liées en tant que :
Voir toutes les notices liées (1)