wrote template filter to determine if reference is book