adding branchcode for subscriptions details
authorPaul POULAIN <paul.poulain@biblibre.com>
Wed, 13 Feb 2008 19:03:22 +0000 (13:03 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 16 Feb 2008 17:18:31 +0000 (11:18 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
opac/opac-ISBDdetail.pl
opac/opac-detail.pl

index 7c0c400..e8b1b6b 100644 (file)
         <h2>
             We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscription(s) associated with this title.
         </h2>
-        <p>Below is a list of the three latest issues :</p>
         <!-- TMPL_LOOP Name="subscriptions" -->
-                <!-- TMPL_IF name="subscriptionnotes"-->
-                    <h2><!--TMPL_VAR Name="subscriptionnotes"--> </h2>
-                <!-- /TMPL_IF -->
-                <!--TMPL_IF Name="latestserials"-->
-                <table>
-                <tr><th>Issue number</th><th>Date</th><th>Status</th></tr>
-                <!--TMPL_LOOP Name="latestserials"-->
-                    <tr>
-                        <td>            <!--TMPL_VAR Name="serialseq"-->
-                        </td>
-                        <td>            <!--TMPL_VAR Name="planneddate"-->
-                        </td>
-                        <td>            <!--TMPL_IF Name="status1"-->Pending
+            <h3>At library: <!-- TMPL_VAR name="branchcode" --> <!-- TMPL_VAR name="notes" --></h3>
+            <p>Below is a list of the three latest issues :</p>
+            <!-- TMPL_IF name="subscriptionnotes"-->
+                <p><!--TMPL_VAR Name="subscriptionnotes"--> </p>
+            <!-- /TMPL_IF -->
+            <!--TMPL_IF Name="latestserials"-->
+            <table>
+            <tr><th>Issue number</th><th>Date</th><th>Status</th></tr>
+            <!--TMPL_LOOP Name="latestserials"-->
+                <tr>
+                    <td>            <!--TMPL_VAR Name="serialseq"-->
+                    </td>
+                    <td>            <!--TMPL_VAR Name="planneddate"-->
+                    </td>
+                    <td>            <!--TMPL_IF Name="status1"-->Pending
+                        <!--TMPL_ELSE -->
+                            <!-- TMPL_IF Name="status2"-->Arrived
                             <!--TMPL_ELSE -->
-                                <!-- TMPL_IF Name="status2"-->Arrived
+                                <!-- TMPL_IF Name="status3"-->Late
                                 <!--TMPL_ELSE -->
-                                    <!-- TMPL_IF Name="status3"-->Late
+                                    <!-- TMPL_IF Name="status4"-->Missing
                                     <!--TMPL_ELSE -->
-                                        <!-- TMPL_IF Name="status4"-->Missing
-                                        <!--TMPL_ELSE -->
-                                            <!-- TMPL_IF Name="status5"-->Not Issued
-                                            <!--/TMPL_IF-->
+                                        <!-- TMPL_IF Name="status5"-->Not Issued
                                         <!--/TMPL_IF-->
                                     <!--/TMPL_IF-->
                                 <!--/TMPL_IF-->
                             <!--/TMPL_IF-->
-                        </td>
-                    </tr>
-                <!--/TMPL_LOOP -->
-                </table>
-                <!-- /TMPL_IF -->
+                        <!--/TMPL_IF-->
+                    </td>
+                </tr>
+            <!--/TMPL_LOOP -->
+            </table>
+            <!-- /TMPL_IF -->
         <!-- /TMPL_LOOP -->
         <p><a href="/cgi-bin/koha/opac-serial-issues.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" title="Serial issues">Click here</a> for more information on subscription(s) history</p>
     <!-- /TMPL_IF --></div>
index 5d5523b..e0889ce 100755 (executable)
     <h2>This is a serial subscription</h2>
     <p> (There are <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p>
     <!-- TMPL_LOOP Name="subscriptions" -->
+    <!-- TMPL_IF name="branchcode" --><h3>At branch: <!-- TMPL_VAR name="branchcode" --></h3><!-- /TMPL_IF -->
     <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
     <!--TMPL_IF NAME="latestserials"-->
     <p> The three latest issues for this subscription:</p>
index 2646009..db25603 100755 (executable)
@@ -75,6 +75,7 @@ foreach my $subscription (@subscriptions) {
     my %cell;
     $cell{subscriptionid}    = $subscription->{subscriptionid};
     $cell{subscriptionnotes} = $subscription->{notes};
+    $cell{branchcode}        = $subscription->{branchcode};
 
     #get the three latest serials.
     $cell{latestserials} =
index 5777a80..b424ea7 100755 (executable)
@@ -67,7 +67,7 @@ foreach my $subscription (@subscriptions) {
     my %cell;
     $cell{subscriptionid}    = $subscription->{subscriptionid};
     $cell{subscriptionnotes} = $subscription->{notes};
-
+    $cell{branchcode}        = $subscription->{branchcode};
     #get the three latest serials.
     $cell{latestserials} =
       GetLatestSerials( $subscription->{subscriptionid}, 3 );