Updated preprocess function, so fulltext link is only inserted when no online url exists