The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit dfebcb83 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Bug fix: bring getStatus() in line with getHolding().

- Thanks to Wesley Custer for sharing the code.
parent ef23951e
No related merge requests found
......@@ -114,12 +114,12 @@ class Evergreen extends AbstractBase
// Build SQL Statement
$sql = <<<HERE
SELECT ccs.name AS status, acn.label AS callnumber, acpl.name AS location
SELECT ccs.name AS status, acn.label AS callnumber, aou.name AS location
FROM config.copy_status ccs
INNER JOIN asset.copy ac ON ccs.id = ac.status
INNER JOIN asset.call_number acn ON ac.call_number = acn.id
INNER JOIN asset.copy_location acpl ON ac.copy_location = acpl.id
WHERE ac.id = ?
INNER JOIN asset.copy ac ON ac.status = ccs.id
INNER JOIN asset.call_number acn ON acn.id = ac.call_number
INNER JOIN actor.org_unit aou ON aou.id = ac.circ_lib
WHERE acn.record = ?
HERE;
// Execute SQL
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment