dwp-forge / refnotes

4 stars 6 forks source link

Enable APA style inline notes #16

Closed dwp-forge closed 9 years ago

dwp-forge commented 9 years ago
This plugin is absolutely amazing - I've been look all over for a way to integrate my
bibtex catalogue and all my notes with my wiki. I changed the source a tiny bit so
that the references always link back to the page where the reference was found (the
wiki page), because I want to keep notes on that reference there. 

The one thing that would really make my day would be if instead of 1) etc, you could
actually insert an APA style citation. Like Hoadley & Morrison (1999). It doesn't have
to be perfect, or have lot's of different formatting, edge cases etc, something simple
would already be amazing. 

I tried doing this in the code, but it seems to me that the rendering of the notes
in the text, and of the refnote section is completely separate - at the time it renders
the notes in the text, it doesn't yet know what they refer to, so this would require
a rewrite?

Original issue reported on code.google.com by shaklev on 2011-04-30 01:02:44

dwp-forge commented 9 years ago
Some time ago I started working on this[1]. The basic idea is to add some semantics
into the note definition, and use that meta-info to render both the notes and the references.
It does require some rework but the changes are not too drastic. The first part has
been already released, and you can define the notes in the reference database[2] using
"fields". As for the reference rendering, it's still work in progress.

Unfortunately, currently I don't have time to work on hobby projects, and I don't expect
that situation will change the coming months. I hope I will be able to get back to
this in Autumn.

[1] http://code.google.com/p/dwp-forge/source/browse/#svn%2Fbranches%2Frefnotes-structured_references
[2] http://www.dokuwiki.org/plugin:refnotes:refdb

Original issue reported on code.google.com by dwp-forge on 2011-05-04 08:15:46

dwp-forge commented 9 years ago
Thank you for getting back to me.

I'd like to take a small stab at this. I have one question you might be able to help
me with

In the function that I modified, renderTitle on line 858 in syntax/references.php 

    private function renderTitle($field) {
        $text = $field['title'] . '.';

            $text = '[[' . $field['note-name'] . '|' . $text . ']]';

        return $text;
    }

I have access to information about the object I am rendering, in the $field object.
As far as I understand, the in-text citation markers are rendered in helper.php, renderNotes
on line 193. Is there a way for me to access the object I am rendering in this context
as well? If it is, I think I can cobble something together, if not, and it requires
a bit rewrite, I guess it's kind of hopeless.

Thanks!

Original issue reported on code.google.com by shaklev on 2011-05-04 15:19:52

dwp-forge commented 9 years ago
Sorry, but it has been almost a year since I touched that code, and I don't remember
the details anymore.

The place you hacked is part of the reference database parser/renderer. This thing
is a separate component, which is rather disconnected from the "main" parser/renderer
(the one that works on pages that use references/notes). I believe that even in the
development branch the main parser/renderer treats the notes as raw text blocks. There
was only some preliminary work to support the fields, but there is still lots to do.

Original issue reported on code.google.com by dwp-forge on 2011-05-04 16:13:18

dwp-forge commented 9 years ago
Implemented in r461.

Original issue reported on code.google.com by dwp-forge on 2012-05-13 11:15:14

dwp-forge commented 9 years ago
I realize this dates back by a few years - yet this tweek is exactly what would round
up this amazing plugin for me!
I'm aiming to inserting a like to the note page in between the backlink and the actual
reference in the bottom of the page - but after digging through code for ages, i can't
get it do work the way i want it to... is there any chance you can give me a hand?
dennis.kueppers [at] gmail.com

Original issue reported on code.google.com by dennis.kueppers on 2015-02-16 19:22:14

dwp-forge commented 9 years ago
Sorry, from your description I cannot figure out what are you trying to do. Do you have
an example of something similar somewhere on the Net?

Original issue reported on code.google.com by dwp-forge on 2015-02-16 21:27:55