hbz / lobid-resources

Transformation, web frontend, and API for the hbz catalog as LOD
http://lobid.org/resources
Eclipse Public License 2.0
7 stars 7 forks source link

ISBN for parallel manifestations not included #1039

Closed hagbeck closed 4 years ago

hagbeck commented 4 years ago

Is it possible to include the ISBNs for parallel manifestations (e-book if print and vice versa)?

Example: For https://lobid.org/resources/HT020114939 (e-book) the MAB record contains the ISBN for the printed version in field 776.

acka47 commented 4 years ago

Thanks for the request, Hans-Georg. I am not sure we will be able to approach this before January but maybe we will find some time in December.

Here is the content of 776:

<datafield tag="776" ind1="-" ind2="1">
  <subfield code="i">Printed edition</subfield>
  <subfield code="z">9783662581711</subfield>
</datafield>
acka47 commented 4 years ago

I suggest to add it as a bnode in the similar array with content from subfield i as note:

{
    "similar":[
        {
            "id":"http://dx.doi.org/10.1007/978-3-662-58172-8",
            "label":"978-3-662-58172-8"
        },
        {
            "isbn": [ "9783662581711" ],
            "note":"Printed edition"
        }
    ]
}

Like this you will be able to search all parallel ISBNs using similar.isbn and we won't have to add any custom property.

acka47 commented 4 years ago

Reviewing this on production, I noticed that the ISBNs are not normalized as we usually do, this means sometime the might contain hyphens or spaces in similar.isbn. For example https://lobid.org/resources/HT019474284.json:

{
   "similar":[
      {
         "note":"Erscheint auch als",
         "isbn":[
            "978-3-319-32415-9"
         ]
      }
   ]
}

I guess, we should also normalize them in this field, shouldn't we?

acka47 commented 4 years ago

I guess, we should also normalize them in this field

However, it is ok to merge this now and do the normalization in the next step.

dr0i commented 4 years ago

Normalized similar.isbn.Review whole data from Wednesday on.

acka47 commented 4 years ago

+1

dr0i commented 4 years ago

Deployed to production, see e.g. https://lobid.org/resources/HT019474284.json. Closing