PageSourceSearch

https://www.cerege.fr/wp-content/plugins/pymac-hal/assets/js/halpublication.js?ver=1

js cerege.fr collected 2026-10-02 05:28:44 UTC 1,485 bytes, 39 lines download raw bytes

1var fieldHal = ['title_s','citationFull_s','halId_s', 'producedDate_tdate', 'doiId_s', 'uri_s', 'openAccess_bool', 'linkExtUrl_s'];
2jQuery(document).ready(function($) {
3    // Initialiser les deux containers au chargement
4    let containers = $('.hal-publications-container, .hal-publications-container-two');
5    containers.each(function(){
6        initiateContainer($(this));
7    });
8    
9    // Masquer le container-two au démarrage, garder seulement le premier actif
10    $('.hal-publications-container-two').removeClass('active');
11    $('.hal-publications-container').addClass('active');
12    
13    // Gestion des boutons + clics
14    $('.pymac-hal-btn').click(function (e) { 
15        e.preventDefault();
16        let target = $(this).attr('data-target');
17        
18        $('.pymac-hal-btn').removeClass('active');
19        $(this).addClass('active');
20        
21        $('.hal-publications-container, .hal-publications-container-two').removeClass('active');
22        $(target).addClass('active');
23    });
24
25});
26
27function initiateContainer(container){
28    let $ = jQuery;
29    let containerObject = new Container(container, fieldHal);
30    if(container.attr('data-enable-research')=="true"){
31        container.append(containerObject.getResearchContainer());
32        containerObject.initiateResearchContainer();
33    }
34    container.append(containerObject.getDateContainer());
35    containerObject.initiateDateContainer();
36
37    container.append(containerObject.getPublicationContainer());
38}
39

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.