Permalink
Browse files
Added links to wikidata for updated works
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+2
−2
author_item_oauth.php
-
+1
−1
names_oauth.php
|
@@ -62,7 +62,7 @@ |
|
|
print "Processing requests....\n"; |
|
|
print "<ul>"; |
|
|
foreach ($papers AS $work_qid) { |
|
|
print "<li>$work_qid: "; |
|
|
print "<li>" . wikidata_link($work_qid, $work_qid, '') . ": "; |
|
|
if ( $author_match == 'none' ) { |
|
|
$result = $edit_claims->revert_author( $work_qid, $author_item, "Author Disambiguator revert author for $work_qid" ) ; |
|
|
} else { |
|
@@ -121,7 +121,7 @@ |
|
|
} |
|
|
} |
|
|
$result = $edit_claims->merge_authors( $work_qid, $author_numbers, array(), "Author Disambiguator merge authors for $work_qid" ) ; |
|
|
print "<li>$work_qid: "; |
|
|
print "<li>" . wikidata_link($work_qid, $work_qid, '') . ": "; |
|
|
if ($result) { |
|
|
print "merges done"; |
|
|
} else { |
|
|
|
@@ -106,7 +106,7 @@ |
|
|
continue; |
|
|
} |
|
|
$work_done[$work_qid] = $author_num; |
|
|
print "<li>$work_qid: "; |
|
|
print "<li>" . wikidata_link($work_qid, $work_qid, '') . ": "; |
|
|
$result = $edit_claims->replace_name_with_author($work_qid, $author_num, $author_q, "Author Disambiguator set author for $work_qid"); |
|
|
if ($result) { |
|
|
print "Author added to work"; |
|
|
This comment has been minimized.
Daniel-Mietchen commented onOct 15, 2019
ee65067
Very useful — thanks!