@mjhls/mjh-framework 1.0.780 → 1.0.781

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,17 +92,21 @@ MediaSeriesLanding.getInitialData = function () {
92
92
  to: start + itemsPerPage,
93
93
  url: pathname
94
94
  };
95
- seriesQuery = '*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\' && isShow != false][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries == false] | order(published desc) [$from...$to]{\n _id,\n name,\n identifier,\n published,\n \'articles\': \n *[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && is_visible\n && defined(url)\n && references(^._id)\n && passwordLock != true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n ...,\n title,\n summary,\n thumbnail,\n url,\n published,\n authorMapping[0]->,\n taxonomyMapping[]->,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }\n\n }\n}';
96
- _context.next = 9;
95
+ seriesQuery = '*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries != false] | order(published desc) [$from...$to]{\n _id,\n name,\n identifier,\n published,\n \'articles\': \n *[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && is_visible\n && defined(url)\n && references(^._id)\n && passwordLock != true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n ...,\n title,\n summary,\n thumbnail,\n url,\n published,\n authorMapping[0]->,\n taxonomyMapping[]->,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }\n\n }\n}';
96
+
97
+
98
+ console.log('series query:', seriesQuery);
99
+
100
+ _context.next = 10;
97
101
  return client.fetch(seriesQuery, params);
98
102
 
99
- case 9:
103
+ case 10:
100
104
  seriesData = _context.sent;
101
105
  filterDropDownData = [];
102
- _context.next = 13;
106
+ _context.next = 14;
103
107
  return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries != false]{\n _id,\n name,\n identifier\n \n }\n }');
104
108
 
105
- case 13:
109
+ case 14:
106
110
  allSeries = _context.sent;
107
111
 
108
112
 
@@ -110,7 +114,7 @@ MediaSeriesLanding.getInitialData = function () {
110
114
 
111
115
  return _context.abrupt('return', { seriesData: seriesData, query: seriesQuery, params: params, page: currentPage, filterDropDownData: filterDropDownData, identifier: identifier });
112
116
 
113
- case 16:
117
+ case 17:
114
118
  case 'end':
115
119
  return _context.stop();
116
120
  }
@@ -85,17 +85,21 @@ MediaSeriesLanding.getInitialData = function () {
85
85
  to: start + itemsPerPage,
86
86
  url: pathname
87
87
  };
88
- seriesQuery = '*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\' && isShow != false][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries == false] | order(published desc) [$from...$to]{\n _id,\n name,\n identifier,\n published,\n \'articles\': \n *[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && is_visible\n && defined(url)\n && references(^._id)\n && passwordLock != true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n ...,\n title,\n summary,\n thumbnail,\n url,\n published,\n authorMapping[0]->,\n taxonomyMapping[]->,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }\n\n }\n}';
89
- _context.next = 9;
88
+ seriesQuery = '*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries != false] | order(published desc) [$from...$to]{\n _id,\n name,\n identifier,\n published,\n \'articles\': \n *[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && is_visible\n && defined(url)\n && references(^._id)\n && passwordLock != true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n ...,\n title,\n summary,\n thumbnail,\n url,\n published,\n authorMapping[0]->,\n taxonomyMapping[]->,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }\n\n }\n}';
89
+
90
+
91
+ console.log('series query:', seriesQuery);
92
+
93
+ _context.next = 10;
90
94
  return client.fetch(seriesQuery, params);
91
95
 
92
- case 9:
96
+ case 10:
93
97
  seriesData = _context.sent;
94
98
  filterDropDownData = [];
95
- _context.next = 13;
99
+ _context.next = 14;
96
100
  return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id,\n name,\n identifier,\n \'series\': *[_type == \'documentGroup\' && references(^._id) && isSeries != false]{\n _id,\n name,\n identifier\n \n }\n }');
97
101
 
98
- case 13:
102
+ case 14:
99
103
  allSeries = _context.sent;
100
104
 
101
105
 
@@ -103,7 +107,7 @@ MediaSeriesLanding.getInitialData = function () {
103
107
 
104
108
  return _context.abrupt('return', { seriesData: seriesData, query: seriesQuery, params: params, page: currentPage, filterDropDownData: filterDropDownData, identifier: identifier });
105
109
 
106
- case 16:
110
+ case 17:
107
111
  case 'end':
108
112
  return _context.stop();
109
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.780",
3
+ "version": "1.0.781",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",