hbz / lobid-resources

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

Enable easy inspection of MARC for an Alma record #1316

Closed acka47 closed 1 year ago

acka47 commented 3 years ago

Going forward with improving lobid-alma and setting up Alma-based NWBib, we will have the recurring need to inspect Alma MARC records based on an entry in alma.lobid.-org/resources. There are two options to implement this:

  1. Add a simple HTML view for each entry (e.g. at https://alma.lobid.org/resources/99370878737906441) that links to the MARC an the JSON for comparison.
  2. Add a way to add a format extenstion like .mrc to a URL to get the MARC record, e.g. https://alma.lobid.org/resources/99370878737906441.mrc, similar to https://alma.lobid.org/resources/99370878737906441.json which is already working.

Related to https://github.com/hbz/lobid-resources/issues/1741.

TobiasNx commented 3 years ago

Wasn*t there a problem, that the MARC data is not open yet?

dr0i commented 3 years ago

Right - we are waiting on an official decision by the Verbundgruppe to expose the full data. @acka47 noticed that the underlying MAB data was already released as CC0. However, we could use the internal API to get the MARC data and expose it publicly via our API as single pages. @blackwinter do you have the link to the wiki-page where we noted the task of questioning Verbundgruppe? How shall we proceed further?

blackwinter commented 3 years ago

do you have the link to the wiki-page where we noted the task of questioning Verbundgruppe?

You mean NZ-Publishing - Fragen an Verbundgruppe?

How shall we proceed further?

I have no idea, sorry.

dr0i commented 3 years ago

Thx @blackwinter ! Maybe @acka47 can solve ask the question at Verbundgruppe with you in CC so we can open the data if they give their ok.

acka47 commented 2 years ago

AFAIK, @trugwaldsaenger is checking the legal status of the Alma-based data. @trugwaldsaenger, please let us know as soon as you know more.

dr0i commented 1 year ago

Verbundgruppe decided that any local (IZ) field is considered to not be open data. We have filtered these out thus everything in lobid-resources is Open Data again.

Re this issue: we've already enabled viewing the MARC-XML source, but a little bit hidden - hover the mouse pointer a bit left of the RDF symbol (e.g. https://lobid.org/resources/99370878737906441). An <M> symbol appears which is linked to the MARC-XML , e.g. https://alma.lobid.org/marcxml/99370878737906441.

So:

  1. we should "unhide" the MARC-XML download link
  2. we might consider to provide easier usage by suffixing .mrc to the resource
acka47 commented 1 year ago
  1. we should "unhide" the MARC-XML download link
  2. we might consider to provide easier usage by suffixing .mrc to the resource

+1 for both

dr0i commented 1 year ago

functional review: @acka47 code review: @fsteeg

dr0i commented 1 year ago

@acka47 you can test using "stage", e.g. http://stage.lobid.org/resources/99370672908406441

acka47 commented 1 year ago

The link is now unhidden but .mrc does not work for me: http://stage.lobid.org/resources/99370672908406441.mrc

dr0i commented 1 year ago
  1. Add a way to add a format extenstion like .mrc to a URL to get the MARC record,

No, file extension for MARC-XML ist mrcx, see https://www.wikidata.org/wiki/Q28770433. So try e.g.: http://stage.lobid.org/resources/99370672908406441.mrcx

acka47 commented 1 year ago

Yes.mrcx works. Thanks! +1

dr0i commented 1 year ago

Deployed - closing.