Skip to content

Commit

Permalink
hep: add material to FFT for CDS
Browse files Browse the repository at this point in the history
  • Loading branch information
michamos committed Dec 11, 2023
1 parent f025829 commit 61b7abe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inspire_dojson/hep/rules/bdFFT.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ def _get_hidden(value):
return None

def _get_filename_and_extension(value):
return os.path.splitext(value.get('filename', value['key']))
file_name, extension = os.path.splitext(value.get('filename', value['key']))
if file_name == "document" and value.get("material", "publication") != "publication":
file_name = value["material"]
return file_name, extension

file_name, extension = _get_filename_and_extension(value)

Expand Down

0 comments on commit 61b7abe

Please sign in to comment.