Bug 35497 - Add a view of related import records to the details page
Summary: Add a view of related import records to the details page
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-05 19:11 UTC by Nick Clemens (kidclamp)
Modified: 2023-12-05 22:55 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 35497: WIP (6.23 KB, patch)
2023-12-05 19:13 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2023-12-05 19:11:22 UTC
Sometimes one is viewing a record in the staff interface, and would like to see when it was imported/overlaid - it would be nice to add a tab to view this information.
Comment 1 Nick Clemens (kidclamp) 2023-12-05 19:13:46 UTC
Created attachment 159606 [details] [review]
Bug 35497: WIP

This patch adds a new tab to the record details page called 'Imported records'

This tab contains a table linking to the import batches for any imports or overlays of this biblio

Some questions:
1 - Do we need a syspref for this? Or should it just be included?
2 - What info is useful? date/time of import? Import settings? A diff view?
3 - Other thoughts?
Comment 2 Kelly McElligott 2023-12-05 19:34:52 UTC
If not a syspref, a permission ?! Or both!

I love this, import date/time, import file (batch id), and a diff view would be great!
Comment 3 David Cook 2023-12-05 22:55:49 UTC
It's an interesting idea. 

The import_* tables are not necessarily permanent, but it looks like cleanup_database.pl doesn't clean them up in the out of the box crontab, so most libraries probably do persist that data...

Rather than having it on the detail page, it might make more sense to add it on the sidebar with a label like "Import history". That way, it doesn't actually affect the detail.pl page at all, and people can opt-in to that information. As a result, I don't think we'd need a syspref for it. 

If people don't want it, they just don't click on it, and then nothing is different. And for people who do want it, they can just choose it from that list of sidebar items which is fairly short at the moment. 

Just my 2 cents :)