Fix so scoping of records is correct in search results
- was just checking if scoping was enabled, but not if scoping was on
Fix determination of local items to include everything owned by the library