Plugin Directory

Changeset 2479962


Ignore:
Timestamp:
02/23/2021 03:37:29 PM (5 years ago)
Author:
frier
Message:

2021-02-23 update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • books-papers/trunk/classes/bridge.php

    r2469505 r2479962  
    12551255        global $wpdb;
    12561256        //compatibility options
    1257         if (get_option('bnpp_comp_pub')) {
     1257        if (get_option('bnpp_comp_auth')) {
    12581258        if(!get_option('bnpp_drop_db_tables'))
    12591259        {
     
    30123012        update_option('bnpp_previous_db_prefix',get_option('bnpp_custom_db_prefix'));
    30133013    }
     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    }
    30143030    //drops plugin db tables
    30153031    function dropTables($prefix)
Note: See TracChangeset for help on using the changeset viewer.