[Bug 42929] New: Cannot add borrowers.primary_message_contact in the HOLD_SLIP
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42929 Bug ID: 42929 Summary: Cannot add borrowers.primary_message_contact in the HOLD_SLIP Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Templates Assignee: oleonard@myacpl.org Reporter: marie-luce.laflamme@inlibro.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- At the moment, Koha only displays borrowers.primary_message_contact in the hold confirmation popup which was introduced by this bug https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37860. However, this field is not available for use in the HOLD_SLIP template, making it impossible to print patron's preferred message contact method on the slip. It would be nice if borrowers.primary_message_contact could also be available in the hold slip template. This could be a small enhancement that would make the printed hold slip more consistent with the information already shown in the interface. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42929 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisette@bywatersolutions.co | |m --- Comment #1 from Lisette Scheer <lisette@bywatersolutions.com> --- [% borrower.primary_contact_method %] should pull the field into the slip. Does that not work for you? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42929 --- Comment #2 from Marie-Luce Laflamme <marie-luce.laflamme@inlibro.com> --- I was able to add the field [% borrower.primary_contact_method %] in the HOLD_SLIP template. Koha will display the main contact method in the hold confirmation pop-up screen, but not in the printed version. I tested this in 25.05 and 26.05. To enable this information to be printed, Caroline added a tweak to the 25.05: Notification preferences: <br> [% IF borrower.has_messaging_preference({ message_name => 'Hold_filled', message_transport_type => 'email' }) %] Email [% ELSIF borrower.has_messaging_preference({ message_name => 'Hold_filled', }) %] [% ELSE %] The patron will not be notified. [% END %] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42929 --- Comment #3 from Lisette Scheer <lisette@bywatersolutions.com> --- If you want the specific notice the code Caroline gave you would be how to do it. If you want the borrower primary contact method (borrowers.primary_contact_method) like the linked bug, you'd do this: [% SWITCH borrower.primary_contact_method %] [% CASE 'phone' %] <span>Primary phone</span> [% CASE 'phonepro' %] <span>Secondary phone</span> [% CASE 'mobile' %] <span>Other phone</span> [% CASE 'email' %] <span>Primary email</span> [% CASE 'emailpro' %] <span>Secondary email</span> [% CASE 'fax' %] <span>Fax</span> [% END %] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42929 --- Comment #4 from Marie-Luce Laflamme <marie-luce.laflamme@inlibro.com> --- Thanks for the tip. I'm just curious to understand why the primary contact method field works on screen, but doesn't appear on the printed slip when used on its own [% borrower.primary_contact_method %], without a SWITCH or IF...ELSE statement. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org