add conditional to handle publication extraction with or without www url prefix