Analysing the code from RefBase "Trunk" and "Bleeding Edge" branch, I noticed there was an error when trying to create a RefBase reference on DokuWiki with the message:
"Cite error: Invalid <ref> tag; invalid names, e.g. too many" </ref>
It happens because RefBase Extension tries to create a RefBase reference starting with a number, and it's not allowed on MediaWiki anymore. But it's easy to fix:
Replace the line 43 of /contrib/mediawiki/include/RefBase.Renderer.Cite.php that contains:
I noticed that RefBase was not showing my ref, so I noticed that on contrib/mediawiki/include/RefBase.CitationCreator.php file, line 75, it was using a fixed RefBase Serial Key instead of using the Serial Key used on MediaWiki page, probably for debug purposes, but it was not updated into the original code after release, so I replace line 75 content:
"record=" . "27711"//$entry['serial'] .
It must be replaced by:
"record=" . $entry['serial'] .
I would like to commit it myself with the code, but I'm not sure how to do it. If anyone could commit these fixes to the main code, thanks!
Analysing the code from RefBase "Trunk" and "Bleeding Edge" branch, I noticed there was an error when trying to create a RefBase reference on DokuWiki with the message:
"Cite error: Invalid <ref> tag; invalid names, e.g. too many" </ref>
It happens because RefBase Extension tries to create a RefBase reference starting with a number, and it's not allowed on MediaWiki anymore. But it's easy to fix:
Replace the line 43 of /contrib/mediawiki/include/RefBase.Renderer.Cite.php that contains:
$cite .= "{{#tag:ref|$citation|name=$citekey}}";
Replace it with:
$cite .= "{{#tag:ref|$citation|name=refbase$citekey}}";
I noticed that RefBase was not showing my ref, so I noticed that on contrib/mediawiki/include/RefBase.CitationCreator.php file, line 75, it was using a fixed RefBase Serial Key instead of using the Serial Key used on MediaWiki page, probably for debug purposes, but it was not updated into the original code after release, so I replace line 75 content:
"record=" . "27711"//$entry['serial'] .
It must be replaced by:
"record=" . $entry['serial'] .
I would like to commit it myself with the code, but I'm not sure how to do it. If anyone could commit these fixes to the main code, thanks!