[Bug 12336] New: Author of reserved book is not displayed in opac-user.pl
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Bug ID: 12336 Summary: Author of reserved book is not displayed in opac-user.pl Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: viktor.sarge@regionhalland.se QA Contact: testopia@bugs.koha-community.org When viewing reserved books in the opac in opac-user.pl only title is displayed and no author. This is odd since opac-user.tt actually tries to output [% RESERVE.author %]. The fix seems to be to add $res->{'author'} = $biblioData->{'author'}; at the appropriate place in opac-user.pl so that the template file actually has a value to output in [% RESERVE.author %] Extra cred to cait for helping me out and stripping down my solution to 50% of the code for a total of adding 1 line in 1 file :) If I can wrap my head around git-bz I'll send a patch for this. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 --- Comment #1 from Viktor Sarge <viktor.sarge@regionhalland.se> --- Created attachment 28594 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28594&action=edit Fix for author of reserved book not displaying in Opac 12336 This patch adds a line in opac-user.pl passing author info to opac-user.tt Thanks to cait for helping me out and showing me how to solve this with half the amount of code. Test plan: * Reserve a book. * Go to the opac and log in as the patron you reserved the book for. * Apply the patch with change to opac-user.pl * Revisit the opac and refresh it. * See if author now shows up -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Viktor Sarge <viktor.sarge@regionhalland.se> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #28594|0 |1 is obsolete| | --- Comment #2 from Magnus Enger <magnus@enger.priv.no> --- Created attachment 28622 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28622&action=edit Bug 12336 - [SIGNED-OFF] Author of reserved book is not displayed in opac-user.pl This patch adds a line in opac-user.pl passing author info to opac-user.tt Thanks to cait for helping me out and showing me how to solve this with half the amount of code. Test plan: * Reserve a book. * Go to the opac and log in as the patron you reserved the book for. * Apply the patch with change to opac-user.pl * Revisit the opac and refresh it. * See if author now shows up Signed-off-by: Magnus Enger <digitalutvikling@gmail.com> Created a hold. Author is not shown n the public catalogue before applying the patch, but it does show after applying the patch. Way to go, Viktor! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #28622|0 |1 is obsolete| | --- Comment #3 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 28632 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28632&action=edit Bug 12336 - [SIGNED-OFF] Author of reserved book is not displayed in opac-user.pl This patch adds a line in opac-user.pl passing author info to opac-user.tt Thanks to cait for helping me out and showing me how to solve this with half the amount of code. Test plan: * Reserve a book. * Go to the opac and log in as the patron you reserved the book for. * Apply the patch with change to opac-user.pl * Revisit the opac and refresh it. * See if author now shows up Signed-off-by: Magnus Enger <digitalutvikling@gmail.com> Created a hold. Author is not shown n the public catalogue before applying the patch, but it does show after applying the patch. Way to go, Viktor! Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m Assignee|oleonard@myacpl.org |viktor.sarge@regionhalland. | |se -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal --- Comment #4 from Jonathan Druart <jonathan.druart@biblibre.com> --- I think this is more a bugfix than an enh. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 --- Comment #5 from Viktor Sarge <viktor.sarge@regionhalland.se> --- (In reply to Jonathan Druart from comment #4)
I think this is more a bugfix than an enh.
I agree Jonathan. I fixes that opac-user.tt tries to output a value that opac-user.pl don't create. I understand that I should add [ENH] to enh. bugs - is there something I should do to flag it as a bug? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 --- Comment #6 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Viktor Sarge from comment #5)
I agree Jonathan. I fixes that opac-user.tt tries to output a value that opac-user.pl don't create. I understand that I should add [ENH] to enh. bugs - is there something I should do to flag it as a bug?
You can just change the severity with the dropdown list near "Importance:". The values are "critical", "normal", ..., "enhancement", "new feature". -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed by Module Maintainer CC| |chris@bigballofwax.co.nz -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed by Module Maintainer |Pushed to Master CC| |tomascohen@gmail.com --- Comment #7 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Patch pushed to master. Thanks Viktor! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable CC| |gmcharlt@gmail.com --- Comment #8 from Galen Charlton <gmcharlt@gmail.com> --- Pushed to 3.16.x for inclusion in 3.16.1. Congratulations for having your first patch accepted into Koha, Viktor! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12336 --- Comment #9 from Viktor Sarge <viktor.sarge@regionhalland.se> --- Thank you! This is great fun. And the timing is spotless - now I can publish post #100 on our blog with the news of my first patch being accepted :) (In reply to Galen Charlton from comment #8)
Pushed to 3.16.x for inclusion in 3.16.1.
Congratulations for having your first patch accepted into Koha, Viktor!
-- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org