LP#1862235 - Set unique page title for create marc record.
authorJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 15:47:10 +0000 (09:47 -0600)
committerJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 15:47:10 +0000 (09:47 -0600)
Add an egCore string for page title translation, and set
page title for Create New MARC Record.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/src/templates/staff/cat/catalog/index.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index be572de..5ca8e34 100644 (file)
@@ -64,6 +64,7 @@
     s.SERIALS_ISSUANCE_SUCCESS_SAVE = "[% l('Issuance saved') %]";
     s.PAGE_TITLE_CATALOG_CONTEXT = "[% l('Catalog') %]";
     s.PAGE_TITLE_BIB_DETAIL = "[% l('Bib [_1]', '{{record_id}}') %]";
+    s.PAGE_TITLE_CREATE_MARC = "[% l('Create MARC Record') %]";
 
   }])
 </script>
index ee99fca..c3ecb17 100644 (file)
@@ -222,6 +222,8 @@ function($scope , $routeParams , $location , $window , $q , egCore) {
     $scope.template_name = '';
     $scope.new_bib_id = 0;
 
+    egCore.strings.setPageTitle(egCore.strings.PAGE_TITLE_CREATE_MARC);
+
     egCore.net.request(
         'open-ils.cat',
         'open-ils.cat.marc_template.types.retrieve'