Bugzilla – Attachment 181140 Details for
Bug 39671
Let patron check their notifications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
formating file from notices inbox
opac-acc-notices.tt (text/plain), 14.36 KB, created by
Alvaro Cornejo
on 2025-04-17 19:39:10 UTC
(
hide
)
Description:
formating file from notices inbox
Filename:
MIME Type:
Creator:
Alvaro Cornejo
Created:
2025-04-17 19:39:10 UTC
Size:
14.36 KB
patch
obsolete
>[% USE raw %] >[% USE Asset %] >[% USE Koha %] >[% USE AuthorisedValues %] >[% USE Branches %] <!-- + --> >[% USE KohaDates %] >[% PROCESS 'i18n.inc' %] <!-- + --> >[% SET footerjs = 1 %] <!-- + --> >[% USE AdditionalContents %] >[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] >[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] >[% INCLUDE 'doc-head-open.inc' %] ><title>[% FILTER collapse %] [% t("My notices ") | html %] › [% t("Koha") | html %] [% END %]</title> >[% INCLUDE 'doc-head-close.inc' %] >[% BLOCK cssinclude %] > [% Asset.css("css/datatables.css") | $raw %] >[% END %] ><style> > .notice { display: none; } ></style> ></head> > >[% INCLUDE 'bodytag.inc' bodyid='opac-account' bodyclass='scrollto' %] >[% INCLUDE 'masthead.inc' %] > > ><div class="main"> > [% WRAPPER breadcrumbs %] > [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> > [% END %] > [% WRAPPER breadcrumb_item bc_active= 1 %] > <span>Your charges</span> > [% END %] > [% END #/ WRAPPER breadcrumbs %] > > <div class="container-fluid"> > <div class="row"> > <div class="col col-lg-2 order-2 order-lg-1"> > <div id="navigation"> > [% INCLUDE 'navigation.inc' IsPatronPage=1 %] > </div> > </div> > <div class="col-md-12 col-lg-10 order-1"> > <div id="useraccount" class="maincontent"> > > <h1> Notificaciones </h1> > [% IF message %] > <div class="alert alert-info"> > [% IF message == 'valid_payment' %] > <p>Your payment of $[% message_value | html %] has been processed successfully!</p> > [% ELSIF message == 'duplicate_payment' %] > <p>A payment with the transaction ID '[% message_value | html %]' has already been posted to an account.</p> > <p>Please contact a librarian for details.</p> > [% ELSIF message == 'invalid_payment' %] > <p>The transaction ID '[% message_value | html %]' for this payment is invalid.</p> > <p>Please contact a librarian for details.</p> > [% END %] > </div> > [% END %] > ><!-- NOTICES TABLE --> > > [% IF ( QUEUED_MESSAGES ) %] > <div class="page-section"> > <table id="noticestable"> > <thead> > <tr> > <th>Notificación</th> > <!-- <th>Tipo</th> --> > <th>Estado</th> > <th>Fecha y hora</th> > <!-- <th>Hora de creación</th> --> > <th>Notas de la notificación</th> > </tr> > </thead> > <tbody> > [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %] > <tr> > <td> <!-- NOTICE --> > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %] > <a class="notice-title" data-noticeid="[% QUEUED_MESSAGE.message_id | html %]" href="/cgi-bin/koha/opac-acc-notices.pl?borrowernumber=[% borrowernumber | uri %]&noticeid=[% QUEUED_MESSAGE.message_id | uri %]">[% QUEUED_MESSAGE.subject | html %]</a> > <iframe class="notice" id="notice[% QUEUED_MESSAGE.message_id | html %]" srcdoc="[% QUEUED_MESSAGE.html_content | html %]"></iframe> > [% END %] > </td> > <!-- <td> > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %] > [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]<span>Correo</span> > [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]<span>Impresión</span> > [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]<span>MensajerÃa</span> > [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]<span>Sms</span> > [% ELSE %][% QUEUED_MESSAGE.message_transport_type | html %][% END %] > [% END %] > </td> > --> <td> <!-- STATUS --> > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %] > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]<span>enviado</span> > [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]<span>pendiente</span> > [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]<span>falló</span> > [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]<span>borrado</span> > [% ELSE %][% QUEUED_MESSAGE.status | html %][% END %] > [% IF ( QUEUED_MESSAGE.status != 'pending' ) %] > <div class="notice"> > <form id="resend_notice[% QUEUED_MESSAGE.message_id | html %]" action="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber | html %]" method="POST"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-resend_notice" /> > <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" /> > <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id | html %]" /> > </form> > </div> > [% END %] > [% END %] > </td> > <td data-order="[% QUEUED_MESSAGE.updated_on | html %]"> <!-- DATE UPDATED --> > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %] > [% QUEUED_MESSAGE.updated_on | $KohaDates with_hours => 1 %] > [% END %] > </td> > <!-- <td data-order="[% QUEUED_MESSAGE.time_queued | html %]"> > [% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %] > </td> --> > <td> <!-- DELIVERY NOTE --> > [% IF ( QUEUED_MESSAGE.status == 'sent' ) %] > [% IF ( QUEUED_MESSAGE.failure_code ) %] > [% IF ( QUEUED_MESSAGE.failure_code == "INVALID_BORNUMBER" ) %]<span class="clearfix">Número de usuario incorrecto [% borrowernumber | html %]</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_EMAIL' ) %]<span class="clearfix">No se halló una dirección de correo para el usuario</span> > [% ELSIF (matches = QUEUED_MESSAGE.failure_code.match('INVALID_EMAIL:(\w+)') ) %]<span class="clearfix">Dirección de correo inválida [% matches.0 | html %] para [% borrowernumber | html %]</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_FROM' ) %]<span class="clearfix">No se encontró correo del remitente</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'MISSING_SMS' ) %]<span class="clearfix">No se encontró número para SMS</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'DUPLICATE_MESSAGE' ) %]<span class="clearfix">Mensaje duplicado</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_NOTES' ) %]<span class="clearfix">Falló el envÃo por Sms</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'SMS_SEND_DRIVER_MISSING' ) %]<span class="clearfix">Error en el sistema de SMS</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'SENDMAIL' ) %]<span class="clearfix">No se pudo procesar el correo, revise los registros del sistema</span> > [% ELSIF ( QUEUED_MESSAGE.failure_code == "UNKNOWN_ERROR" ) %]<span class="clearfix">Otro tipo de error</span> > [% ELSE %] > <span class="clearfix">El mensaje no pudo ser enviado por el siguiente motivo: [% QUEUED_MESSAGE.failure_code | html %]</span> > [% END %] > [% END %] > > [% IF ( QUEUED_MESSAGE.to_address ) %] > <span class="clearfix"><span class="label">Enviado a:</span> [% QUEUED_MESSAGE.to_address | html %]</span> > [% END %] > <!-- [% IF ( QUEUED_MESSAGE.from_address ) %] > <span class="clearfix"><span class="label">Enviado por:</span> [% QUEUED_MESSAGE.from_address | html %]</span> > [% END %] > [% IF ( QUEUED_MESSAGE.cc_address ) %] > <span class="clearfix"><span class="label">CC:</span> [% QUEUED_MESSAGE.cc_address | html %]</span> > [% END %] > --> [% END %] > </td> > </tr> > [% END %] > </tbody> > </table> > </div> <!-- /.page-section --> > [% ELSE %] > <div class="dialog message">You have no messages.</div> > [% END %] ><!-- END TABLA NOTICES --> > > </div> <!-- / #useraccount --> > </div> <!-- / .col-10 --> > </div> <!-- / .row --> > </div> <!-- / .container-fluid --> ></div> <!-- / .main --> > > <!-- Modal --> > <div class="modal" id="noticeModal" tabindex="-1" aria-labelledby="noticeModalLabel" aria-hidden="true"> > <div class="modal-dialog"> > <div class="modal-content"> > <div class="modal-header"> > <!-- <button type="button" class="closebtn" data-dismiss="modal" aria-label="Cerrar"> > <span aria-hidden="true">×</span> > </button> --> > <h5 class="modal-title" id="noticeModalLabel">Notificación</h5> > </div> > <div class="modal-body"> > ... > </div> > <div class="modal-footer"> > <button type="button" class="btn btn-default deny cancel" data-dismiss="modal"><i class="fa fa-times"></i> Cerrar</button> > </div> > </div> <!-- /.modal-content --> > </div> <!-- /.modal-dialog --> > </div> <!-- /.modal --> > >[% BLOCK jsinclude %] >[% INCLUDE 'datatables.inc' %] > > <script> > $(document).ready(function() { > $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, { > "order": [[ 3, "desc" ]], > "pagingType": "full" > })); > > $("#noticestable").on("click", ".notice-title", function(e){ > e.preventDefault(); > var title = $(this).text(); > var noticeid = $(this).data("noticeid"); > var body = $("#notice" + noticeid ).attr("srcdoc"); > if( $("#resend_notice" + noticeid ).length ){ > $("#resend-notice").show(); > } > $("#resend-notice").data("noticeid", noticeid ); > $("#noticeModalLabel").text( title ); > $("#noticeModal .modal-body").html( body ); > $("#noticeModal").modal("show"); > }); > > $("#resend-notice").on("click", function(e){ > e.preventDefault(); > var noticeid = $(this).data("noticeid"); > $("#resend_notice" + noticeid ).submit(); > }); > > $("#noticeModal").on("hide.bs.modal", function(){ > $("#resend-notice").removeData("noticeid").hide(); > $("#noticeModalLabel").text(""); > $("#noticeModal .modal-body").html(""); > }); > }); > </script> >[% END %] >[% INCLUDE 'opac-bottom.inc' %] >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 39671
:
181139
| 181140 |
181141