Bug 7864: Little changes to the display
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 1 Apr 2012 12:33:31 +0000 (14:33 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 08:58:36 +0000 (10:58 +0200)
Changes the display of subscribers a bit.

- Makes each name a link to the patron account instead of having a separate
  'View' link behind each name
- Show the title and subscrption number as link to the subscription detail
  page instead of just 'subscription'

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/viewalerts.tt

index c1ad589..88fa8fb 100644 (file)
@@ -9,30 +9,31 @@
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Alert subscribers for <i>[% bibliotitle %]</i></div>
 
 <div id="doc3" class="yui-t2">
-   
-   <div id="bd">
-       <div id="yui-main">
-       <div class="yui-b">
+    <div id="bd">
+    <div id="yui-main">
+    <div class="yui-b">
 
 <h1>Alert subscribers for <i>[% bibliotitle %]</i></h1>
-               <a href="subscription-detail.pl?subscriptionid=[% subscriptionid %]" class="button">subscription</a>
-               [% IF ( alertloop ) %]
-                       <table>
-                       <tr>
-                               <th>Patron name</th>
-                               <th>&nbsp;</th>
-                       </tr>
 
-                       [% FOREACH alertloo IN alertloop %]
-                               <tr>
-                                       <td>[% alertloo.name %]</td>
-                                       <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% alertloo.borrowernumber %]" class="button">View</a></td>
-                               </tr>
-                       [% END %]
-                       </table>
-               [% ELSE %]
-                       Nobody
-               [% END %]
+<p>
+    <span class="label">Subscription:</span> <a href="subscription-detail.pl?subscriptionid=[% subscriptionid %]">[% bibliotitle %] #[% subscriptionid %]</a>
+</p>
+
+[% IF ( alertloop ) %]
+    <table>
+        <tr>
+            <th>Patron name</th>
+        </tr>
+        [% FOREACH alertloo IN alertloop %]
+        <tr>
+            <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% alertloo.borrowernumber %]">[% alertloo.name %]</a></td>
+        </tr>
+        [% END %]
+    </table>
+[% ELSE %]
+    <p>There are no patrons subsribed to this subscription serial alert.</p>
+[% END %]
+
 </div>
 </div>