getPrimaryId added to Doc.

Creates an identifier from identifiers and record identifiers. If a purl exist, this will be used, otherwise the gbv-ppn will be used, else the ppn.