Created attachment 181139 [details] 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('<li><a href="/cgi-bin/koha/opac-notices.pl?borrowernumber=' + eborrowernumber + '">Notifications PREP</a></li>'); $('#menu ul').append('<li><a href="/cgi-bin/koha/opac-acc-notices.pl">Notifications</a></li>'); } /*END IF mylang==en*/ if (myLang == "es-ES") { // $('#menu ul').prepend('<li><a href="/cgi-bin/koha/opac-notices.pl?borrowernumber=' + eborrowernumber + '">Notificaciones PREP</a></li>'); $('#menu ul').append('<li><a href="/cgi-bin/koha/opac-acc-notices.pl">Notificaciones</a></li>'); } /*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
Created attachment 181140 [details] formating file from notices inbox
Created attachment 181141 [details] notices inbox screen capture