items/ocjenski/01-ocjenski.sql
authorMarijana Glavica <mglavica@ffzg.hr>
Tue, 3 Dec 2013 15:21:29 +0000 (16:21 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 28 Oct 2023 09:45:21 +0000 (11:45 +0200)
items/ocjenski/01-ocjenski.sql [new file with mode: 0644]

diff --git a/items/ocjenski/01-ocjenski.sql b/items/ocjenski/01-ocjenski.sql
new file mode 100644 (file)
index 0000000..a847ac1
--- /dev/null
@@ -0,0 +1,18 @@
+select items.biblionumber,
+       itemnumber, 
+       itemcallnumber as signatura, 
+       location as lokacija, 
+       ccode as zbirka, 
+       itemtype as vrsta_gradje_biblio, 
+       itype as vrsta_gradje_primjerak, 
+       frameworkcode, 
+       notforloan, 
+       onloan, 
+       damaged, 
+       itemlost, 
+       withdrawn 
+from items 
+join biblioitems on items.biblionumber=biblioitems.biblionumber 
+join biblio on biblio.biblionumber=items.biblionumber 
+where frameworkcode = 'OCJ' or itype = 'OCJ' or itype = 'MAG' or itype = 'DIS' or itype = 'SPE' or itemtype = 'OCJ' or itemtype = 'DIS' or itemtype = 'SPE' or itemtype = 'MAG' 
+order by ccode, itemtype, itemcallnumber ;