Bugzilla – Attachment 44090 Details for
Bug 14100
Add base to make item types, branch names, sysprefs values and authorised values translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14100: Fix 3 occurrences more
Bug-14100-Fix-3-occurrences-more.patch (text/plain), 6.44 KB, created by
Jonathan Druart
on 2015-10-27 15:19:05 UTC
(
hide
)
Description:
Bug 14100: Fix 3 occurrences more
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-27 15:19:05 UTC
Size:
6.44 KB
patch
obsolete
>From 3159748f859141800868af3b646121dbbb0b916b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- > koha-tmpl/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 05b3c84..2eb7ead 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 %] > <span class="tdlabel">Item type:</span> >- [% issue.description %]</td> >+ [% issue.translated_description %]</td> > <td> > <span class="tdlabel">Call number:</span> > [% 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 546cb24..a864dde 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 @@ > <li class="itype"> > <span class="label">Item type: </span> > [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %] >- [% bibitemloo.description %] >+ [% bibitemloo.translated_description %] > </li> > [% END %] > >@@ -316,7 +316,7 @@ > <img src="[% itemLoo.imageurl %]" alt="" /> > [% END %] > [% END %] >- [% itemLoo.description %] >+ [% itemLoo.translated_description %] > </td> > [% 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 09032e4..1753d8e 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 %] > <option value="[% itemtypeloo.itemtype %]"> > [% END %] >- [% itemtypeloo.description %] >+ [% itemtypeloo.translated_description %] > </option> > [% END %] > </select> >diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl >index df03b30..ca37612 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 ef81b1d..f0843a2 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.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14100
:
38727
|
40917
|
40965
|
41654
|
41659
|
41660
|
42525
|
42526
|
43110
|
43111
|
43365
|
43366
|
43367
|
43368
|
43369
|
43370
|
43394
|
43395
|
43396
|
43577
|
43602
|
43603
|
43604
|
43605
|
43606
|
43613
|
44085
|
44086
|
44087
|
44088
|
44089
| 44090 |
44094
|
44108
|
44109
|
44119
|
44151