There is a task on enabling Dublin Core, {T76224}, but it seems to fail on several Dublin Core fields. In particular it fails on `dc.date.issued` at articles from NRK.no, like [[ https://www.nrk.no/ostfold/michelet-rakk-a-fullfore-siste-bind-om-krigsseilerne-1.14008082 | Michelet rakk å fullføre siste bind om krigsseilerne ]]. Inspecting [[ https://github.com/mvolz/html-metadata/blob/master/lib/index.js#L227 | index.js#L227 ]] the problem seems to be
```
var property = nameAttr.substring(nameAttr.lastIndexOf('.') + 1).toLowerCase();
```
that is a simple assumption that the last fragment is the valid field name. This is wrong as this case shows. The last field is a subfield specifying what the field is about, in this case it is the date when the article was issued. That is //property// is set to //issued// while it should have been set to //date//.
A simple fix would be to only use the first field, not the subfield. Correct code would be to find the first index of the punctuation, and then strip off any later punctuation and following text. That wold leave the primary field, and strip the subfield.
In some cases the subfield changes the interpretation sufficiently that the primary field should be renamed, but I'm not quite sure how common this is. Fixing this would be more complex, as it requires some kind of lookup table to translate the fields.
See also {T128461}