Changeset 2479962
- Timestamp:
- 02/23/2021 03:37:29 PM (5 years ago)
- File:
-
- 1 edited
-
books-papers/trunk/classes/bridge.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
books-papers/trunk/classes/bridge.php
r2469505 r2479962 1255 1255 global $wpdb; 1256 1256 //compatibility options 1257 if (get_option('bnpp_comp_ pub')) {1257 if (get_option('bnpp_comp_auth')) { 1258 1258 if(!get_option('bnpp_drop_db_tables')) 1259 1259 { … … 3012 3012 update_option('bnpp_previous_db_prefix',get_option('bnpp_custom_db_prefix')); 3013 3013 } 3014 //request abstract 3015 function requestAbstractByDOI($doi) 3016 { 3017 $url = "http://api.crossref.org/works/" . $doi . "/transform/application/vnd.crossref.unixsd+xml"; 3018 $data = $this->getWebPage($url); 3019 $page = $data['content']; 3020 if($page != "Not Found") 3021 { 3022 $page = str_replace("\n", '', $page); 3023 $page = str_replace("'", "\\'", $page); 3024 return $page; 3025 } else 3026 { 3027 return 'Document Not Found'; 3028 } 3029 } 3014 3030 //drops plugin db tables 3015 3031 function dropTables($prefix)
Note: See TracChangeset
for help on using the changeset viewer.