From f813c38ee7c5a2de7e5bcda6aae2579982c8bbdf Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Wed, 5 Aug 2009 09:48:56 +0200 Subject: [PATCH] (bug #3497) show publication year, or copyrightdate This change the shelf view in opac, to show publication year, in the column "Year"(that was previously copyrightdate), and is there is no publication year, show copyright date. Signed-off-by: Henri-Damien LAURENT --- C4/VirtualShelves.pm | 4 ++-- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm index b3e5b26ced..b8a5a834b6 100644 --- a/C4/VirtualShelves.pm +++ b/C4/VirtualShelves.pm @@ -264,8 +264,8 @@ sub GetShelfContents ($;$$$) { ($sortfield) = $sth2->fetchrow_array; } my $query = - " SELECT vc.biblionumber, vc.shelfnumber, vc.dateadded, - biblio.*, biblioitems.itemtype, itemtypes.* + " SELECT vc.biblionumber, vc.shelfnumber, vc.dateadded, itemtypes.*, + biblio.*, biblioitems.itemtype, biblioitems.publicationyear FROM virtualshelfcontents vc LEFT JOIN biblio ON vc.biblionumber = biblio.biblionumber LEFT JOIN biblioitems ON biblio.biblionumber = biblioitems.biblionumber diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index 01a13e9bd6..c498d20e7f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -108,7 +108,7 @@ $.tablesorter.addParser({ Item Type Title Author - Copyright + Year @@ -136,7 +136,13 @@ $.tablesorter.addParser({ "> - + + + + + + + @@ -173,7 +179,7 @@ $.tablesorter.addParser({
  • - +