--- /dev/null
+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 ;