<programlisting language="sql">\r
BEGIN;\r
\r
-egid, hseq, l_call_num, l_barcode, l_location, l_owning_lib, l_circ_modifier,\r
+egid, hseq, l_callnum, l_barcode, l_location, l_owning_lib, l_circ_modifier,\r
40 0 HD3616.K853 U54 1997 30731100751928 STACKS FENNELL BOOK\r
41 1 HV6548.C3 S984 1998 30731100826613 STACKS FENNELL BOOK\r
41 2 HV6548.C3 S984 1998 30731100804958 STACKS BRANTFORD BOOK\r
<programlisting language="sql">\r
CREATE TABLE staging_items (\r
l_callnum text, -- call number label\r
- hseq int, -- call number label\r
+ hseq int, \r
egid int, -- biblio.record_entry_id\r
createdate date,\r
l_location text,\r
l_barcode text,\r
l_circ_modifier text,\r
- l_owning_lib text -- actor.org_unit.shortname\r
+ l_owning_lib text -- actor.org_unit.shortname \r
);\r
</programlisting>\r
</step> \r
cn.id AS call_number\r
FROM staging_items l\r
JOIN actor.org_unit ou\r
- ON (l.owning_lib = ou.shortname)\r
+ ON (l.l_owning_lib = ou.shortname)\r
JOIN asset.copy_location cl\r
ON (ou.id = cl.owning_lib AND l.l_location = cl.name)\r
JOIN metabib.real_full_rec m \r
<para>The <option>map</option> option <filename>holdings.map</filename> refers to a file to be used for mapping subfields to the holdings data you would like extracted. Here is an example based on mapping holdings data to the 999 data field:</para>\r
<programlisting>\r
<![CDATA[\r
-call_num 999 a\r
+callnum 999 a\r
barcode 999 i\r
location 999 l\r
owning_lib 999 m\r
<programlisting language="sql">\r
BEGIN;\r
\r
-egid, hseq, l_call_num, l_barcode, l_location, l_owning_lib, l_circ_modifier,\r
+egid, hseq, l_callnum, l_barcode, l_location, l_owning_lib, l_circ_modifier,\r
40 0 HD3616.K853 U54 1997 30731100751928 STACKS FENNELL BOOK\r
41 1 HV6548.C3 S984 1998 30731100826613 STACKS FENNELL BOOK\r
41 2 HV6548.C3 S984 1998 30731100804958 STACKS BRANTFORD BOOK\r
<programlisting language="sql">\r
CREATE TABLE staging_items (\r
l_callnum text, -- call number label\r
- hseq int, -- call number label\r
+ hseq int, \r
egid int, -- biblio.record_entry_id\r
createdate date,\r
l_location text,\r
cn.id AS call_number\r
FROM staging_items l\r
JOIN actor.org_unit ou\r
- ON (l.owning_lib = ou.shortname)\r
+ ON (l.l_owning_lib = ou.shortname)\r
JOIN asset.copy_location cl\r
ON (ou.id = cl.owning_lib AND l.l_location = cl.name)\r
JOIN metabib.real_full_rec m \r