Index: trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php |
— | — | @@ -47,6 +47,11 @@ |
48 | 48 | return ($context==SMWQueryProcessor::SPECIAL_PAGE)?SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE; |
49 | 49 | } |
50 | 50 | |
| 51 | + public function getName() { |
| 52 | + wfLoadExtensionMessages('SemanticResultFormats'); |
| 53 | + return wfMsg('srf_printername_icalendar'); |
| 54 | + } |
| 55 | + |
51 | 56 | protected function getResultText($res, $outputmode) { |
52 | 57 | global $smwgIQRunningNumber, $wgSitename, $wgServer, $wgRequest; |
53 | 58 | $result = ''; |
Index: trunk/extensions/SemanticResultFormats/vCard/SRF_vCard.php |
— | — | @@ -32,6 +32,11 @@ |
33 | 33 | return ($context==SMWQueryProcessor::SPECIAL_PAGE)?SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE; |
34 | 34 | } |
35 | 35 | |
| 36 | + public function getName() { |
| 37 | + wfLoadExtensionMessages('SemanticResultFormats'); |
| 38 | + return wfMsg('srf_printername_vcard'); |
| 39 | + } |
| 40 | + |
36 | 41 | protected function getResultText($res, $outputmode) { |
37 | 42 | global $smwgIQRunningNumber, $wgSitename, $wgServer, $wgRequest; |
38 | 43 | $result = ''; |
Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php |
— | — | @@ -47,6 +47,11 @@ |
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
| 51 | + public function getName() { |
| 52 | + wfLoadExtensionMessages('SemanticResultFormats'); |
| 53 | + return wfMsg('srf_printername_' . $this->mFormat); |
| 54 | + } |
| 55 | + |
51 | 56 | protected function getResultText($res, $outputmode) { |
52 | 57 | global $smwgIQRunningNumber, $wgScriptPath; |
53 | 58 | SMWOutputs::requireHeadItem(SMW_HEADER_STYLE); |
Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -18,10 +18,16 @@ |
19 | 19 | 'srfc_gotomonth' => 'Go to month', |
20 | 20 | // format "vCard" |
21 | 21 | 'srf_vcard_link' => 'vCard', |
| 22 | + 'srf_printername_vcard' => 'vCard export', |
22 | 23 | // format "iCalendar" |
23 | 24 | 'srf_icalendar_link' => 'iCalendar', |
| 25 | + 'srf_printername_icalendar' => 'iCalendar export', |
24 | 26 | // format "BibTeX" |
25 | 27 | 'srf_bibtex_link' => 'BibTeX', |
| 28 | + 'srf_printername_bibtex' => 'BibTeX export', |
| 29 | + // format "timeline" |
| 30 | + 'srf_printername_timeline' => 'Timeline', |
| 31 | + 'srf_printername_eventline' => 'Eventline', |
26 | 32 | ); |
27 | 33 | |
28 | 34 | /** Message documentation (Message documentation) |
Index: trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php |
— | — | @@ -45,6 +45,15 @@ |
46 | 46 | } |
47 | 47 | } |
48 | 48 | |
| 49 | + public function getQueryMode($context) { |
| 50 | + return ($context==SMWQueryProcessor::SPECIAL_PAGE)?SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE; |
| 51 | + } |
| 52 | + |
| 53 | + public function getName() { |
| 54 | + wfLoadExtensionMessages('SemanticResultFormats'); |
| 55 | + return wfMsg('srf_printername_bibtex'); |
| 56 | + } |
| 57 | + |
49 | 58 | protected function getResultText($res, $outputmode) { |
50 | 59 | global $smwgIQRunningNumber, $wgSitename, $wgServer, $wgRequest; |
51 | 60 | $result = ''; |
— | — | @@ -276,7 +285,7 @@ |
277 | 286 | foreach ($items as $item) { |
278 | 287 | $result .= $item->text(); |
279 | 288 | } |
280 | | - } else { // just make link to vcard |
| 289 | + } else { // just make link to export |
281 | 290 | if ($this->getSearchLabel($outputmode)) { |
282 | 291 | $label = $this->getSearchLabel($outputmode); |
283 | 292 | } else { |
— | — | @@ -460,5 +469,5 @@ |
461 | 470 | unpublished |
462 | 471 | A document having an author and title, but not formally published. |
463 | 472 | Required fields: author, title, note |
464 | | - Optional fields: month, year, key |
| 473 | + Optional fields: month, year, key |
465 | 474 | */ |