LP#1541559: ebook API sample MARC records for test module
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 7 Feb 2017 23:11:59 +0000 (15:11 -0800)
committerKathy Lussier <klussier@masslnc.org>
Mon, 20 Feb 2017 23:54:38 +0000 (18:54 -0500)
This commit adds a small number of MARC records to the existing sample
data.  Each record contains a scoped URI in the 856 field.  The records
are intended to be usable with the OpenILS::Application::EbookAPI::Test
module.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/tests/datasets/sql/bibs_ebook_api.sql [new file with mode: 0644]
Open-ILS/tests/datasets/sql/load_all.sql

diff --git a/Open-ILS/tests/datasets/sql/bibs_ebook_api.sql b/Open-ILS/tests/datasets/sql/bibs_ebook_api.sql
new file mode 100644 (file)
index 0000000..1a47fe6
--- /dev/null
@@ -0,0 +1,8 @@
+\set bib_tag '''IMPORT EBOOK_API'''
+
+INSERT INTO marcxml_import (tag, marc) VALUES
+(:bib_tag,'<record    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"    xmlns="http://www.loc.gov/MARC21/slim"><leader>00620nam a22      i 4500</leader><controlfield tag="005">20161210000052.0</controlfield><controlfield tag="008">070101s                o           eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">SITKA</subfield><subfield code="b">eng</subfield><subfield code="e">rda</subfield><subfield code="c">SITKA</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973,</subfield><subfield code="e">author.</subfield></datafield><datafield tag="245" ind1="1" ind2=" "><subfield code="a">The fellowship of the ring /</subfield><subfield code="c">by J.R.R. Tolkien.</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2nd ed.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="1" ind2=" "><subfield code="a">The Lord of the rings / J.R.R. Tolkien ;</subfield><subfield code="v">pt. 1</subfield></datafield><datafield tag="800" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973.</subfield><subfield code="t">Lord of the rings</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="u">http://example.com/ebookapi/t/001</subfield><subfield code="y">Click to access online</subfield><subfield code="9">CONS</subfield></datafield></record>'),
+(:bib_tag,'<record    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"    xmlns="http://www.loc.gov/MARC21/slim"><leader>00620nam a22      i 4500</leader><controlfield tag="005">20161210000052.0</controlfield><controlfield tag="008">070101s                o           eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">SITKA</subfield><subfield code="b">eng</subfield><subfield code="e">rda</subfield><subfield code="c">SITKA</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973,</subfield><subfield code="e">author.</subfield></datafield><datafield tag="245" ind1="1" ind2=" "><subfield code="a">The two towers /</subfield><subfield code="c">by J.R.R. Tolkien.</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2nd ed.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="1" ind2=" "><subfield code="a">The Lord of the rings / J.R.R. Tolkien ;</subfield><subfield code="v">pt. 2</subfield></datafield><datafield tag="800" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973.</subfield><subfield code="t">Lord of the rings</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="u">http://example.com/ebookapi/t/002</subfield><subfield code="y">Click to access online</subfield><subfield code="9">CONS</subfield></datafield></record>'),
+(:bib_tag,'<record    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"    xmlns="http://www.loc.gov/MARC21/slim"><leader>00620nam a22      i 4500</leader><controlfield tag="005">20161210000052.0</controlfield><controlfield tag="008">070101s                o           eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">SITKA</subfield><subfield code="b">eng</subfield><subfield code="e">rda</subfield><subfield code="c">SITKA</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973,</subfield><subfield code="e">author.</subfield></datafield><datafield tag="245" ind1="1" ind2=" "><subfield code="a">The return of the king /</subfield><subfield code="c">by J.R.R. Tolkien.</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2nd ed.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="1" ind2=" "><subfield code="a">The Lord of the rings / J.R.R. Tolkien ;</subfield><subfield code="v">pt. 3</subfield></datafield><datafield tag="800" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973.</subfield><subfield code="t">Lord of the rings</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="u">http://example.com/ebookapi/t/003</subfield><subfield code="y">Click to access online</subfield><subfield code="9">CONS</subfield></datafield></record>'),
+(:bib_tag,'<record    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"    xmlns="http://www.loc.gov/MARC21/slim"><leader>00620nam a22      i 4500</leader><controlfield tag="005">20161210000052.0</controlfield><controlfield tag="008">070101s                o           eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">SITKA</subfield><subfield code="b">eng</subfield><subfield code="e">rda</subfield><subfield code="c">SITKA</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Tolkien, J. R. R.</subfield><subfield code="q">(John Ronald Reuel),</subfield><subfield code="d">1892-1973,</subfield><subfield code="e">author.</subfield></datafield><datafield tag="245" ind1="1" ind2=" "><subfield code="a">The hobbit, or, There and back again /</subfield><subfield code="c">by J.R.R. Tolkien.</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">New ed.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="u">http://example.com/ebookapi/t/004</subfield><subfield code="y">Click to access online</subfield><subfield code="9">CONS</subfield></datafield></record>')
+;
index 1d4914e..54d4e55 100644 (file)
@@ -30,6 +30,9 @@ BEGIN;
 -- load RDA bibs
 \i bibs_rda.sql
 
+-- load EbookAPI bibs
+\i bibs_ebook_api.sql
+
 -- insert all loaded bibs into the biblio.record_entry in insert order
 INSERT INTO biblio.record_entry (marc, last_xact_id) 
     SELECT marc, tag FROM marcxml_import ORDER BY id;