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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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('<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

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to