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-193
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 |
</tr> |
115 |
</tr> |
116 |
</thead> |
116 |
</thead> |
117 |
<tbody> |
117 |
<tbody> |
118 |
[% FOREACH issue IN READING_RECORD %] |
118 |
[% FOREACH checkout IN all_checkouts %] |
|
|
119 |
[% SET item = checkout.item %] |
120 |
[% SET biblio = item.biblio %] |
119 |
<tr> |
121 |
<tr> |
120 |
<td style="display:none;"> |
122 |
<td style="display:none;"> |
121 |
[% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
123 |
[% IF checkout.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
122 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
124 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
123 |
[% END %] |
125 |
[% END %] |
124 |
[% issuetype | html %] |
126 |
[% issuetype | html %] |
125 |
</td> |
127 |
</td> |
126 |
<td> |
128 |
<td> |
127 |
[% IF OPACAmazonCoverImages %] |
129 |
[% SET normalized_isbn = biblio.normalized_isbn %] |
128 |
[% IF issue.normalized_isbn %] |
130 |
[% IF OPACAmazonCoverImages %] |
129 |
<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> |
131 |
[% IF normalized_isbn %] |
|
|
132 |
<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> |
130 |
[% ELSE %] |
133 |
[% ELSE %] |
131 |
<span class="no-image">No cover image available</span> |
134 |
<span class="no-image">No cover image available</span> |
132 |
[% END %] |
135 |
[% END %] |
133 |
[% END %] |
136 |
[% END %] |
134 |
|
137 |
|
135 |
[% IF GoogleJackets %] |
138 |
[% IF GoogleJackets %] |
136 |
[% IF issue.normalized_isbn %] |
139 |
[% IF normalized_isbn %] |
137 |
<div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
140 |
<div title="[% biblio.biblionumber |url %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
138 |
[% ELSE %] |
141 |
[% ELSE %] |
139 |
<span class="no-image">No cover image available</span> |
142 |
<span class="no-image">No cover image available</span> |
|
|
143 |
[% END %] |
140 |
[% END %] |
144 |
[% END %] |
141 |
[% END %] |
|
|
142 |
|
145 |
|
143 |
[% IF BakerTaylorEnabled %] |
146 |
[% IF BakerTaylorEnabled || SyndeticsEnabled && SyndeticsCoverImages %] |
144 |
[% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %] |
147 |
[% SET normalized_upc = biblio.normalized_upc %] |
145 |
[% IF ( bt_id ) %] |
148 |
[% END %] |
146 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
149 |
[% IF BakerTaylorEnabled %] |
147 |
[% ELSE %] |
150 |
[% bt_id = ( normalized_upc || normalized_isbn ) %] |
148 |
<span class="no-image">No cover image available</span> |
151 |
[% IF ( bt_id ) %] |
|
|
152 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
153 |
[% ELSE %] |
154 |
<span class="no-image">No cover image available</span> |
155 |
[% END %] |
149 |
[% END %] |
156 |
[% END %] |
150 |
[% END %] |
|
|
151 |
|
157 |
|
152 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
158 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
153 |
<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" /> |
159 |
[%# FIXME Might need more work here, depending on the decision of 33951 %] |
154 |
[% END %] |
160 |
[%# Either remove the oclc parameter or create a Koha::Biblio->normalized_oclc method %] |
|
|
161 |
<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" /> |
162 |
[% END %] |
155 |
</td> |
163 |
</td> |
156 |
<td> |
164 |
<td> |
157 |
[% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %] |
165 |
[% INCLUDE 'biblio-title.inc' biblio=biblio, link => 1 %] |
158 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
166 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
159 |
[% INCLUDE 'user-star-ratings.inc' item=issue %] |
167 |
[% SET ratings = {ratings => biblio.ratings, itemnumber => item.itemnumber, biblionumber => biblio.biblionumber, my_rating => biblio.ratings.search( borrowernumber => logged_in_user.borrowernumber ).next } %] |
|
|
168 |
[% INCLUDE 'user-star-ratings.inc' item=ratings %] |
160 |
[% END %] |
169 |
[% END %] |
161 |
</td> |
170 |
</td> |
162 |
<td>[% issue.author | html %]</td> |
171 |
<td>[% biblio.author | html %]</td> |
163 |
<td> |
172 |
<td> |
164 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
173 |
[% SET item_type = item_types.${item.effective_itemtype} %] |
165 |
[% IF ( issue.imageurl ) %] |
174 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
166 |
<img src="[% issue.imageurl | html %]" alt="" /> |
175 |
[% SET image_location = item_type.image_location %] |
|
|
176 |
[% IF image_location %] |
177 |
<img src="[% image_location | html %]" alt="" /> |
178 |
[% END %] |
167 |
[% END %] |
179 |
[% END %] |
168 |
[% END %] |
180 |
<span class="itypetext"> |
169 |
<span class="itypetext"><span class="tdlabel">Item type:</span> |
181 |
<span class="tdlabel">Item type:</span> |
170 |
[% issue.translated_description | html %]</span></td> |
182 |
[% item_type.translated_description | html %] |
|
|
183 |
</span> |
184 |
</td> |
171 |
<td> |
185 |
<td> |
172 |
<span class="tdlabel">Call number:</span> |
186 |
<span class="tdlabel">Call number:</span> |
173 |
[% issue.itemcallnumber | html %] |
187 |
[% item.itemcallnumber | html %] |
174 |
</td> |
188 |
</td> |
175 |
<td> |
189 |
<td> |
176 |
[% IF issue.enumchron %] |
190 |
[% IF item.enumchron %] |
177 |
[% issue.enumchron | html %] |
191 |
[% item.enumchron | html %] |
178 |
[% END %] |
192 |
[% END %] |
179 |
</td> |
193 |
</td> |
180 |
[% IF issue.returndate %] |
194 |
[% IF checkout.returndate %] |
181 |
<td data-order="[% issue.returndate | html %]"> |
195 |
<td data-order="[% checkout.returndate | html %]"> |
182 |
<span class="tdlabel">Check-in date:</span> |
196 |
<span class="tdlabel">Check-in date:</span> |
183 |
[% issue.returndate | $KohaDates %] |
197 |
[% checkout.returndate | $KohaDates %] |
184 |
[% ELSE %] |
198 |
[% ELSE %] |
185 |
<td data-order="Checked out"> |
199 |
<td data-order="Checked out"> |
186 |
<em>(Checked out)</em> |
200 |
<em>(Checked out)</em> |
187 |
[% END %] |
201 |
[% END %] |
188 |
</td> |
202 |
</td> |
189 |
[% IF OPACMySummaryHTML %] |
203 |
[% IF Koha.Preference('OPACMySummaryHTML') %] |
190 |
<td>[% issue.MySummaryHTML | $raw %]</td> |
204 |
<td>[% biblio.opac_summary_html | $raw %]</td> |
191 |
[% END %] |
205 |
[% END %] |
192 |
</tr> |
206 |
</tr> |
193 |
[% END # / FOREACH issue %] |
207 |
[% END # / FOREACH issue %] |