Bug 11845 - set overlay and import status translatable in addorderiso2709.tt
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 26 Feb 2014 10:03:18 +0000 (11:03 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Jun 2014 12:31:11 +0000 (08:31 -0400)
In addorderiso2709.tt, the text for overlay and import status come from
database and was not translatable.  Ths patch fixes that.

Same as Bug 10170.

Test plan :
- Go to acquisition module
- Display an open basket
- Click on "From a staged file"
- Look at table
=> Without patch, you see codes in "Status" column : staged, imported, ...
=> With patch, you see descriptions in "Status" column : Staged, Imported, ...
- Click on a "Add orders"
- Look at table
=> Without patch, you see codes in "Match?" column : no_match, auto_match, ...
=> With patch, you see descriptions in "Match?" column : No match, Match found, ...

Signed-off-by: Nathalie CHATILLON <nathalie.chatillon@uhb.fr>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This is an improvement. Only the translation of auto_match as Match found
could perhaps be further improved.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 20d0aff0e88544cdddfb4a6b90fc73ed652c84bd)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b505b7996c80d3740e7c0b12a650964018e92d5c)

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt

index ea7fac3..11db41b 100644 (file)
                                 [% biblio_lis.citation %]
 
                              </td>
-                             <td>[% biblio_lis.overlay_status %]</td>
+                             <td>
+                                [% IF ( biblio_lis.overlay_status == 'no_match' ) %]
+                                    No match
+                                [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %]
+                                    Match applied
+                                [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %]
+                                    Match found
+                                [% ELSE %]
+                                    [% biblio_lis.overlay_status %]
+                                [% END %]
+                             </td>
                              <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]&amp;breedingid=[% biblio_lis.import_record_id %]&amp;import_batch_id=[% biblio_lis.import_batch_id %]&amp;biblionumber=[% biblio_lis.match_biblionumber %]">Add order</a></td>
                          </tr>
      [% IF ( biblio_lis.match_biblionumber ) %]
                      <tr>
                         <td>[% batch_lis.file_name %]</td>
                        <td>[% batch_lis.comments %]</td>
-                       <td>[% batch_lis.import_status %]</td>
+                       <td>
+                        [% IF ( batch_lis.import_status == 'cleaned' ) %]
+                            Cleaned
+                        [% ELSIF ( batch_lis.import_status == 'imported' ) %]
+                            Imported
+                        [% ELSIF ( batch_lis.import_status == 'importing' ) %]
+                            Importing
+                        [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
+                            Reverted
+                        [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
+                            Reverting
+                        [% ELSIF ( batch_lis.import_status == 'staged' ) %]
+                            Staged
+                        [% ELSE %]
+                            [% batch_lis.import_status %]
+                        [% END %]
+                       </td>
                        <td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td>
                        <td>[% batch_lis.num_biblios %]</td>
                        <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]">Add orders</a></td>