Skip to content

Commit

Permalink
Merge pull request #251 from golnazads/master
Browse files Browse the repository at this point in the history
updated aastex, aspc, mnras, and soph formats to output volume and page …
  • Loading branch information
golnazads committed May 8, 2024
2 parents f9ce835 + 528cd9c commit 044235b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion exportsrv/cslstyles/aastex.csl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</macro>
<macro name="locators">
<choose>
<if type="article paper-conference personal_communication review-book thesis" match="any">
<if type="article paper-conference personal_communication review-book thesis article-journal" match="any">
<group prefix="">
<group>
<text variable="volume" prefix=", "/>
Expand Down
2 changes: 1 addition & 1 deletion exportsrv/cslstyles/aspc.csl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</macro>
<macro name="locators">
<choose>
<if type="article paper-conference personal_communication review-book thesis" match="any">
<if type="article paper-conference personal_communication review-book thesis article-journal" match="any">
<group prefix="">
<group>
<text variable="volume" prefix=", "/>
Expand Down
2 changes: 1 addition & 1 deletion exportsrv/cslstyles/mnras.csl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</macro>
<macro name="locators">
<choose>
<if type="article paper-conference personal_communication review-book thesis" match="any">
<if type="article paper-conference personal_communication review-book thesis article-journal" match="any">
<group prefix="">
<group>
<text variable="volume" prefix=", "/>
Expand Down
2 changes: 1 addition & 1 deletion exportsrv/cslstyles/soph.csl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</macro>
<macro name="locators">
<choose>
<if type="article paper-conference personal_communication review-book thesis" match="any">
<if type="article paper-conference personal_communication review-book thesis article-journal" match="any">
<group prefix="">
<group>
<text variable="volume" prefix=" " font-weight="bold"/>
Expand Down
6 changes: 3 additions & 3 deletions exportsrv/formatter/cslJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def __get_cls_author_list(self, a_doc):
return author_list


def __get_doc_type(self, solr_type):
def __get_doc_type(self, doc_type):
"""
convert document type from solr to csl
:param solr_type:
:param doc_type:
:return:
"""
fields = {'article':'article', 'book':'book', 'inbook':'chapter',
Expand All @@ -50,7 +50,7 @@ def __get_doc_type(self, solr_type):
'proposal':'personal_communication', 'editorial':'personal_communication',
'erratum':'personal_communication', 'obituary':'personal_communication',
'dataset':'software'}
return fields.get(solr_type, '')
return fields.get(doc_type, '')


def __get_doc_pub(self, a_doc):
Expand Down

0 comments on commit 044235b

Please sign in to comment.