From: Caerolus <cae...@gm...> - 2008-06-08 02:06:58
|
Hello everybody, let's see if someone can help me out here. I've got a category Paper, Author, Volume and Journal. (authors write a paper which is published in a volume of the journal). So, in a page for a paper, I write for example: [[author::Peter]], "{{PAGENAME}}", [[journal::Journal on Wikis]], [[volume::Journal on Wikis, vol. 18|vol. 18]]. That way, I can easily list the papers by an author: {{#ask: [[Category:Paper]] [[author::{{PAGENAME}}]] }} Here is the problem. Note that the page for the journal is "Journal on Wikis", and for the particular volume is "Journal on Wikis, vol. 18". The thing is that I'd need to list the journal and volume as well in the above query. However, if I just add |?journal |?volume to the query, the result would be something like (using a template): Peter, "Title of the paper", Journal on Wikis, Journal on Wikis, vol. 18. That is, it repeats the "Journal on Wikis" part when displaying the volume. To solve this, I thought about adding a property to the volume's page: [[volume number::18]] and then access that property from the first query. Well, I don't know how to do that :-) Is there any way to access the properties of a result item? Or if anybody has a better approach, I'm all ears. I also thought about letting the volume property on the paper page be just the number (which makes more sense), that is: [[volume::18]]. But then I don't know how to make it point to the page "Journal on Wikis, vol. 18". It would point to the page "18", which obviously is not enough as there are different journals with volume number 18. Don't know what to do. Any help? Thank you! Julián Urbano Virginia Tech, National Capital Region Department of Computer Science 7054 Haycock Rd. Room 303 Falls Church, VA 22043 Tel: +1 703-538-8371 http://www.nvc.cs.vt.edu/~jurbano |