From 22068e395003b3f083047422063733e57c28c784 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Oct 2015 09:05:43 +0100 Subject: [PATCH] Bug 14100: Fix 3 occurrences more - opac-suggestions.pl - opac-readingrecord.pl - opac-reserve.pl Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- opac/opac-readingrecord.pl | 4 ++-- opac/opac-reserve.pl | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 05b3c84490..2eb7eadee1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -137,7 +137,7 @@ [% END %] [% END %] Item type: - [% issue.description %] + [% issue.translated_description %] Call number: [% issue.itemcallnumber %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 546cb24964..a864dde6b8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -169,7 +169,7 @@
  • Item type: [% IF ( bibitemloo.imageurl ) %][% END %] - [% bibitemloo.description %] + [% bibitemloo.translated_description %]
  • [% END %] @@ -316,7 +316,7 @@ [% END %] [% END %] - [% itemLoo.description %] + [% itemLoo.translated_description %] [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 09032e4c26..1753d8e5e8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -51,7 +51,7 @@ [% ELSE %] [% END %] diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index df03b30f3d..ca376127e7 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -84,8 +84,8 @@ my $opac_summary_html = C4::Context->preference('OPACMySummaryHTML'); foreach my $issue ( @{$issues} ) { $issue->{normalized_isbn} = GetNormalizedISBN( $issue->{isbn} ); if ( $issue->{$itype_attribute} ) { - $issue->{description} = - $itemtypes->{ $issue->{$itype_attribute} }->{description}; + $issue->{translated_description} = + $itemtypes->{ $issue->{$itype_attribute} }->{translated_description}; $issue->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes->{ $issue->{$itype_attribute} }->{imageurl} ); diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index ef81b1d1bf..f0843a236c 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -407,13 +407,13 @@ foreach my $biblioNum (@biblionumbers) { $biblioLoopIter{mandatorynotes}=0; #FIXME: For future use if (!$itemLevelTypes && $biblioData->{itemtype}) { - $biblioLoopIter{description} = $itemTypes->{$biblioData->{itemtype}}{description}; + $biblioLoopIter{translated_description} = $itemTypes->{$biblioData->{itemtype}}{translated_description}; $biblioLoopIter{imageurl} = getitemtypeimagesrc() . "/". $itemTypes->{$biblioData->{itemtype}}{imageurl}; } foreach my $itemInfo (@{$biblioData->{itemInfos}}) { if ($itemLevelTypes && $itemInfo->{itype}) { - $itemInfo->{description} = $itemTypes->{$itemInfo->{itype}}{description}; + $itemInfo->{translated_description} = $itemTypes->{$itemInfo->{itype}}{translated_description}; $itemInfo->{imageurl} = getitemtypeimagesrc() . "/". $itemTypes->{$itemInfo->{itype}}{imageurl}; } @@ -436,7 +436,7 @@ foreach my $biblioNum (@biblionumbers) { $itemLoopIter->{enumchron} = $itemInfo->{enumchron}; $itemLoopIter->{copynumber} = $itemInfo->{copynumber}; if ($itemLevelTypes) { - $itemLoopIter->{description} = $itemInfo->{description}; + $itemLoopIter->{translated_description} = $itemInfo->{translated_description}; $itemLoopIter->{imageurl} = $itemInfo->{imageurl}; } -- 2.39.5