Skip to content

Commit 05f2cce

Browse files
committed
TODO Going Forward Add mainc py to take from linesRis folder
TODO Adapt mainc py to use BibTex bib information instead of ris file to get more information into new ris file DONE HERE in this commit as follows First Add mainc py duplicate from mainb py Second In mainc py find from lines import replace with from linesRis import
1 parent ba42c77 commit 05f2cce

File tree

1 file changed

+139
-0
lines changed

1 file changed

+139
-0
lines changed

mainc.py

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
"""
2+
This file calls:
3+
- author
4+
- journal
5+
6+
function inside
7+
file
8+
for each
9+
"""
10+
11+
#_____________________________________
12+
13+
import count
14+
15+
# count.count()
16+
17+
# ____________________________________
18+
19+
# import lines
20+
21+
from linesRis import author
22+
23+
author=author.author()
24+
25+
# ___________________________________
26+
27+
import lines
28+
29+
from linesRis import year
30+
31+
year=year.year()
32+
33+
# __________________________________
34+
35+
import lines
36+
37+
from linesRis import title
38+
39+
title=title.title()
40+
41+
# __________________________________
42+
43+
import lines
44+
45+
from linesRis import journal
46+
47+
journal=journal.journal()
48+
49+
# ___________________________________
50+
51+
import lines
52+
53+
from linesRis import volume
54+
55+
volume=volume.volume()
56+
57+
# __________________________________
58+
59+
import lines
60+
61+
from linesRis import number
62+
63+
number=number.number()
64+
65+
# __________________________________
66+
67+
import lines
68+
69+
from linesRis import pages
70+
71+
pages=pages.pages()
72+
73+
74+
# __________________________________
75+
76+
import lines
77+
78+
from linesRis import url
79+
80+
url=url.url()
81+
82+
83+
# __________________________________
84+
85+
import lines
86+
87+
from linesRis import doi
88+
89+
doi=doi.doi()
90+
91+
92+
# __________________________________
93+
94+
import date
95+
96+
date=date.date()
97+
98+
# __________________________________
99+
100+
import andReplacer
101+
102+
andReplacer = andReplacer.andReplacer()
103+
104+
# __________________________________
105+
106+
from linesRis import risL1
107+
108+
risL1 = risL1.risL1()
109+
110+
# __________________________________
111+
112+
# note on import of last or each module above:
113+
# import module (file), then do
114+
# imported_module.the_function_in_the_imported_module()
115+
# and set the name previously used for the module to be the_function_from_the_module
116+
117+
# __________________________________
118+
119+
# can use either of the following lines:
120+
121+
reference1 = "\n" + "TY - " + "" + "\n" + "TI - " + title + "\n" + "DO - " + doi + "\n" + "UR - " + url + "\n" + "AU - " + author + "\n" + "PY - " + "" + "\n" + "VL - " + volume + "\n" + "M3 - " + risL1 + "\n" + "ER - " + ""
122+
123+
# author + ' (' + year + ') ' + + ' ' + journal + ',' + ' ' + volume + '(' + number + ')' + ' ' + 'pp. ' + pages + ', ' + 'available: ' + doi + ' / ' + url + ' [accessed ' + date + '].'
124+
125+
126+
# reference = andReplacer.andReplacer()
127+
128+
# print("title =", title)
129+
# print("journal", journal)
130+
# print("\ncheckpoint\n")
131+
# print(',')
132+
# print(' ')
133+
# print("volume = ", volume)
134+
# print('(')
135+
# print(number)
136+
# print("\ncheckpoint\n")
137+
138+
139+
print(reference1)

0 commit comments

Comments
 (0)