assets/js/academia.js
// Filter publications according to hash in URL.
Filter publications according to hash in URL.
Filter publications according to hash in URL .
function filter_publications() {
    let urlHash = window.location.hash.replace('#', '');
    let filterValue = '*';
    if (urlHash != '' && !isNaN(urlHash)) {
      filterValue = '.pubtype-' + urlHash;
    }
    let filterGroup = 'pubtype';
    pubFilters[filterGroup] = filterValue;
    filterValues = concatValues(pubFilters);
    $grid_pubs.isotope();
    $('.pubtype-select').val(filterValue);
  }
function filter_publications ( ) { let urlHash = window . location . hash . replace ( '#' , '' ) ; let filterValue = '*' ; if ( urlHash != '' && ! isNaN ( urlHash ) ) { filterValue = '.pubtype-' + urlHash ; } let filterGroup = 'pubtype' ; pubFilters [ filterGroup ] = filterValue ; filterValues = concatValues ( pubFilters ) ; $grid_pubs . isotope ( ) ; $ ( '.pubtype-select' ) . val ( filterValue ) ; }
Filter publications according to hash in URL.
Filter publications according to hash in URL .
// Check if hash is numeric. // Set filter. // Activate filters. // Set selected option.