Skip to content

Instantly share code, notes, and snippets.

@stompro
Created November 8, 2016 22:16
Show Gist options
  • Save stompro/8e08647dd1d25793e69e0edfd5015718 to your computer and use it in GitHub Desktop.
Save stompro/8e08647dd1d25793e69e0edfd5015718 to your computer and use it in GitHub Desktop.
Boopsie Data Extract
--- Boopsie Extract
--List of opac visible records
select aovc.record
from asset.opac_visible_copies aovc
where aovc.record > 0
group by 1
order by 1
;
\copy select aovc.record from asset.opac_visible_copies aovc where aovc.record > 0 group by 1 order by 1 to full_bib_id_list.txt
;
-- Output ID's to a file.
export LANG=C #for speed
sort input1.txt input2.txt input2.txt | uniq -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment