@mjhls/mjh-framework 1.0.893-ris-v3 → 1.0.893-ris-v4

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.
package/dist/cjs/View.js CHANGED
@@ -659,7 +659,6 @@ var Article = React.forwardRef(function (props, ref) {
659
659
  return null;
660
660
  };
661
661
  var generateRIS = function generateRIS() {
662
- console.log(props);
663
662
  var fileContent = 'TY - JOUR\n';
664
663
  if (article.title) fileContent += 'TI - ' + article.title + '\n'; //Title - TI
665
664
  if (article.summary) fileContent += 'N2 - ' + article.summary + '\n'; //Abstract - N2
@@ -1288,19 +1287,23 @@ var Article = React.forwardRef(function (props, ref) {
1288
1287
  )
1289
1288
  )
1290
1289
  ),
1291
- issue && issue.url && React__default['default'].createElement(
1292
- 'a',
1293
- { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1294
- React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1295
- 'Download Issue : ',
1296
- issue.name
1297
- ),
1298
- issue && React__default['default'].createElement(
1299
- Button__default['default'],
1300
- { onClick: function onClick() {
1301
- return downloadRIS();
1302
- } },
1303
- 'Download RIS'
1290
+ React__default['default'].createElement(
1291
+ 'div',
1292
+ { className: 'downloads-container' },
1293
+ issue && React__default['default'].createElement(
1294
+ Button__default['default'],
1295
+ { className: 'ris-download-button', onClick: function onClick() {
1296
+ return downloadRIS();
1297
+ } },
1298
+ 'Download RIS'
1299
+ ),
1300
+ issue && issue.url && React__default['default'].createElement(
1301
+ 'a',
1302
+ { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1303
+ React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1304
+ 'Download Issue : ',
1305
+ issue.name
1306
+ )
1304
1307
  )
1305
1308
  ),
1306
1309
  React__default['default'].createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
package/dist/esm/View.js CHANGED
@@ -649,7 +649,6 @@ var Article = forwardRef(function (props, ref) {
649
649
  return null;
650
650
  };
651
651
  var generateRIS = function generateRIS() {
652
- console.log(props);
653
652
  var fileContent = 'TY - JOUR\n';
654
653
  if (article.title) fileContent += 'TI - ' + article.title + '\n'; //Title - TI
655
654
  if (article.summary) fileContent += 'N2 - ' + article.summary + '\n'; //Abstract - N2
@@ -1278,19 +1277,23 @@ var Article = forwardRef(function (props, ref) {
1278
1277
  )
1279
1278
  )
1280
1279
  ),
1281
- issue && issue.url && React__default.createElement(
1282
- 'a',
1283
- { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1284
- React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1285
- 'Download Issue : ',
1286
- issue.name
1287
- ),
1288
- issue && React__default.createElement(
1289
- Button,
1290
- { onClick: function onClick() {
1291
- return downloadRIS();
1292
- } },
1293
- 'Download RIS'
1280
+ React__default.createElement(
1281
+ 'div',
1282
+ { className: 'downloads-container' },
1283
+ issue && React__default.createElement(
1284
+ Button,
1285
+ { className: 'ris-download-button', onClick: function onClick() {
1286
+ return downloadRIS();
1287
+ } },
1288
+ 'Download RIS'
1289
+ ),
1290
+ issue && issue.url && React__default.createElement(
1291
+ 'a',
1292
+ { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1293
+ React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1294
+ 'Download Issue : ',
1295
+ issue.name
1296
+ )
1294
1297
  )
1295
1298
  ),
1296
1299
  React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.893-ris-v3",
3
+ "version": "1.0.893-ris-v4",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",