Changeset 372006
- Timestamp:
- 04/12/2011 04:16:15 PM (15 years ago)
- Location:
- kcite/trunk
- Files:
-
- 2 edited
-
kcite.php (modified) (5 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kcite/trunk/kcite.php
r358394 r372006 4 4 Plugin URI: http://knowledgeblog.org/kcite-plugin 5 5 Description: Add references and bibliography to blogposts 6 Version: 1. 06 Version: 1.1 7 7 Author: Simon Cockell, Phillip Lord 8 8 Author URI: http://knowledgeblog.org … … 31 31 // which kcite times out. The resolution should advance as time goes on, if 32 32 // transients is switched on. 33 static $timeout = 3;33 static $timeout = 6; 34 34 /** 35 35 * Adds filters and hooks necessary initializiation. … … 105 105 106 106 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; 108 112 } 109 113 110 114 function get_html_bibliography(){ 111 115 112 116 // check the bib has been set, otherwise there have been no cites. 113 117 if( !isset( self::$bibliography ) ){ … … 134 138 // production for a better mechanism: 135 139 // 136 // print( "BEGIN JSON:\n$json\nEND JSON\n" );140 print( "<script>var bib=$json\n</script>\n" ); 137 141 138 142 … … 155 159 // build the bib, insert reference, insert bib 156 160 $bibliography = self::build_bibliography($json_a); 157 $bibliography .= "<p>$json_link</p>";161 // $bibliography .= "<p>$json_link</p>"; 158 162 return $bibliography; 159 163 } -
kcite/trunk/readme.txt
r358392 r372006 4 4 Tags: references, citations, doi, crossref, pubmed, bibliography, pmid, res-comms, scholar, academic, science 5 5 Requires at least: 3.0 6 Tested up to: 3.1 7 Stable tag: 1. 06 Tested up to: 3.1.1 7 Stable tag: 1.1 8 8 9 9 A tool for producing citations and bibliographies in Wordpress posts. Developed for the Knowledgeblog project (http://knowledgeblog.org). … … 35 35 == Changelog == 36 36 37 = 1.1 = 38 1. Fix for pages with more than one bibliography. 39 http://code.google.com/p/knowledgeblog/issues/detail?id=28 40 = 1.0 = 37 41 1. Full code refactoring from 0.1 38 42 1. Uses transients API … … 41 45 == Upgrade Notice == 42 46 47 = 1.1 = 48 1. none critical bug fix release 43 49 = 1.0 = 44 50 1.0 release is fully refactored for speed and stability. … … 48 54 This plugin is copyright Simon Cockell, Newcastle University and is licensed 49 55 under GPLv2. 50
Note: See TracChangeset
for help on using the changeset viewer.