Enable resource link selection in document metadata form.

Now it is possible to change the resource link in document metadata form.