case 1683 - Refactor, so docbook stuff works fine within the existing relations display.
case 2471 - Fixed error regarding formatsAvailable not defined.