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.
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: /wiki.evergreen -ils.org/ doku.php? id=backend- devel:open- ils_cstore_ api&s[] =select
https:/
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.