The man appeared in court after after an alleged attack involving a pool cue inside a pub in Livingston earlier this month.