Bug 14668: Show serial enumeration in INTRANET circulation.tt and OPAC patron's relat...
authorCharles Farmer <charles.farmer@inlibro.com>
Fri, 15 Jul 2016 18:18:29 +0000 (14:18 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Sun, 25 Sep 2016 15:39:50 +0000 (15:39 +0000)
TEST PLAN

1. THE CHECKOUT TAB, INTRANET
    1.1. Add a value to the 'h' subfield of an item. ie: 'volume #42'
    1.2. Check out the item to a patron
    1.3. Display this patron's issues in his checkout page
        1.3.1. The enumchron should be concatenated with the title

2. A PATRON'S RELATIVE, INTRANET + OPAC
    1.1. Add somebody to a patron's guarantee list
    1.2. Checkout a serial to this guarantee
    1.3. Visit the guarantor's OPAC and INTRANET checkout page
        1.3.1. You should see the enumchron in his guarantee's issues

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
svc/checkouts

index bf419d7..cca2a28 100644 (file)
@@ -227,6 +227,10 @@ $(document).ready(function() {
                                   title += " " + value.subfield;
                         });
 
+                        if ( oObj.enumchron ) {
+                            title += ' ' + oObj.enumchron;
+                        }
+
                         title += "</a></span>";
 
                         if ( oObj.author ) {
@@ -499,6 +503,10 @@ $(document).ready(function() {
                                       title += " " + value.subfield;
                             });
 
+                            if ( oObj.enumchron ) {
+                                title += ' ' + oObj.enumchron;
+                            }
+
                             title += "</a></span>";
 
                             if ( oObj.author ) {
index 9aa4cc3..4e27643 100644 (file)
@@ -221,6 +221,7 @@ Using this account is not recommended because some parts of Koha will not functi
 
                                                 <td class="title">
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a>
+                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
                                                     <span class="item-details">[% ISSUE.author %]</span>
                                                 </td>
                                                 [% IF ( ISSUE.overdue ) %]
@@ -382,7 +383,7 @@ Using this account is not recommended because some parts of Koha will not functi
                                                 <tr>
                                                     <td>
                                                         <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
-                                                            [% i.item.biblio.title %]
+                                                            [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
                                                         </a>
                                                     </td>
 
index e613126..f1e3ffa 100755 (executable)
@@ -97,6 +97,7 @@ my $sql = '
         itemlost,
         damaged,
         location,
+        items.enumchron,
 
         DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today
     FROM issues
@@ -173,6 +174,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
         date_due_overdue    => $c->{date_due_overdue} ? JSON::true : JSON::false,
         timestamp           => $c->{timestamp},
         onsite_checkout     => $c->{onsite_checkout},
+        enumchron           => $c->{enumchron},
         renewals_count      => $renewals_count,
         renewals_allowed    => $renewals_allowed,
         renewals_remaining  => $renewals_remaining,