Lines 47-54
Link Here
|
47 |
|
47 |
|
48 |
<div id="userreadingrecord" class="maincontent"> |
48 |
<div id="userreadingrecord" class="maincontent"> |
49 |
<h1>Checkout history</h1> |
49 |
<h1>Checkout history</h1> |
50 |
|
50 |
[% SET all_checkouts = checkouts.merge(old_checkouts) %] |
51 |
[% IF READING_RECORD.size == 0 %] |
51 |
[% IF all_checkouts.size == 0 %] |
52 |
You have never borrowed anything from this library. |
52 |
You have never borrowed anything from this library. |
53 |
[% ELSE %] |
53 |
[% ELSE %] |
54 |
<div id="opac-user-readingrec"> |
54 |
<div id="opac-user-readingrec"> |
Lines 109-194
Link Here
|
109 |
<th>Call number</th> |
109 |
<th>Call number</th> |
110 |
<th>Vol info</th> |
110 |
<th>Vol info</th> |
111 |
<th>Date</th> |
111 |
<th>Date</th> |
112 |
[% IF ( OPACMySummaryHTML ) %] |
112 |
[% IF Koha.Preference('OPACMySummaryHTML') %] |
113 |
<th class="NoSort noExport">Links</th> |
113 |
<th class="NoSort noExport">Links</th> |
114 |
[% END %] |
114 |
[% END %] |
115 |
<th></th> |
115 |
<th></th> |
116 |
</tr> |
116 |
</tr> |
117 |
</thead> |
117 |
</thead> |
118 |
<tbody> |
118 |
<tbody> |
119 |
[% FOREACH issue IN READING_RECORD %] |
119 |
[% FOREACH checkout IN all_checkouts %] |
|
|
120 |
[% SET item = checkout.item %] |
121 |
[% SET biblio = item.biblio %] |
120 |
<tr> |
122 |
<tr> |
121 |
<td style="display:none;"> |
123 |
<td style="display:none;"> |
122 |
[% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
124 |
[% IF checkout.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
123 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
125 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
124 |
[% END %] |
126 |
[% END %] |
125 |
[% issuetype | html %] |
127 |
[% issuetype | html %] |
126 |
</td> |
128 |
</td> |
127 |
<td> |
129 |
<td> |
128 |
[% IF OPACAmazonCoverImages %] |
130 |
[% SET normalized_isbn = biblio.normalized_isbn %] |
129 |
[% IF issue.normalized_isbn %] |
131 |
[% IF OPACAmazonCoverImages %] |
130 |
<a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a> |
132 |
[% IF normalized_isbn %] |
|
|
133 |
<a href="http://www.amazon.com/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a> |
131 |
[% ELSE %] |
134 |
[% ELSE %] |
132 |
<span class="no-image">No cover image available</span> |
135 |
<span class="no-image">No cover image available</span> |
133 |
[% END %] |
136 |
[% END %] |
134 |
[% END %] |
137 |
[% END %] |
135 |
|
138 |
|
136 |
[% IF GoogleJackets %] |
139 |
[% IF GoogleJackets %] |
137 |
[% IF issue.normalized_isbn %] |
140 |
[% IF normalized_isbn %] |
138 |
<div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
141 |
<div title="[% biblio.biblionumber |url %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
139 |
[% ELSE %] |
142 |
[% ELSE %] |
140 |
<span class="no-image">No cover image available</span> |
143 |
<span class="no-image">No cover image available</span> |
|
|
144 |
[% END %] |
141 |
[% END %] |
145 |
[% END %] |
142 |
[% END %] |
|
|
143 |
|
146 |
|
144 |
[% IF BakerTaylorEnabled %] |
147 |
[% IF BakerTaylorEnabled || SyndeticsEnabled && SyndeticsCoverImages %] |
145 |
[% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %] |
148 |
[% SET normalized_upc = biblio.normalized_upc %] |
146 |
[% IF ( bt_id ) %] |
149 |
[% END %] |
147 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
150 |
[% IF BakerTaylorEnabled %] |
148 |
[% ELSE %] |
151 |
[% bt_id = ( normalized_upc || normalized_isbn ) %] |
149 |
<span class="no-image">No cover image available</span> |
152 |
[% IF ( bt_id ) %] |
|
|
153 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
154 |
[% ELSE %] |
155 |
<span class="no-image">No cover image available</span> |
156 |
[% END %] |
150 |
[% END %] |
157 |
[% END %] |
151 |
[% END %] |
|
|
152 |
|
158 |
|
153 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
159 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
154 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% issue.normalized_upc | html %]&oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
160 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% normalized_upc | html %]&oclc=[% biblio.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
155 |
[% END %] |
161 |
[% END %] |
156 |
</td> |
162 |
</td> |
157 |
<td> |
163 |
<td> |
158 |
[% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %] |
164 |
[% INCLUDE 'biblio-title.inc' biblio=biblio, link => 1 %] |
159 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
165 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
160 |
[% INCLUDE 'user-star-ratings.inc' item=issue %] |
166 |
[% SET ratings = {ratings => biblio.ratings, itemnumber => item.itemnumber, biblionumber => biblio.biblionumber, my_rating => biblio.ratings.search( borrowernumber => logged_in_user.borrowernumber ).next } %] |
|
|
167 |
[% INCLUDE 'user-star-ratings.inc' item=ratings %] |
161 |
[% END %] |
168 |
[% END %] |
162 |
</td> |
169 |
</td> |
163 |
<td>[% issue.author | html %]</td> |
170 |
<td>[% biblio.author | html %]</td> |
164 |
<td> |
171 |
<td> |
165 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
172 |
[% SET item_type = item_types.${item.effective_itemtype} %] |
166 |
[% IF ( issue.imageurl ) %] |
173 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
167 |
<img src="[% issue.imageurl | html %]" alt="" /> |
174 |
[% SET image_location = item_type.image_location %] |
|
|
175 |
[% IF image_location %] |
176 |
<img src="[% image_location | html %]" alt="" /> |
177 |
[% END %] |
168 |
[% END %] |
178 |
[% END %] |
169 |
[% END %] |
179 |
<span class="itypetext"> |
170 |
<span class="itypetext"><span class="tdlabel">Item type:</span> |
180 |
<span class="tdlabel">Item type:</span> |
171 |
[% issue.translated_description | html %]</span></td> |
181 |
[% item_type.translated_description | html %] |
|
|
182 |
</span> |
183 |
</td> |
172 |
<td> |
184 |
<td> |
173 |
<span class="tdlabel">Call number:</span> |
185 |
<span class="tdlabel">Call number:</span> |
174 |
[% issue.itemcallnumber | html %] |
186 |
[% item.itemcallnumber | html %] |
175 |
</td> |
187 |
</td> |
176 |
<td> |
188 |
<td> |
177 |
[% IF issue.enumchron %] |
189 |
[% IF item.enumchron %] |
178 |
[% issue.enumchron | html %] |
190 |
[% item.enumchron | html %] |
179 |
[% END %] |
191 |
[% END %] |
180 |
</td> |
192 |
</td> |
181 |
[% IF issue.returndate %] |
193 |
[% IF checkout.returndate %] |
182 |
<td data-order="[% issue.returndate | html %]"> |
194 |
<td data-order="[% checkout.returndate | html %]"> |
183 |
<span class="tdlabel">Check-in date:</span> |
195 |
<span class="tdlabel">Check-in date:</span> |
184 |
[% issue.returndate | $KohaDates %] |
196 |
[% checkout.returndate | $KohaDates %] |
185 |
[% ELSE %] |
197 |
[% ELSE %] |
186 |
<td data-order="Checked out"> |
198 |
<td data-order="Checked out"> |
187 |
<em>(Checked out)</em> |
199 |
<em>(Checked out)</em> |
188 |
[% END %] |
200 |
[% END %] |
189 |
</td> |
201 |
</td> |
190 |
[% IF OPACMySummaryHTML %] |
202 |
[% IF Koha.Preference('OPACMySummaryHTML') %] |
191 |
<td>[% issue.MySummaryHTML | $raw %]</td> |
203 |
<td>[% biblio.opac_summary_html | $raw %]</td> |
192 |
[% END %] |
204 |
[% END %] |
193 |
<td></td> |
205 |
<td></td> |
194 |
</tr> |
206 |
</tr> |