update function for getting book pid from page pid - allow for either isPartOf or isMemberOf