Comment 15 for bug 1731042

Revision history for this message
Mike Rylander (mrylander) wrote :

Hi Terran and Jessica,

I haven't analyzed all the code, but I gave it a scan and noticed one API-use issue.

When the code goes to select just the tcn value for the bib in the get_tcn() function it's using the flesh and flesh_fields clauses, but those are for pulling in subordinate/linked objects. You'll want to use the select clause, (minimally) documented here:
  https://wiki.evergreen-ils.org/doku.php?id=backend-devel:open-ils_cstore_api&s[]=select

That's cstore documentation, but pcrud works the same way, so you can replace the {flesh: ... } part with {select: { bre: ['id','tcn_value'] } } to avoid fetching stuff you don't need, like the marcxml.