From e8a2db79a19eaaf2242db6f507dd6feff4b5bf0d Mon Sep 17 00:00:00 2001 From: jzakotnik Date: Fri, 22 Sep 2023 19:31:07 +0200 Subject: [PATCH] updated formatting --- doc/OpenBiblioImport.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/OpenBiblioImport.md b/doc/OpenBiblioImport.md index 76a6da3..5abaaa4 100644 --- a/doc/OpenBiblioImport.md +++ b/doc/OpenBiblioImport.md @@ -19,7 +19,7 @@ podman machine start `podman-compose -f docker-compose.yaml up` - Create a database with name openbiblio in phpmyadmin running on `http://localhost:8080/` - Copy the files over the running container -`` +```bash podman cp ./input-22-09-2023/biblio.MYD mysql-server-db:/var/lib/mysql/openbiblio podman cp ./input-22-09-2023/biblio.MYI mysql-server-db:/var/lib/mysql/openbiblio podman cp ./input-22-09-2023/biblio.frm mysql-server-db:/var/lib/mysql/openbiblio @@ -84,7 +84,7 @@ podman cp ./input-22-09-2023/usmarc_subfield_dm.frm mysql-server-db:/var/lib/mys podman cp ./input-22-09-2023/usmarc_tag_dm.MYD mysql-server-db:/var/lib/mysql/openbiblio podman cp ./input-22-09-2023/usmarc_tag_dm.MYI mysql-server-db:/var/lib/mysql/openbiblio podman cp ./input-22-09-2023/usmarc_tag_dm.frm mysql-server-db:/var/lib/mysql/openbiblio -`` +``` - Export the following tables as json, sort them by date `create_dt`: `member`, `biblio_status_hist`, `biblio`, `biblio_field`, `biblio_copy`. Copy them together in `book_all.json` (this is a bit tedious). It is important to sort by date (oldest first), because the history of rentals needs to be in the correct order. *IMPORTANT* don't click on export, first do the sorted SQL query and then export the query result as json. For example, the member export has the query `SELECT * FROM member ORDER BY member.create_dt ASC`