koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/css/en opac-serial-issues.tmpl,


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/css/en opac-serial-issues.tmpl,1.5,1.6 opac-user.tmpl,1.11,1.12
Date: Thu, 04 Aug 2005 01:54:58 -0700

Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3043/koha-tmpl/opac-tmpl/css/en

Modified Files:
        opac-serial-issues.tmpl opac-user.tmpl 
Log Message:
Letters / alert system, continuing...
* adding a package Letters.pm, that manages Letters & alerts.
* adding feature : it's now possible to define a "letter" for any subscription 
created. If a letter is defined, users in OPAC can put an alert on the 
subscription. When an issue is marked "arrived", all users in the alert will 
recieve a mail (as defined in the "letter"). This last part (= send the mail) 
is not yet developped. (Should be done this week)
* adding feature : it's now possible to "put to an alert" in OPAC, for any 
serial subscription. The alert is stored in a new table, called alert. An alert 
can be put only if the librarian has activated them in subscription (and they 
activate it just by choosing a "letter" to sent to borrowers on new issues)
* adding feature : librarian can see in borrower detail which alerts they have 
put, and a user can see in opac-detail which alert they have put too.
Note that the system should be generic enough to manage any type of alert.
I plan to extend it soon to virtual shelves : a borrower will be able to put an 
alert on a virtual shelf, to be warned when something is changed in the virtual 
shelf (mail being sent once a day by cron, or manually by the shelf owner. 
Anyway, a mail won't be sent on every change, users would be spammed by Koha 
;-) )

Index: opac-serial-issues.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-serial-issues.tmpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** opac-serial-issues.tmpl     20 Jun 2005 14:25:01 -0000      1.5
--- opac-serial-issues.tmpl     4 Aug 2005 08:54:55 -0000       1.6
***************
*** 76,79 ****
--- 76,92 ----
        <!--TMPL_UNLESS Name=fullinfo -->
                <p><!-- TMPL_VAR name="notes" --></p>
+               <p>
+                       <!-- TMPL_IF name="letter" -->
+                               <!-- TMPL_IF name="hasalert" -->
+                                       <a 
href="opac-alert-subscribe.pl?op=cancel&amp;externalid=<!-- TMPL_VAR 
name="subscriptionid" -->&amp;alerttype=issue&amp;biblionumber=<!-- TMPL_VAR 
name="biblionumber" -->" class="button" title="Cancel mail alert when a new 
issue arrives for this subscription">
+                                               Cancel alert
+                                       </a>
+                               <!-- TMPL_ELSE -->
+                                       <a 
href="opac-alert-subscribe.pl?externalid=<!-- TMPL_VAR name="subscriptionid" 
-->&amp;alerttype=issue&amp;biblionumber=<!-- TMPL_VAR name="biblionumber" -->" 
class="button" title="be warned by mail when a new issue arrives for this 
subscription">
+                                               Stay in touch
+                                       </a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_IF -->
+               </p>
                <!-- TMPL_IF name="opacnote" -->
                        <h2 class="catalogue">Issues summary</h2>

Index: opac-user.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-user.tmpl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** opac-user.tmpl      20 Jun 2005 14:25:01 -0000      1.11
--- opac-user.tmpl      4 Aug 2005 08:54:55 -0000       1.12
***************
*** 114,117 ****
--- 114,136 ----
        </div>
        <!-- /TMPL_IF -->
+       <!-- TMPL_IF name="alertloop" -->
+               <div class="bloc60">
+               <h2 class="members">Alert subscriptions</h2>
+                       <table>
+                       <tr>
+                               <th>Type</th>
+                               <th>on</th>
+                       </tr>
+ 
+                       <!-- TMPL_LOOP NAME="alertloop" -->
+                               <tr>
+                                       <td><!-- TMPL_IF name="issue" -->Serial 
issue<!-- /TMPL_IF --></td>
+                                       <td><!-- TMPL_VAR name="relatedto" 
--></td>
+                               </tr>
+                       <!-- /TMPL_LOOP -->
+                       </table>
+               </div>
+       <!-- /TMPL_IF -->
+ 
  </div>
  <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]