1212import java .util .regex .Pattern ;
1313import java .util .stream .Collectors ;
1414
15+ import org .jabref .logic .cleanup .DoiCleanup ;
1516import org .jabref .logic .cleanup .MoveFieldCleanup ;
1617import org .jabref .logic .formatter .bibtexfields .ClearFormatter ;
1718import org .jabref .logic .importer .EntryBasedParserFetcher ;
@@ -50,7 +51,7 @@ public String getName() {
5051 */
5152 @ Override
5253 public URL getURLForEntry (BibEntry entry ) throws URISyntaxException , MalformedURLException , FetcherException {
53- URIBuilder uriBuilder = new URIBuilder ("http ://www .ams.org/mrlookup" );
54+ URIBuilder uriBuilder = new URIBuilder ("https ://mathscinet .ams.org/mrlookup" );
5455 uriBuilder .addParameter ("format" , "bibtex" );
5556
5657 entry .getFieldOrAlias (FieldName .TITLE ).ifPresent (title -> uriBuilder .addParameter ("ti" , title ));
@@ -63,7 +64,7 @@ public URL getURLForEntry(BibEntry entry) throws URISyntaxException, MalformedUR
6364
6465 @ Override
6566 public URL getURLForQuery (String query ) throws URISyntaxException , MalformedURLException , FetcherException {
66- URIBuilder uriBuilder = new URIBuilder ("http ://www .ams.org/mathscinet/search/publications.html" );
67+ URIBuilder uriBuilder = new URIBuilder ("https ://mathscinet .ams.org/mathscinet/search/publications.html" );
6768 uriBuilder .addParameter ("pg7" , "ALLF" ); // search all fields
6869 uriBuilder .addParameter ("s7" , query ); // query
6970 uriBuilder .addParameter ("r" , "1" ); // start index
@@ -74,7 +75,7 @@ public URL getURLForQuery(String query) throws URISyntaxException, MalformedURLE
7475
7576 @ Override
7677 public URL getURLForID (String identifier ) throws URISyntaxException , MalformedURLException , FetcherException {
77- URIBuilder uriBuilder = new URIBuilder ("http ://www .ams.org/mathscinet/search/publications.html" );
78+ URIBuilder uriBuilder = new URIBuilder ("https ://mathscinet .ams.org/mathscinet/search/publications.html" );
7879 uriBuilder .addParameter ("pg1" , "MR" ); // search MR number
7980 uriBuilder .addParameter ("s1" , identifier ); // identifier
8081 uriBuilder .addParameter ("fmt" , "bibtex" ); // BibTeX format
@@ -107,6 +108,7 @@ public void doPostCleanup(BibEntry entry) {
107108 new MoveFieldCleanup ("fjournal" , FieldName .JOURNAL ).cleanup (entry );
108109 new MoveFieldCleanup ("mrclass" , FieldName .KEYWORDS ).cleanup (entry );
109110 new FieldFormatterCleanup ("mrreviewer" , new ClearFormatter ()).cleanup (entry );
111+ new DoiCleanup ().cleanup (entry );
110112 new FieldFormatterCleanup (FieldName .URL , new ClearFormatter ()).cleanup (entry );
111113
112114 // Remove comments: MathSciNet prepends a <pre> html tag
0 commit comments