fix to publications.js to make it work properly