Bugzilla – Attachment 124101 Details for
Bug 26223
The OPAC ISBD view does not display item information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26223: include item information in OPAC ISBD view
Bug-26223-include-item-information-in-OPAC-ISBD-vi.patch (text/plain), 2.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-08-26 12:12:16 UTC
(
hide
)
Description:
Bug 26223: include item information in OPAC ISBD view
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-08-26 12:12:16 UTC
Size:
2.49 KB
patch
obsolete
>From c6e1f80cb1046112eba674df399a2a2b188e7a6d Mon Sep 17 00:00:00 2001 >From: Andreas Roussos <a.roussos@dataly.gr> >Date: Mon, 17 Aug 2020 10:57:03 +0200 >Subject: [PATCH] Bug 26223: include item information in OPAC ISBD view > >The ISBD view in the OPAC interface does not display item information. > >This patch fixes that. > >Test plan: >0) Have a biblio with at least one item attached to it and include one > of the following snippets in the OPACISBD system preference, > depending on your MARC flavour: > > MARC21: > #952|<br/><h2>Items</h2><table><th>Copy number</th><th>Shelving > location</th><th>Koha item type</th><th>Barcode</th><th>Call number > (Full call number)</th><th>Materials specified (bound volume or > other part)</th>|<tr><td>{952t} </td><td> {952c} </td><td> {952y} > </td><td> {952p} </td><td> {952o} </td><td> {9523}</td></tr>|</table> > > UNIMARC: > #995|<br/><h2>Items</h2><table><th>Copy number</th><th>Shelving > location</th><th>Koha collection</th><th>Barcode</th><th>Call number > (Full call number)</th><th>Numbering (volume or other part)</th>| > <tr><td>{9956} </td><td> {995e} </td><td> {995h} </td><td> {995f} > </td><td> {995k} </td><td> {995l}</td></tr>|</table> > > Switch to the OPAC ISBD view for your biblio; notice how it does > not display item information. >1) Apply the patch, and restart Plack/memcached if necessary. >2) Refresh the OPAC ISBD view page, this time you should see item > information as per the OPACISBD system preference setting. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > opac/opac-ISBDdetail.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl >index 567caf4118b..f43475ddfed 100755 >--- a/opac/opac-ISBDdetail.pl >+++ b/opac/opac-ISBDdetail.pl >@@ -99,13 +99,15 @@ unless ( $patron and $patron->category->override_hidden_items ) { > } > > my $record = $biblio->metadata->record; >+my @items = grep { !$_->hidden_in_opac({ rules => $opachiddenitems_rules }) } @{$biblio->items->as_list} ; > my $marcflavour = C4::Context->preference("marcflavour"); > > my $record_processor = Koha::RecordProcessor->new({ >- filters => 'ViewPolicy', >+ filters => [ 'ViewPolicy', 'EmbedItems' ], > options => { > interface => 'opac', >- frameworkcode => $biblio->frameworkcode >+ frameworkcode => $biblio->frameworkcode, >+ items => \@items > } > }); > $record_processor->process($record); >-- >2.33.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26223
:
108381
|
108533
|
108534
|
124099
| 124101 |
124102
|
124103