Incorrect hrefs in _links for journalpost because of inheritance
Created by: petterreinholdtsen
The relations in _links in http://localhost:8092/noark5v4/hateoas-api/sakarkiv/journalpost/ point to http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/journalpost//something which do not exist.
An example is http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/journalpost/30db3845-3194-47eb-beab-92afea255a6b/ny-forfatter. It is generated in core-webapp/src/main/java/no/arkivlab/hioa/nikita/webapp/handlers/hateoas/BasicRecordHateoasHandler.java, and the code there assume all classes are below arkivstruktur/, causing the wrong link. The underlying cause is that journalpost is a subclass of basisregistrering and registrering, and the latter two correctly show up under arkivstruktur/.
Perhaps the journalpost _links should list the journalpost as if it was a basisregistrering for this link? In other words, link to http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/basisregistrering/30db3845-3194-47eb-beab-92afea255a6b/ny-forfatter?
An alternative is to let the link point to http://localhost:8092/noark5v4/hateoas-api/sakarkiv/journalpost/30db3845-3194-47eb-beab-92afea255a6b/ny-forfatter, and thus duplicate the entry points for ny-forfatter among sakarkiv/... and arkivstruktur/....