get document years (used for protocol viewing)