fixing bug #5242
removing some code according to new PublicationDetail API about visibility period