Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import * as jsPDF from 'jspdf';
- import * as Blob from 'blob';
- import './App.css';
- import downloader from './new';
- var BookFields = [
- {
- "user_email": "mail.sandeshbhusal@gmail.com",
- "type_of_article": "research-paper",
- "title": "Awesome Research in our software",
- "issn": "9772434561006",
- "doi": "/GFZ.GEOFON.gfz2009kciu ",
- "authors": "Prasanga Dhungel, Sandesh Kumar Bhusal",
- "link_for_article": "google.com",
- "location_of_conference": "Somewhere",
- "page_number": "35",
- "name_of_journal": "South park journal",
- "volume": "Volume IV",
- "impact_factor": "1",
- "isbn": "101011121",
- "date": "1998-05-18",
- "_id": "Wdqhke4jxgMMlVGq"
- },
- {
- "user_email": "mail.prasanga@gmail.com",
- "type_of_article": "research-paper",
- "title": "Artificial Neurons in ML",
- "issn": "9772434561006",
- "doi": "/GFZ.GEOFON.gfz2009kciu ",
- "authors": "Bedh Raj Dhungel, Sandesh Kumar Bhusal",
- "link_for_article": "google.com",
- "location_of_conference": "Somewhere",
- "page_number": "35",
- "name_of_journal": "South park journal",
- "volume": "Volume IV",
- "impact_factor": "1",
- "isbn": "101011121",
- "date": "1998-05-18",
- "_id": "Wdqhke4jxgMMlVGq"
- }
- ];
- var newFields = [
- {
- "type": "research-paper",
- "authors": "Pravesh Gaire, Sandesh Bhusal",
- "title": "Some title in the Paper",
- "city": "Bhaktapur",
- "year": "2019",
- "month": "July",
- "publisher": "Ekta",
- "pages": "100",
- "journal_name": "Jname",
- "chapter_title": "In the end",
- "_id": "VJgGuSSCDQaps6D2"
- },
- {
- "type": "research-paper",
- "authors": "Sandesh Bhusal, Prasanga Dhungel",
- "title": "The beginning of something new",
- "city": "Kathmandu",
- "year": "2015",
- "publisher": "Ekta Publication",
- "_id": "gpci3ovzEdBAYmqz"
- }
- ]
- downloader(newFields,'ieee', 'pdf');
- class App extends Component {
- constructor(props){
- }
- render() {
- return (
- <div className="App">
- <br/><br/>
- Coelho, Paulo. <i>The Alchemist.</i> San Francisco, 1998. Print.<br /><br/>
- Dickens, Charles. <i>Great Expectations.</i> New York, 1942. Print.<br /><br />
- </div>
- );
- }
- }
- export default App;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement