<table>
<tr>
<th>Item type</th>
- <th>Collection</th>
<th>Location</th>
<th>Status</th>
<th>Date Due</th>
</tr>
<!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
<tr>
- <td><!-- TMPL_VAR NAME="description" --></td>
- <td><!-- TMPL_VAR NAME="ccode" --></td>
+ <td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" -->
+ </td>
<td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
<td><!-- TMPL_IF name="bi_notforloan" -->
Not for loan
<!-- /TMPL_IF -->
</ul>
<div class="tabs-container"><table id="readingrec">
-<tr><th><!-- TMPL_UNLESS NAME="orderbytitle" --><a
+<tr>
+<!-- TMPL_IF NAME="AmazonContent" --><th> </th><!-- /TMPL_IF -->
+<th><!-- TMPL_UNLESS NAME="orderbytitle" --><a
href="/cgi-bin/koha/opac-readingrecord.pl?order=title">Title</a><!--
TMPL_ELSE -->Title<!-- /TMPL_UNLESS --></th>
-<th><!-- TMPL_UNLESS NAME="orderbyauthor" --><a
-href="/cgi-bin/koha/opac-readingrecord.pl?order=author">Author</a><!--
-TMPL_ELSE -->Author<!-- /TMPL_UNLESS --></th>
+<th>Item Type</th>
+<th>Call No.</th>
<th><!-- TMPL_UNLESS NAME="orderbydate" --><a href="/cgi-bin/koha/opac-readingrecord.pl">Date</a><!-- TMPL_ELSE -->Date<!-- /TMPL_UNLESS --></th>
</tr>
<!-- TMPL_LOOP NAME="READING_RECORD" -->
<!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
-<td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
-<td><!-- TMPL_VAR NAME="author" --></td>
+<!-- TMPL_IF NAME="AmazonContent" --><td><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --></td><!-- /TMPL_IF -->
+<td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
+ <span class="item-details">
+ <!-- TMPL_VAR NAME="author" -->
+ </span></td>
+<td><!-- TMPL_VAR NAME="description" --></td>
+<td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
<td><!-- TMPL_IF NAME="returndate" --><!-- TMPL_VAR NAME="returndate" --><!-- TMPL_ELSE --><em>(Checked out)</em><!-- /TMPL_IF --></td>
</tr>
</span>
</p>
- <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --> <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /> <!-- TMPL_VAR NAME="description" --><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" -->
- <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
- <!-- TMPL_VAR NAME="classification" -->
- </a>
+ <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --> <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="Item Type <!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="itemcallnumber" -->
+ <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>
<!-- /TMPL_IF --></p>
</td>
</tr>
<th>Title</th>
<th>Author</th>
<th>Copyright</th>
- <th>Date Added</th>
</tr>
<!-- TMPL_LOOP NAME="itemsloop" -->
<!-- TMPL_IF NAME="toggle" -->
</td>
<td><!-- TMPL_VAR NAME="author" --></td>
<td><!-- TMPL_VAR NAME="copyrightdate" --></td>
- <td><!-- TMPL_VAR NAME="cn_class" --> <!-- TMPL_VAR NAME="cn_item" --> <!-- TMPL_VAR NAME="cn_suffix" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td>
</tr>
<!-- /TMPL_LOOP --><!-- /itemsloop -->
</table>
<tr>
<th>Title</th>
<th>Itemtype</th>
- <th>Issues</th>
+ <th>Checkouts</th>
</tr>
<!-- TMPL_LOOP NAME="results_loop" -->
<tr>
<table>
<caption><!-- TMPL_VAR NAME="issues_count" --> Items</caption>
<!-- ISSUES TABLE ROWS --><tr>
- <th colspan="2">Title</th>
+ <!-- TMPL_IF NAME="AmazonContent" --><th> </th><!-- /TMPL_IF -->
+ <th>Title</th>
+ <th>Item Type</th>
<th>Call No.</th>
<th>Due</th>
<!-- TMPL_IF name="OpacRenewalAllowed" -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="AmazonContent" --><td><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --></td><!-- /TMPL_IF -->
<td>
- <!-- TMPL_IF NAME="imageurl" -->
- <img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
- <!-- TMPL_ELSE -->
- <!-- TMPL_VAR name="description" -->
- <!-- /TMPL_IF -->
- </td>
- <td><!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
<span class="item-details">
<!-- TMPL_VAR NAME="author" -->
</span>
</td>
- <td><!-- TMPL_VAR NAME="classification" --></td>
+ <td>
+ <!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" -->
+ </td>
+ <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
<!-- TMPL_IF NAME="overdue" -->
<td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
<!-- TMPL_ELSE -->
}
my $norequests = 1;
+my $imgdir = getitemtypeimagesrc();
+my $itemtypes = GetItemTypes();
foreach my $itm (@items) {
$norequests = 0 && $norequests
if ( (not $itm->{'wthdrawn'} )
|| ($itm->{'itemnumber'} ) );
$itm->{ $itm->{'publictype'} } = 1;
+ # imageurl:
+ my $itemtype = $itm->{'itemtype'};
+ if ( $itemtype ) {
+ $itm->{'imageurl'} = $imgdir."/".$itemtypes->{$itemtype}->{'imageurl'};
+ $itm->{'description'} = $itemtypes->{$itemtype}->{'description'};
+ }
+
#get collection code description, too
$itm->{'ccode'} = GetAuthorisedValueDesc('','', $itm->{'ccode'} ,'','','CCODE');
}
$line{biblionumber} = $issues->[$i]->{'biblionumber'};
$line{title} = $issues->[$i]->{'title'};
$line{author} = $issues->[$i]->{'author'};
- $line{classification} = $issues->[$i]->{'classification'};
+ $line{isbn} = $issues->[$i]->{'isbn'};
+ $line{itemcallnumber} = $issues->[$i]->{'itemcallnumber'};
$line{date_due} = format_date( $issues->[$i]->{'date_due'} );
$line{returndate} = format_date( $issues->[$i]->{'returndate'} );
$line{volumeddesc} = $issues->[$i]->{'volumeddesc'};