diff --git a/bibcop.pl b/bibcop.pl index 6ed9f11..8879435 100755 --- a/bibcop.pl +++ b/bibcop.pl @@ -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 diff --git a/perl-tests/checking.pl b/perl-tests/checking.pl index ad06ddc..2a9c8d0 100755 --- a/perl-tests/checking.pl +++ b/perl-tests/checking.pl @@ -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) = @_;