View | Details | Raw Unified | Return to bug 28933
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-73 / +74 lines)
Lines 628-711 Link Here
628
                            <h2>This is a serial</h2>
628
                            <h2>This is a serial</h2>
629
                            <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
629
                            <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
630
                            [% FOREACH subscription IN subscriptions %]
630
                            [% FOREACH subscription IN subscriptions %]
631
                                [% IF ( subscription.branchcode ) %]
631
                                <div class="subscription">
632
                                    <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
633
                                [% ELSE %]
634
                                    [% IF ( subscription.branchcode ) %]
632
                                    [% IF ( subscription.branchcode ) %]
635
                                        <h3>At library: [% subscription.branchcode | html %]</h3>
633
                                        <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
634
                                    [% ELSE %]
635
                                        [% IF ( subscription.branchcode ) %]
636
                                            <h3>At library: [% subscription.branchcode | html %]</h3>
637
                                        [% END %]
636
                                    [% END %]
638
                                    [% END %]
637
                                [% END %]
639
                                    [% IF ( subscription.closed ) %]
638
                                [% IF ( subscription.closed ) %]
640
                                        <p class="subscription_closed">This subscription is closed.</p>
639
                                    <p class="subscription_closed">This subscription is closed.</p>
641
                                    [% END %]
640
                                [% END %]
642
                                    [% IF ( subscription.location ) %]
641
                                [% IF ( subscription.location ) %]
643
                                        <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
642
                                    <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
644
                                    [% END %]
643
                                [% END %]
645
                                    [% IF ( subscription.callnumber ) %]
644
                                [% IF ( subscription.callnumber ) %]
646
                                        <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
645
                                    <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
647
                                    [% END %]
646
                                [% END %]
648
                                    [% IF ( subscription.subscriptionnotes ) %]
647
                                [% IF ( subscription.subscriptionnotes ) %]
649
                                        <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
648
                                    <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
650
                                    [% END %]
649
                                [% END %]
651
                                    <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
650
                                <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
652
                                    [% IF ( subscription.letter ) %]
651
                                [% IF ( subscription.letter ) %]
653
                                        <span class="email_notifications">
652
                                    <span class="email_notifications">
654
                                            [% IF ( loggedinusername ) %]
653
                                        [% IF ( loggedinusername ) %]
655
                                                [% IF ( subscription.hasalert ) %]
654
                                            [% IF ( subscription.hasalert ) %]
656
                                                    <span>You have subscribed to email notification on new issues. </span><a class="btn btn-secondary" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&amp;subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
655
                                                <span>You have subscribed to email notification on new issues. </span><a class="btn btn-secondary" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&amp;subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
657
                                                [% ELSE %]
658
                                                    <a class="btn btn-secondary" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
659
                                                [% END %]
656
                                            [% ELSE %]
660
                                            [% ELSE %]
657
                                                <a class="btn btn-secondary" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
661
                                                <span>You must log in if you want to subscribe to email notification on new issues</span>
658
                                            [% END %]
662
                                            [% END %]
659
                                        [% ELSE %]
663
                                        </span>
660
                                            <span>You must log in if you want to subscribe to email notification on new issues</span>
664
                                    [% END %]
661
                                        [% END %]
665
                                    [% IF ( subscription.missinglist ) %]
662
                                    </span>
666
                                        <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
663
                                [% END %]
667
                                    [% END %]
664
                                [% IF ( subscription.missinglist ) %]
668
                                    [% IF ( subscription.opacnote ) %]
665
                                    <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
669
                                        <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
666
                                [% END %]
670
                                    [% END %]
667
                                [% IF ( subscription.opacnote ) %]
671
                                    [% IF ( subscription.latestserials ) %]
668
                                    <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
672
                                        <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
669
                                [% END %]
673
                                        <table class="table table-bordered table-striped" id="subscriptionst">
670
                                [% IF ( subscription.latestserials ) %]
674
                                            <caption class="sr-only">Latest serials</caption>
671
                                    <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
675
                                            <thead>
672
                                    <table class="table table-bordered table-striped" id="subscriptionst">
673
                                        <caption class="sr-only">Latest serials</caption>
674
                                        <thead>
675
                                            <tr>
676
                                                <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
677
                                                <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
678
                                                <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
679
                                                <th id="serial_status" data-colname="serial_status">Status</th>
680
                                                <th id="serial_notes" data-colname="serial_notes">Note</th>
681
                                            </tr>
682
                                        </thead>
683
                                        <tbody>
684
                                            [% FOREACH latestserial IN subscription.latestserials %]
685
                                                <tr>
676
                                                <tr>
686
                                                    <td class="serialseq">[% latestserial.serialseq | html %]</td>
677
                                                    <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
687
                                                    <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
678
                                                    <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
688
                                                    <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
679
                                                    <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
689
                                                    <td class="serial_status">
680
                                                    <th id="serial_status" data-colname="serial_status">Status</th>
690
                                                        [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
681
                                                    <th id="serial_notes" data-colname="serial_notes">Note</th>
691
                                                        [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
692
                                                        [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
693
                                                        [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
694
                                                            [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
695
                                                            [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
696
                                                            [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
697
                                                            [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
698
                                                        [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
699
                                                        [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
700
                                                        [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
701
                                                        [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
702
                                                    </td>
703
                                                    <td class="serial_notes">[% latestserial.notes | html %]</td>
704
                                                </tr>
682
                                                </tr>
705
                                            [% END # / FOREACH latestserials %]
683
                                            </thead>
706
                                        </tbody>
684
                                            <tbody>
707
                                    </table>
685
                                                [% FOREACH latestserial IN subscription.latestserials %]
708
                                [% END # / IF subscription.latestserials %]
686
                                                    <tr>
687
                                                        <td class="serialseq">[% latestserial.serialseq | html %]</td>
688
                                                        <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
689
                                                        <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
690
                                                        <td class="serial_status">
691
                                                            [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
692
                                                            [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
693
                                                            [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
694
                                                            [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
695
                                                                [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
696
                                                                [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
697
                                                                [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
698
                                                                [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
699
                                                            [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
700
                                                            [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
701
                                                            [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
702
                                                            [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
703
                                                        </td>
704
                                                        <td class="serial_notes">[% latestserial.notes | html %]</td>
705
                                                    </tr>
706
                                                [% END # / FOREACH latestserials %]
707
                                            </tbody>
708
                                        </table>
709
                                    [% END # / IF subscription.latestserials %]
710
                                </div>
709
                            [% END # / FOREACH subscriptions %]
711
                            [% END # / FOREACH subscriptions %]
710
                            <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
712
                            <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
711
                        </div> <!-- / #subscriptions -->
713
                        </div> <!-- / #subscriptions -->
712
- 

Return to bug 28933