Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namgo/revert generated titles #15

Merged
merged 2 commits into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions bibeasy/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
'Zaimi A',
]

TITLE_NAMES = {'article': 'Articles',
'combined': 'Combined',
'conf-article': 'Conference Articles'}

def check_field_exists(field):
def inner(func):
Expand Down Expand Up @@ -99,9 +96,8 @@ def csv_to_txt_pubtype(df, pubtype, args):

# For Dokuwiki
if ext_output == 'md':
descriptive_title = '---\ntitle: {0}\n---\n# {0}\n'.format(TITLE_NAMES[pubtype])
# Generate aggregated list
list_output_txt = [descriptive_title]
list_output_txt = []
unique_years = sorted(df['Year'].unique(), reverse=True)

for year in unique_years:
Expand Down