3 SELECT evergreen.upgrade_deps_block_check('1261', :eg_version);
5 CREATE OR REPLACE FUNCTION evergreen.located_uris_as_uris
6 (bibid BIGINT, ouid INT, pref_lib INT DEFAULT NULL)
7 RETURNS SETOF asset.uri AS $FUNK$
8 /* Maps a bib directly to its scoped asset.uri's */
11 FROM evergreen.located_uris($1, $2, $3) located_uri
12 JOIN asset.uri_call_number_map map ON (map.call_number = located_uri.id)
13 JOIN asset.uri uri ON (uri.id = map.uri)
15 $FUNK$ LANGUAGE SQL STABLE;