Plugin Directory

Changeset 372006


Ignore:
Timestamp:
04/12/2011 04:16:15 PM (15 years ago)
Author:
knowledgeblog
Message:

Commit for 1.1 release

Location:
kcite/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kcite/trunk/kcite.php

    r358394 r372006  
    44   Plugin URI: http://knowledgeblog.org/kcite-plugin
    55   Description: Add references and bibliography to blogposts
    6    Version: 1.0
     6   Version: 1.1
    77   Author: Simon Cockell, Phillip Lord
    88   Author URI: http://knowledgeblog.org
     
    3131  // which kcite times out. The resolution should advance as time goes on, if
    3232  // transients is switched on.
    33   static $timeout = 3;
     33  static $timeout = 6;
    3434  /**
    3535   * Adds filters and hooks necessary initializiation.
     
    105105
    106106  function bibliography_filter($content) {
    107       return $content . self::get_html_bibliography();
     107      $bib_html = self::get_html_bibliography();
     108      // delete the bib -- or it will appear on subsequent posts
     109      $bibliography = null;
     110
     111      return $content . $bib_html;
    108112  }
    109113
    110114  function get_html_bibliography(){
    111 
     115     
    112116      // check the bib has been set, otherwise there have been no cites.
    113117      if( !isset( self::$bibliography ) ){
     
    134138      // production for a better mechanism:
    135139      //
    136       // print( "BEGIN JSON:\n$json\nEND JSON\n" );
     140      print( "<script>var bib=$json\n</script>\n" );
    137141     
    138142
     
    155159      // build the bib, insert reference, insert bib
    156160      $bibliography = self::build_bibliography($json_a);
    157       $bibliography .= "<p>$json_link</p>";
     161      // $bibliography .= "<p>$json_link</p>";
    158162      return $bibliography;
    159163  }
  • kcite/trunk/readme.txt

    r358392 r372006  
    44Tags: references, citations, doi, crossref, pubmed, bibliography, pmid, res-comms, scholar, academic, science
    55Requires at least: 3.0
    6 Tested up to: 3.1
    7 Stable tag: 1.0
     6Tested up to: 3.1.1
     7Stable tag: 1.1
    88
    99A tool for producing citations and bibliographies in Wordpress posts. Developed for the Knowledgeblog project (http://knowledgeblog.org).
     
    3535== Changelog ==
    3636
     37= 1.1 =
     381. Fix for pages with more than one bibliography.
     39   http://code.google.com/p/knowledgeblog/issues/detail?id=28
     40= 1.0 =
    37411. Full code refactoring from 0.1
    38421. Uses transients API
     
    4145== Upgrade Notice ==
    4246
     47= 1.1 =
     481. none critical bug fix release
    4349= 1.0 =
    44501.0 release is fully refactored for speed and stability.
     
    4854This plugin is copyright Simon Cockell, Newcastle University and is licensed
    4955under GPLv2.
    50 
Note: See TracChangeset for help on using the changeset viewer.