From d128e71b81a2b08a011bdec3bce6d587a5823c31 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Sun, 1 Oct 2023 19:01:12 +0200 Subject: [PATCH] Fix markup syntax for code block titles --- .../_posts/2023-10-01-import-lc-records-into-pmb.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_source/_posts/2023-10-01-import-lc-records-into-pmb.markdown b/_source/_posts/2023-10-01-import-lc-records-into-pmb.markdown index be7867d..f7f3eaa 100644 --- a/_source/_posts/2023-10-01-import-lc-records-into-pmb.markdown +++ b/_source/_posts/2023-10-01-import-lc-records-into-pmb.markdown @@ -10,7 +10,7 @@ Wanted to import the [Library of Congress record](https://lccn.loc.gov/83020232) It failed with an obscure message (*notices invalides*). Looking at the code, this could be caused by a missing title statement (UNIMARC tag `$200a`). And indeed upon inspection the title is in MARC zone `$245`: -``` MARC21 record +```marc 00953cam a2200253 a 4500 001 4715262 005 20140505111109.0 @@ -32,13 +32,14 @@ And indeed upon inspection the title is in MARC zone `$245`: 991 $b c-GenColl $h PE1625 $i .W34 1984b $t Copy 1 $w BOOKS 991 $b c-GenColl $h PE1625 $i .W34 1984b $p 00017698631 $t Copy 2 $w CCF ``` +{:title="MARC21 record"} Turns out that the LoC notice is in MARC21 format, whereas PMB expects UNIMARC. So I used [MarcEdit](https://marcedit.reeset.net/) to convert MARC21 to UNIMARC and was able to import. Conversion process: `Tools > UNIMARC Tools > MARC21=>UNIMARC` -``` UNIMARC record +```marc 00812 22a22002415 450 001 4715262 005 20140505111109.0 @@ -59,3 +60,4 @@ Conversion process: `Tools > UNIMARC Tools > MARC21=>UNIMARC` 721 $a Guralnik, David B. $f 1920-2000. 802 $a zz ``` +{:title="UNIMARC record"}