Skip to content

Commit 9083a14

Browse files
committed
update
1 parent be912e0 commit 9083a14

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

resbibman/GUIs/fileInfo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ def loadDir(self, dir_path: str):
9696
def loadInfo(self, data: DataPoint):
9797
self.curr_data = data
9898
bib = data.bib
99-
info_txt = "\u27AA {title}\n\u27AA {year}\n\u27AA {authors}\n\
100-
".format(title = bib["title"], year = bib["year"], authors = " \u2726 ".join(bib["authors"]))
99+
info_txt = \
100+
"\u27AA {title}\n\u27AA {year}\n\u27AA {authors}\n".format(title = bib["title"], year = bib["year"], authors = " \u2726 ".join(bib["authors"]))
101+
if "journal" in bib:
102+
info_txt = info_txt + "\u27AA {journal}".format(journal = bib["journal"][0])
101103
self.info_lbl.setText(info_txt)
102104

103105
def openMiscDir(self):

resbibman/GUIs/mainWindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self):
2525
self.show()
2626

2727
def initUI(self):
28-
self.setWindowTitle("Research bib manager - {version}".format(version = VERSION))
28+
self.setWindowTitle("Research bib manager - v{version}".format(version = VERSION))
2929
self._initPanels()
3030
self._createActions()
3131
# self._createMenuBar()

resbibman/backend/bibReader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ def __call__(self, bib_str: str):
2424
bibs = []
2525
for k in bib_data.entries.keys():
2626
_d = bib_data.entries[k]
27-
datapoint = {
27+
data = {
2828
"entry": k,
2929
"title": _d.fields["title"],
3030
"year": _d.fields["year"],
3131
"authors": [str(p) for p in _d.persons["author"]]
3232
}
3333
for bib_entry in ["journal", "doi"]:
3434
if bib_entry in _d.fields:
35-
datapoint[bib_entry] = _d.fields[bib_entry],
36-
bibs.append(datapoint)
35+
data[bib_entry] = _d.fields[bib_entry],
36+
bibs.append(data)
3737
return bibs
3838

3939
class BibObj:
4040
"""
41-
deprecated
41+
**deprecated**
4242
Object representation of the bibliography file
4343
"""
4444
def __init__(self, **kwargs):

resbibman/conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"database": "F:\\Code\\ResBibManager\\src\\..\\Database", "stylesheet": "Aqua", "accepted_extensions": [".pdf", ".caj"], "default_tags": ["- Project: Smart scanner", "Dentistry (General)"], "sort_method": "Time added"}
1+
{"database": "F:\\Code\\ResBibManager\\src\\..\\Database", "stylesheet": "Aqua", "accepted_extensions": [".pdf", ".caj"], "default_tags": [], "sort_method": "Time added"}

0 commit comments

Comments
 (0)