Display holdings with no barcode #2548
Replies: 2 comments 5 replies
-
@damien-git, this assumption has been built into the software almost from day one (the decision probably pre-dates me). I would have to guess that the thought was, if there is no barcode, there is no other data either -- but of course that assumption is not really true for all systems or all situations. I'm certainly not opposed to making this configurable... just a question of where/how. A couple of thoughts that might help shape a decision: 1.) It might be a good idea to build a method somewhere that determines whether or not a given holding row should be displayed. This method could then be the place where we apply configurations, but it could also serve as an extension point if somebody has really specialized logic they would like to implement by extending a class. The two most obvious possible homes for this logic would be a view helper (maybe a new "holdings" helper that might be able to serve other purposes in the future) or the existing HoldingsILS RecordTab class (which would require less work to set up, but would result in the code being less easily shareable in other contexts). 2.) It appears to me that the status-full.phtml template used for displaying detailed holdings in search results does NOT apply this same barcode logic (unless the filtering is happening in the controller code; I confess I didn't do a deep dive or close inspection). It seems to me that we would want these things to behave consistently... and that would probably be a strong argument toward the "view helper" approach, since it could be applied to this template as well as the various holdings tab templates. What do you think? I should also note that GitHub discussions is a relatively new feature, and I'm not sure how many people are paying attention to it. If you want more input, I'm happy to share a link to this on the listservs, etc. |
Beta Was this translation helpful? Give feedback.
-
@demiankatz Thanks for providing that PR, this was beyond what I could have done given my current understanding of Vufind. |
Beta Was this translation helpful? Give feedback.
-
We need to display FOLIO items with no barcode, but for some reason they are hidden in Vufind, and this is hard-coded. We can of course edit that template, but I was wondering why Vufind is hiding these items. Patrons might want to see if for instance an item is on order, or if one is available but only at the library (and hence doesn't need a barcode).
If there is a reason to hide them in some cases, I guess another config property could be useful (I know, there are lots of them already)...
Beta Was this translation helpful? Give feedback.
All reactions