Skip to content
Snippets Groups Projects
Commit b731b20d authored by Wdcus's avatar Wdcus Committed by Robert Lange
Browse files

Update Evergreen.php getStatus() and getHoldings() to exclude deleted items (#1728)


Co-authored-by: default avatarWes <wesley.custer@gmail.com>
parent 77de4607
No related merge requests found
...@@ -119,7 +119,9 @@ FROM config.copy_status ccs ...@@ -119,7 +119,9 @@ FROM config.copy_status ccs
INNER JOIN asset.copy ac ON ac.status = ccs.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 asset.call_number acn ON acn.id = ac.call_number
INNER JOIN actor.org_unit aou ON aou.id = ac.circ_lib INNER JOIN actor.org_unit aou ON aou.id = ac.circ_lib
WHERE acn.record = ? WHERE
acn.record = ? AND
NOT ac.deleted
HERE; HERE;
// Execute SQL // Execute SQL
...@@ -218,7 +220,9 @@ FROM config.copy_status ccs ...@@ -218,7 +220,9 @@ FROM config.copy_status ccs
FULL JOIN action.circulation circ ON ( FULL JOIN action.circulation circ ON (
ac.id = circ.target_copy AND circ.checkin_time IS NULL ac.id = circ.target_copy AND circ.checkin_time IS NULL
) )
WHERE acn.record = ? WHERE
acn.record = ? AND
NOT ac.deleted
HERE; HERE;
// Execute SQL // 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