Skip to content

Commit

Permalink
#72 allow howpublished and not
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 15, 2024
1 parent ee50bf2 commit 3ac89ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bibcop.pl
Expand Up @@ -39,7 +39,7 @@ package bibcop;
'article' => ['doi', 'year', 'title', 'author', 'journal', 'volume', 'number', 'publisher?', 'pages?'],
'inproceedings' => ['doi', 'booktitle', 'title', 'author', 'year', 'pages?', 'organization?', 'volume?'],
'book' => ['title', 'author', 'year', 'publisher', 'doi?'],
'misc' => ['title', 'author', 'year', 'eprint?', 'archiveprefix?', 'primaryclass?', 'publisher?', 'organization?', 'doi?', 'url?'],
'misc' => ['title', 'author', 'year', 'eprint?', 'archiveprefix?', 'primaryclass?', 'publisher?', 'organization?', 'doi?', 'url?', 'howpublished?', 'note?'],
);

# See https://research.arizona.edu/faq/what-do-you-mean-when-you-say-use-title-case-proposalproject-titles
Expand Down
8 changes: 8 additions & 0 deletions perl-tests/checking.pl
Expand Up @@ -85,6 +85,14 @@ package bibcop;
'doi' => '10.1016/0743-7315(91)90016-3',
'pages' => '22--33'
));
passes((
':type' => 'misc',
'author' => 'Doe, John',
'title' => '{{The Title}}',
'year' => '1984',
'howpublished' => '\\url{https://www.yegor256.com}',
'note' => 'it is a blog post'
));

sub fails {
my (%entry) = @_;
Expand Down

0 comments on commit 3ac89ce

Please sign in to comment.