NOJIRA prevent sql error when hierpath goes long
NOJIRA type restrict on right table
PROV-919 Restore intrinsic indexing broken by
Merge branch 'develop' of git://github.com/collectiveaccess/providence into develop