Page is http://library2.udayton.edu/newbooks -- Source code
SELECT *
FROM
s_v.bib_record b JOIN S_V.record_metadata r ON (b.record_id = r.id)
LEFT OUTER JOIN S_V.bib_record_call_number_prefix n ON (b.record_id=n.bib_record_id)
LEFT OUTER JOIN S_V.bib_record_property p ON (b.record_id = p.bib_record_id)
-- now link the bib, to the record(s)
LEFT OUTER JOIN S_V.bib_record_item_record_link l ON (b.record_id = l.bib_record_id)
LEFT OUTER JOIN S_V.item_record_property I ON (l.item_record_id = i.item_record_id)
FROM
s_v.bib_record b JOIN S_V.record_metadata r ON (b.record_id = r.id)
LEFT OUTER JOIN S_V.bib_record_call_number_prefix n ON (b.record_id=n.bib_record_id)
LEFT OUTER JOIN S_V.bib_record_property p ON (b.record_id = p.bib_record_id)
-- now link the bib, to the record(s)
LEFT OUTER JOIN S_V.bib_record_item_record_link l ON (b.record_id = l.bib_record_id)
LEFT OUTER JOIN S_V.item_record_property I ON (l.item_record_id = i.item_record_id)
WHERE -- limit to one call
number prefix (eg, law)
n.call_number_prefix like \'' . $call_prefix . '%\' AND
b.cataloging_date_gmt >= date(\'' . $date_from . '\') AND
b.cataloging_date_gmt < date(\'' . $date_to . '\') AND b.is_suppressed = FALSE
ORDER BYn.call_number_prefix like \'' . $call_prefix . '%\' AND
b.cataloging_date_gmt >= date(\'' . $date_from . '\') AND
b.cataloging_date_gmt < date(\'' . $date_to . '\') AND b.is_suppressed = FALSE
i.call_number_norm
No comments:
Post a Comment