You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »


IssueReported DateTemporary/Workaround SolutionExpected Permanent Solution
In the public.srs_records table, the column external_id is actually the instance_id
None neededCurrently not known
In the public.srs_marctab table, all ids are in uuid format, and this does not match the format of ids in other tables

Cast all ids from tables that connect to srs_marctab as "::uuid"

Example code when joining srs_marctab AS sm to srs_records AS sr

        LEFT JOIN srs_marctab AS sm ON sr.id::uuid = sm.srs_id 

None
In the public.srs_marctab table, the instance_id column is incorrect and should not be used. 

The srs_marctab table can be connected to the public.inventory_instances table via hrid, and the instance_id can be brought in from the inventory_instances table.

Example code:

SELECT
    ii.id AS instance_id,
    ii.title AS title,
    substring(sm."content", 7, 2) AS "format_type"
FROM 
    public.inventory_instances AS ii
LEFT JOIN srs_marctab AS sm
    ON sm.instance_hrid =ii.hrid

WHERE sm.field = '000'

Another way to get data from the srs_marctab table and insert a correct instance_id is via the srs_records table.

Example code:

SELECT
        sr.external_id AS instance_id,    
        substring (sm.content,7,2) AS format_code
FROM
        srs_records AS sr
        LEFT JOIN srs_marctab AS sm ON sr.id::uuid = sm.srs_id 
 WHERE sm.field = '000'     

  --NOTE that all ids in the srs_marctab table have been cast as uuids, so cast the OTHER table's id as ::uuid 
        

        

Currently not known
public.audit_circulation_logs did not start recording loan renewals until December 17, 2021. 

 

The circulation_loans table has a record of renewals (renewal count) starting 7/1/2021, but note that these are only for items checked out since 7/1/2021. None
public.note table does not contain any data, and will impact any queries using this table
NoneCurrently not known









  • No labels