SemanticMediaWiki / SemanticCite

Allows to manage citation resources using semantic annotations
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite
Other
24 stars 13 forks source link

Integration with the Cite extension #55

Open kghbln opened 6 years ago

kghbln commented 6 years ago

This is to ask whether it is possible and feasible to have some kind of integration with the Cite extension. Both extensions can exist next to each other on one wiki instance but currently users are facing an either-or-situation on the page level since:

  1. Both extensions create their own automated numbering for the references added to a page, and
  2. Both extensions add their own section for references to the bottom of the page.

This makes a parallel usage or at least parallel usage during the transition from Cite to Semantic Cite a bit more difficult.

mwjames commented 6 years ago

That is going to be difficult since we don't have access to the content during the parse process and after being parsed it is hidden from other content using a strip marker, so off the top of my head I have no idea how to get fetch the loose text component.

extensions create their own automated numbering for the references added to a page

I don't have access to that information therefore cannot adjust any numbering on that part.

Insides are welcome!

kghbln commented 6 years ago

I was afraid of this answer which does not really come as a surprise. So the best approach will be to migrate page by page.

Insides are welcome!

I would have provided them right away but apart form what you have outlined I have no further information.

mwjames commented 6 years ago

Insides are welcome!

Apparently there is something like:

$wgCiteCacheRawReferencesOnParse = true;
$wgCiteStoreReferencesData = true;

With those enabled, one is able to fetch the content via $parserOutput->getExtensionData( \Cite::EXT_DATA_KEY ); from the ParserOutput.

Whether this can be used, and or integrated is a different question.

On 10/2/17, Karsten Hoffmeyer notifications@github.com wrote:

I was afraid of this answer which does not really come as a surprise. So the best approach will be to migrate page by page.

Insides are welcome!

I would have provided them right away but apart form what you have outlined I have no further information.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/SemanticMediaWiki/SemanticCite/issues/55#issuecomment-333558227

kghbln commented 6 years ago

Another idea I had in the meantime is that Semantic Cite could perhaps add its references by generating a <ref> tag per citation thus allowing Cite to pick it up via its <renferences/> tag. At the same time the extra section should not be shown. Something like this could be enabled with an extra configuration setting e.g. scigCiteCompatibilityMode. I do not know how far off this suggestion is when it comes to actually implementing or trying to implement it.