Bug 33618 - Borrowernumbers, Itemnumbers, and Biblionumbers should be readily available
Summary: Borrowernumbers, Itemnumbers, and Biblionumbers should be readily available
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 15:46 UTC by Christopher Brannon
Modified: 2023-04-26 15:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Brannon 2023-04-26 15:46:53 UTC
It would be helpful, for those of us working with jQuery, if Borrowernumbers, Itemnumbers, or Biblionumbers were referenced in an attribute wherever these things appear in pages.  

For example, when doing a search, many bib records appear on search.pl, and with those bib records, many items appear off to the side.  The bib records DO have the biblionumber in the url, but we have to work a little harder to get that number from the url.  It would be easier if it were referenced in an attribute.

However, none of the items referenced in the results have an itemnumber anywhere in the result.  The link associated with the item is basically a call number search.  It would be very helpful to have an attribute with the itemnumber there.

It would be great if any time we were reference a patron, a bib record, or an item, if we could wrap them in a common wrapper, like a span or div, and have a consistent record identifier.  This way, if we need to do an API call to grab more info, we have the one thing that would make that so much easier.  Maybe something like:

<div class="PatronElement" RecordID="BORROWERNUMBER HERE">PATRON STUFF</div>

<div class="BiblioElement" RecordID="BIBLIONUMBER HERE">BIB RECORD STUFF</div>

<div class="ItemElement" RecordID="ITEMNUMBER HERE">ITEM RECORD STUFF</div>

This would be a nice, consistent normalized format that would make life so much easier, in my opinion.