From bugzilla-daemon@bugs.koha-community.org Thu Apr 17 21:37:01 2025 From: bugzilla-daemon@bugs.koha-community.org To: koha-bugs@lists.koha-community.org Subject: [Koha-bugs] [Bug 39671] New: Let patron check their notifications Date: Thu, 17 Apr 2025 19:36:52 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2394092037255032412==" --===============2394092037255032412== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39671 Bug ID: 39671 Summary: Let patron check their notifications Change sponsored?: --- Product: Koha Version: 24.05 Hardware: All OS: All Status: NEW Severity: new feature Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: cornejo.alvaro@gmail.com QA Contact: testopia@bugs.koha-community.org Created attachment 181139 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181139&action=edit Main access to new notices inbox Currently Patrons does not have a way to check the notifications they have received from the notification system. This new feature will allow them, once logged into their account, to see their notices. this very basic code -I´m not a programmer at all- provide a basic "read-only inbox" Two files are needed: /usr/share/koha/opac/cgi-bin/opac/opac-acc-notices.pl /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules/opac-acc-notices.tt And the following JS /* OPAC-NOTICES */ if ($('#usermenu').length) { var myLang = $('html').attr('lang'); let eborrowernumber = $('.loggedinusername').attr('data-borrowernumber'); if (myLang == "en") { // SIN borrower si plantilla opac-xxx.pl // $('#menu ul').prepend('
  • Notifications PREP
  • '); $('#menu ul').append('
  • Notifications
  • '); } /*END IF mylang==en*/ if (myLang == "es-ES") { // $('#menu ul').prepend('
  • Notificaciones PREP
  • '); $('#menu ul').append('
  • Notificaciones
  • '); } /*END IF mylang==es-ES*/ } /*END IF $#usermenu...*/ /* end OPAC-NOTICES */ URL that will be called: https://MYLIBRARY.COM/cgi-bin/koha/opac-account-notices.pl -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. --===============2394092037255032412==-- From bugzilla-daemon@bugs.koha-community.org Thu Apr 17 21:39:11 2025 From: bugzilla-daemon@bugs.koha-community.org To: koha-bugs@lists.koha-community.org Subject: [Koha-bugs] [Bug 39671] Let patron check their notifications Date: Thu, 17 Apr 2025 19:39:10 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7859308317352652356==" --===============7859308317352652356== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39671 Alvaro Cornejo changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cornejo.alvaro@gmail.com --- Comment #1 from Alvaro Cornejo --- Created attachment 181140 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181140&action=edit formating file from notices inbox -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. --===============7859308317352652356==-- From bugzilla-daemon@bugs.koha-community.org Thu Apr 17 21:39:51 2025 From: bugzilla-daemon@bugs.koha-community.org To: koha-bugs@lists.koha-community.org Subject: [Koha-bugs] [Bug 39671] Let patron check their notifications Date: Thu, 17 Apr 2025 19:39:51 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6487939013010471269==" --===============6487939013010471269== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39671 --- Comment #2 from Alvaro Cornejo --- Created attachment 181141 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181141&action=edit notices inbox screen capture -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. --===============6487939013010471269==--