LP#1711128 - Add internationalization to Always available status string user/mmorgan/lp1711128_add_internationalization
authorMichele Morgan <mmorgan@noblenet.org>
Fri, 21 Feb 2020 21:43:36 +0000 (16:43 -0500)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 21 Feb 2020 21:43:36 +0000 (16:43 -0500)
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates/opac/i18n_strings.tt2
Open-ILS/web/js/ui/default/opac/ebook_api/avail.js

index 7d3b831..a68c2b2 100644 (file)
@@ -21,4 +21,6 @@ to js source files, via js blob.
     eg_opac_i18n.EG_INVALID_DATE = "[% l('That is not a valid date in the future.') %]";
     // For multiple holds placement confirmation dialog. {0} is replaced by number of copies requested.
     eg_opac_i18n.EG_MULTIHOLD_MESSAGE = "[% l('Do you really want to place {0} holds for this title?') %]";
+    // For display of Always available titles in OverDrive.
+    eg_opac_i18n.EG_ALWAYS_AVAILABLE = "[% l('Always available') %]";
 </script>
index d6efec4..3762971 100644 (file)
@@ -34,7 +34,7 @@ dojo.addOnLoad(function() {
                                 });
                                 var status_node = dojo.byId(ebook.rec_id + '_status');
                                 if ( holdings.copies_owned > 9000)  {
-                                   var status_str = "Always available";
+                                   var status_str = eg_opac_i18n.EG_OVERDRIVE_ALWAYS_AVAILABLE;
                                 }
                                 else {
                                    var status_str = holdings.copies_available + ' of ' + holdings.copies_owned + ' available';