Man in court accused of bookshop terror plot