Bug 31166: Digest option is not selectable for phone when PhoneNotification is enabled
[koha-ffzg.git] / gulpfile.js
index cc3ba2e..a17b66e 100644 (file)
@@ -37,7 +37,11 @@ if (args.view == "opac") {
 
 var sassOptions = {
     errLogToConsole: true,
-    precision: 3
+    precision: 3,
+    includePaths: [
+        __dirname + '/node_modules',
+        __dirname + '/../node_modules'
+    ]
 }
 
 // CSS processing for development
@@ -91,11 +95,6 @@ const poTasks = {
         create: po_create_marc_marc21,
         update: po_update_marc_marc21,
     },
-    'marc-NORMARC': {
-        extract: po_extract_marc_normarc,
-        create: po_create_marc_normarc,
-        update: po_update_marc_normarc,
-    },
     'marc-UNIMARC': {
         extract: po_extract_marc_unimarc,
         create: po_create_marc_unimarc,
@@ -136,6 +135,11 @@ const poTasks = {
         create: po_create_installer_marc21,
         update: po_update_installer_marc21,
     },
+    'installer-UNIMARC': {
+        extract: po_extract_installer_unimarc,
+        create: po_create_installer_unimarc,
+        update: po_update_installer_unimarc,
+    },
 };
 
 const poTypes = Object.keys(poTasks);
@@ -147,7 +151,6 @@ function po_extract_marc (type) {
 }
 
 function po_extract_marc_marc21 ()  { return po_extract_marc('MARC21') }
-function po_extract_marc_normarc () { return po_extract_marc('NORMARC') }
 function po_extract_marc_unimarc () { return po_extract_marc('UNIMARC') }
 
 function po_extract_staff () {
@@ -155,12 +158,9 @@ function po_extract_staff () {
         'koha-tmpl/intranet-tmpl/prog/en/**/*.tt',
         'koha-tmpl/intranet-tmpl/prog/en/**/*.inc',
         'koha-tmpl/intranet-tmpl/prog/en/xslt/*.xsl',
-        'koha-tmpl/intranet-tmpl/prog/en/columns.def',
         '!koha-tmpl/intranet-tmpl/prog/en/**/*MARC21*',
-        '!koha-tmpl/intranet-tmpl/prog/en/**/*NORMARC*',
         '!koha-tmpl/intranet-tmpl/prog/en/**/*UNIMARC*',
         '!koha-tmpl/intranet-tmpl/prog/en/**/*marc21*',
-        '!koha-tmpl/intranet-tmpl/prog/en/**/*normarc*',
         '!koha-tmpl/intranet-tmpl/prog/en/**/*unimarc*',
     ];
 
@@ -175,10 +175,8 @@ function po_extract_opac () {
         'koha-tmpl/opac-tmpl/bootstrap/en/**/*.inc',
         'koha-tmpl/opac-tmpl/bootstrap/en/xslt/*.xsl',
         '!koha-tmpl/opac-tmpl/bootstrap/en/**/*MARC21*',
-        '!koha-tmpl/opac-tmpl/bootstrap/en/**/*NORMARC*',
         '!koha-tmpl/opac-tmpl/bootstrap/en/**/*UNIMARC*',
         '!koha-tmpl/opac-tmpl/bootstrap/en/**/*marc21*',
-        '!koha-tmpl/opac-tmpl/bootstrap/en/**/*normarc*',
         '!koha-tmpl/opac-tmpl/bootstrap/en/**/*unimarc*',
     ];
 
@@ -190,10 +188,13 @@ function po_extract_opac () {
 const xgettext_options = '--from-code=UTF-8 --package-name Koha '
     + '--package-version= -k -k__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 '
     + '-k__p:1c,2 -k__px:1c,2 -k__np:1c,2,3 -k__npx:1c,2,3 -kN__ '
-    + '-kN__n:1,2 -kN__p:1c,2 -kN__np:1c,2,3 --force-po';
+    + '-kN__n:1,2 -kN__p:1c,2 -kN__np:1c,2,3 '
+    + '-k -k$__ -k$__x -k$__n:1,2 -k$__nx:1,2 -k$__xn:1,2 '
+    + '--force-po';
 
 function po_extract_messages_js () {
     const globs = [
+        'koha-tmpl/intranet-tmpl/prog/js/vue/**/*.vue',
         'koha-tmpl/intranet-tmpl/prog/js/**/*.js',
         'koha-tmpl/opac-tmpl/bootstrap/js/**/*.js',
     ];
@@ -252,6 +253,8 @@ function po_extract_installer_marc (type) {
 
 function po_extract_installer_marc21 ()  { return po_extract_installer_marc('MARC21') }
 
+function po_extract_installer_unimarc ()  { return po_extract_installer_marc('UNIMARC') }
+
 function po_create_type (type) {
     const access = util.promisify(fs.access);
     const exec = util.promisify(child_process.exec);
@@ -272,7 +275,6 @@ function po_create_type (type) {
 }
 
 function po_create_marc_marc21 ()       { return po_create_type('marc-MARC21') }
-function po_create_marc_normarc ()      { return po_create_type('marc-NORMARC') }
 function po_create_marc_unimarc ()      { return po_create_type('marc-UNIMARC') }
 function po_create_staff ()             { return po_create_type('staff-prog') }
 function po_create_opac ()              { return po_create_type('opac-bootstrap') }
@@ -281,6 +283,7 @@ function po_create_messages ()          { return po_create_type('messages') }
 function po_create_messages_js ()       { return po_create_type('messages-js') }
 function po_create_installer ()         { return po_create_type('installer') }
 function po_create_installer_marc21 ()  { return po_create_type('installer-MARC21') }
+function po_create_installer_unimarc () { return po_create_type('installer-UNIMARC') }
 
 function po_update_type (type) {
     const msgmerge_opts = '--backup=off --quiet --sort-output --update';
@@ -294,7 +297,6 @@ function po_update_type (type) {
 }
 
 function po_update_marc_marc21 ()       { return po_update_type('marc-MARC21') }
-function po_update_marc_normarc ()      { return po_update_type('marc-NORMARC') }
 function po_update_marc_unimarc ()      { return po_update_type('marc-UNIMARC') }
 function po_update_staff ()             { return po_update_type('staff-prog') }
 function po_update_opac ()              { return po_update_type('opac-bootstrap') }
@@ -303,6 +305,7 @@ function po_update_messages ()          { return po_update_type('messages') }
 function po_update_messages_js ()       { return po_update_type('messages-js') }
 function po_update_installer ()         { return po_update_type('installer') }
 function po_update_installer_marc21 ()  { return po_update_type('installer-MARC21') }
+function po_update_installer_unimarc () { return po_update_type('installer-UNIMARC') }
 
 /**
  * Gulp plugin that executes xgettext-like command `cmd` on all files given as