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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt (-57 / +56 lines)
Lines 60-123 Link Here
60
                    </div>
60
                    </div>
61
61
62
                    [% IF ( course_reserves ) %]
62
                    [% IF ( course_reserves ) %]
63
                    <div class="rows">
63
                        <div class="rows">
64
                        <table id="course-items-table" class="table table-bordered table-striped table-condensed">
64
                            <table id="course-items-table" class="table table-bordered table-striped table-condensed">
65
                            <caption class="sr-only">Courses</caption>
65
                                <caption class="sr-only">Courses</caption>
66
                            <thead>
66
                                <thead>
67
                                <tr>
68
                                    <th class="anti-the">Title</th>
69
                                    <th>Author</th>
70
                                    <th>Item type</th>
71
                                    <th>Location</th>
72
                                    <th>Collection</th>
73
                                    <th>Call number</th>
74
                                    <th>Copy number</th>
75
                                    <th>Status</th>
76
                                    <th>Date due</th>
77
                                    <th>Notes</th>
78
                                    <th>Link</th>
79
                                    <th></th>
80
                                </tr>
81
                            </thead>
82
83
                            <tbody>
84
                                [% FOREACH cr IN course_reserves %]
85
                                    <tr>
67
                                    <tr>
86
                                        <td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td>
68
                                        <th class="anti-the">Title</th>
87
                                        <td>[% cr.biblio.author | html %]</td>
69
                                        <th>Author</th>
88
                                        <td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td>
70
                                        <th>Item type</th>
89
                                        <td
71
                                        <th>Location</th>
90
                                            >[% Branches.GetName( cr.item.holdingbranch ) | html %] <br />
72
                                        <th>Collection</th>
91
                                            <em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]</em></td
73
                                        <th>Call number</th>
92
                                        >
74
                                        <th>Copy number</th>
93
                                        <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td>
75
                                        <th>Status</th>
94
                                        <td>[% cr.item.itemcallnumber | html %]</td>
76
                                        <th>Date due</th>
95
                                        <td>[% cr.item.copynumber | html %]</td>
77
                                        <th>Notes</th>
96
                                        <td>
78
                                        <th>Link</th>
97
                                            [% IF cr.item %]
79
                                        <th></th>
98
                                                [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %]
99
                                            [% END %]
100
                                        </td>
101
                                        <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates  as_due_date => 1 %]</td>
102
                                        <td
103
                                            >[% IF ( cr.public_note ) %]
104
                                                [% cr.public_note | scrub_html type => 'note' | $raw %]
105
                                            [% ELSIF ( cr.item.itemnotes ) %]
106
                                                [% cr.item.itemnotes | $raw %]
107
                                            [% END %]
108
                                        </td>
109
                                        <td
110
                                            >[% IF (cr.item.uri) %]
111
                                                <a href="[% cr.item.uri | url %]">Item URI</a>
112
                                            [% ELSIF (cr.biblioitem.url) %]
113
                                                <a href="[% cr.biblioitem.url | url %]">Record URL</a>
114
                                            [% END %]
115
                                        </td>
116
                                        <td></td>
117
                                    </tr>
80
                                    </tr>
118
                                [% END %]
81
                                </thead>
119
                            </tbody>
82
120
                        </table>
83
                                <tbody>
84
                                    [% FOREACH cr IN course_reserves %]
85
                                        <tr>
86
                                            <td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td>
87
                                            <td>[% cr.biblio.author | html %]</td>
88
                                            <td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td>
89
                                            <td
90
                                                >[% Branches.GetName( cr.item.holdingbranch ) | html %] <br />
91
                                                <em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]</em></td
92
                                            >
93
                                            <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td>
94
                                            <td>[% cr.item.itemcallnumber | html %]</td>
95
                                            <td>[% cr.item.copynumber | html %]</td>
96
                                            <td>
97
                                                [% IF cr.item %]
98
                                                    [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %]
99
                                                [% END %]
100
                                            </td>
101
                                            <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates  as_due_date => 1 %]</td>
102
                                            <td
103
                                                >[% IF ( cr.public_note ) %]
104
                                                    [% cr.public_note | scrub_html type => 'note' | $raw %]
105
                                                [% ELSIF ( cr.item.itemnotes ) %]
106
                                                    [% cr.item.itemnotes | $raw %]
107
                                                [% END %]
108
                                            </td>
109
                                            <td
110
                                                >[% IF (cr.item.uri) %]
111
                                                    <a href="[% cr.item.uri | url %]">Item URI</a>
112
                                                [% ELSIF (cr.biblioitem.url) %]
113
                                                    <a href="[% cr.biblioitem.url | url %]">Record URL</a>
114
                                                [% END %]
115
                                            </td>
116
                                            <td></td>
117
                                        </tr>
118
                                    [% END %]
119
                                </tbody>
120
                            </table>
121
                        </div>
121
                        </div>
122
                    [% ELSE %]
122
                    [% ELSE %]
123
                        <br style="clear:both;" />
123
                        <br style="clear:both;" />
124
- 

Return to bug 40080