Bug 39671 - Let patron check their notifications
Summary: Let patron check their notifications
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low new feature
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-17 19:36 UTC by Alvaro Cornejo
Modified: 2025-04-17 19:39 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Main access to new notices inbox (2.28 KB, application/x-perl)
2025-04-17 19:36 UTC, Alvaro Cornejo
Details
formating file from notices inbox (14.36 KB, text/plain)
2025-04-17 19:39 UTC, Alvaro Cornejo
Details
notices inbox screen capture (219.25 KB, image/png)
2025-04-17 19:39 UTC, Alvaro Cornejo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Cornejo 2025-04-17 19:36:52 UTC
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
Comment 1 Alvaro Cornejo 2025-04-17 19:39:10 UTC
Created attachment 181140 [details]
formating file from notices inbox
Comment 2 Alvaro Cornejo 2025-04-17 19:39:51 UTC
Created attachment 181141 [details]
notices inbox screen capture