Maps OpenLibrary MARC publish_country to ReleaseCountry

Adds publish_country to the Open Library edition response, translates MARC 21 country codes into the ReleaseCountry enumeration through a private table, and drops the city based publish_places mapping.

Closes #222
This commit is contained in:
BinaryAlley committed 2026-11-08 10:00:00 +02:00
1 parent 3350f19c1d
commit c6469e70cf
7 files changed
+365 -27

No files matched your search

@@ -37,7 +37,7 @@ internal sealed class OpenLibraryHttpClient
private const string SEARCH_FIELDS =
"key,title,author_name,author_key,first_publish_year,edition_key,isbn," +
"language,publisher,subject,publish_place,number_of_pages_median," +
"language,publisher,subject,number_of_pages_median," +
"ratings_average,ratings_count,id_amazon,id_goodreads,id_google," +
"id_librarything,lccn,oclc";