]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/tests/datasets/sql/load_concerto.sql
Test dataset: authority records for concerto
[working/Evergreen.git] / Open-ILS / tests / datasets / sql / load_concerto.sql
1 BEGIN;
2
3 -- stop on error
4 \set ON_ERROR_STOP on
5
6 -- build functions, tables
7 \i env_create.sql
8
9 -- load concerto authorities
10 \i auth_concerto.sql
11
12 -- load concerto bibs
13 \i bibs_concerto.sql
14
15 -- insert all loaded bibs into the biblio.record_entry
16 INSERT INTO biblio.record_entry (marc, last_xact_id) 
17     SELECT marc, tag FROM marcxml_import ORDER BY id;
18
19 -- load concerto copies, etc.
20 \i assets_concerto.sql
21
22 -- clean up the env
23 \i env_destroy.sql
24
25 COMMIT;