[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 5570 - item types not showing on other editions
Nicole Engard
nengard at bywatersolutions.com
Tue Jan 4 18:47:29 CET 2011
From: Owen Leonard <oleonard at myacpl.org>
The item type which shows on other editions is the biblio-level
itemtype. XISBN.pm had some item-handling code, but I'm
removing it because it is unused. The editions tab should
now display item type only if item-level itemtypes are not
enabled.
Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
C4/XISBN.pm | 2 --
.../opac-tmpl/prog/en/modules/opac-detail.tmpl | 11 +++--------
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/C4/XISBN.pm b/C4/XISBN.pm
index 4f3f488..13abf25 100644
--- a/C4/XISBN.pm
+++ b/C4/XISBN.pm
@@ -20,7 +20,6 @@ package C4::XISBN;
use XML::Simple;
#use LWP::Simple;
use C4::Biblio;
-use C4::Items;
use C4::Koha;
use C4::External::Syndetics qw(get_syndetics_editions);
use LWP::UserAgent;
@@ -72,7 +71,6 @@ sub _get_biblio_from_xisbn {
if ($xbib_data->{biblionumber}) {
$xbiblio = GetBiblioData($xbib_data->{biblionumber});
$xbiblio->{normalized_isbn} = GetNormalizedISBN($xbiblio->{isbn});
- $xbiblio->{items} = GetItemsByBiblioitemnumber($xbib_data->{biblionumber});
}
return ($xbiblio);
}
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
index 81fbfc8..83f4174 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
@@ -167,10 +167,10 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<!-- /TMPL_IF -->
<!-- TMPL_IF name="copyrightdate" -->
- <span class="results_summary"><span class="label">Year : </span><!-- TMPL_VAR NAME="copyrightdate" --></span>
+ <span class="results_summary"><span class="label">Year: </span><!-- TMPL_VAR NAME="copyrightdate" --></span>
<!-- /TMPL_IF -->
<!-- TMPL_UNLESS NAME="item-level_itypes" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" />
- <span class="results_summary"><span class="label">Item type : </span>
+ <span class="results_summary"><span class="label">Item type: </span>
<!-- TMPL_IF name="description" -->
<!-- TMPL_VAR NAME="description" -->
<!-- TMPL_ELSE -->
@@ -716,17 +716,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
</td>
-<td><!-- TMPL_VAR NAME="description" --></td><td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><!-- TMPL_IF NAME="author" --> by <!-- TMPL_VAR NAME="author" ESCAPE="HTML" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="copyrightdate" --> ©<!-- TMPL_VAR NAME="copyrightdate" --><!-- /TMPL_IF --><!-- TMPL_IF name="publishercode" -->
+<!-- TMPL_UNLESS NAME="item-level_itypes" --><td><!-- TMPL_VAR NAME="description" --></td><!-- /TMPL_UNLESS --><td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><!-- TMPL_IF NAME="author" --> by <!-- TMPL_VAR NAME="author" ESCAPE="HTML" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="copyrightdate" --> ©<!-- TMPL_VAR NAME="copyrightdate" --><!-- /TMPL_IF --><!-- TMPL_IF name="publishercode" -->
<p><!-- TMPL_VAR NAME="publishercode" ESCAPE="HTML" -->
<!-- TMPL_IF name="place" -->(<!-- TMPL_VAR NAME="place"-->)<!--/TMPL_IF--> <!-- TMPL_IF NAME="publicationyear" -->, <!-- TMPL_VAR NAME="publicationyear" --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="pages" --><!-- TMPL_VAR NAME="pages" --> <!-- TMPL_VAR NAME="illus" --> <!-- TMPL_VAR NAME="size" --></p><!-- /TMPL_IF -->
<!-- /TMPL_IF --></td>
</tr>
-
- <!-- <!-- TMPL_LOOP NAME=items -->
- <!-- TMPL_IF NAME="itype" --><img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itype" -->.gif" title="<!-- TMPL_VAR NAME="itype" -->" alt="<!-- TMPL_VAR NAME="itype" -->" /><!-- /TMPL_IF -->
- barcode:<!-- TMPL_VAR NAME="barcode" -->
- <!-- /TMPL_LOOP --> -->
<!-- /TMPL_LOOP -->
</table>
</div><!-- /TMPL_IF --><!-- /TMPL_IF -->
--
1.5.6.5
More information about the Koha-patches
mailing list