[07:47:17] Hi anyone present who knows about Semantic Forms [07:58:13] I do not find solution to autopopulate "values" fleld from variable nor array. I try to format variable as list using ask query, and the display list as selectable values in form [10:37:07] New patchset: Jeroen De Dauw; "fix name of test class" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25620 [10:38:11] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25620 [12:12:08] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25018 [12:12:08] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/24773 [13:41:43] New patchset: Nischayn22; "New Validator classes for Geo shapes" [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/25632 [14:47:36] New patchset: MathiasLidal; "hasTitle/hasText must also check for null, as this is what you get when adding map locations without any title or text. This also makes the label parameter work properly as a default title." [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/25634 [15:14:04] is there a way to "autocopy" data from #ask to the clipboard? E.g. putting a link below a table saying "click here to copy the results to your clipboard"? [15:15:49] sven^ - I don't think so... is there even a way to programatically copy something to the user's clipboard? [15:16:10] I think JS can do it. I am not quite sure [15:17:51] ha: http://www.mediawiki.org/wiki/Extension:CopyLink [15:33:43] New patchset: Mwjames; "Split resource definitions into separate file" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/25639 [15:38:44] sven^ - oh, interesting! [15:38:52] window.clipboardData.setData(). [15:39:01] Well, it's possible in theory, then. [15:39:27] sven^ - in what format would you want the data to show up in the clipboard - CSV? [15:44:39] yep. I created an addressbook using SF. So sometimes I need to write emails to whole groups of people and want to copy by clicking so you can directly paste in your email's TO field [16:08:14] New patchset: Yaron Koren; "Removed GlobalFunctions.php, moved its contents to SemanticForms.php" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/25641 [16:09:14] sven^ - would CSV work for that? [16:09:41] ...or would you end up with just one address per line, with no commas between them? [16:10:18] Change merged: Yaron Koren; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/25641 [16:20:42] Yaron, just tried CSV and it only offers a download. I use a template with {{#if: {{{2}}} | {{{2}}} | {{{1}}} }}, [16:20:46] seems to work quite well [16:21:54] sven^ - right, CSV is download-only. [16:22:08] But this is a hypothetical discussion, anyway. [16:25:56] sven^ - I guess a "copy-to-clipboard" thing would have to allow arbitrary formats, as opposed to being one. [16:35:07] k, that copylink thing doesn't work anyways... I'll just leave it with the list and users can press ctrl + c themselves [17:16:59] what wrong about this code: {{#if:{{{2|}}}| {{#arraymap:{{{2}}}|,|x|x|, }} | {{{1}}}}}, ? [17:32:23] New review: Jeroen De Dauw; "Overall this looks good to me, needs some cleanup before merge in master though. Or do you first wan..." [mediawiki/extensions/Maps] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/25632 [17:35:49] I am kind of lost here. I reduced it to the example from the manual: {{#arraymap:{{{2|}}}|,|x|x}} [17:36:12] that just stays empty for a page with: |email=foo@bar.com, bar@foo.com [17:38:12] New patchset: Mwjames; "A general SMW/SRF Ajax printer class (DO NOT MERGE)" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/25652 [17:42:10] Change merged: Jeroen De Dauw; [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/25634 [17:48:52] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/25639 [17:54:50] sven^ - shouldn't it be "{{{email|}}}" instead of "{{{2|}}}"? [17:55:57] it's in a Template and i use this: | ?Email | format=template | template=KontaktCSV }} [17:57:06] sven^ - I don't know; a lot of things could go wrong. If you want help, you could try pastebin'ing all the relevant code. [17:59:26] Yaron: http://pastebin.com/eWutZxBg [17:59:31] did I forget anything? [18:01:08] sven^ - well this isn't exactly an error, but I think the "Kontakt" template should be using #arraymap to correctly set the "email" property. [18:01:51] ah... damn :P [18:03:15] So maybe you don't actually need to solve that other problem. :) [18:04:59] maybe that is the other problem [18:10:36] New patchset: Mwjames; "A general SMW/SRF Ajax printer class (DO NOT MERGE)" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/25652 [18:15:11] New review: Jeroen De Dauw; "Do you also have an example of how exactly this would be used?" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/25652 [18:15:26] New review: Mwjames; "Patch#2 works with the SRF example printer" [mediawiki/extensions/SemanticMediaWiki] (master); V: 1 C: 0; - https://gerrit.wikimedia.org/r/25652 [18:27:19] Yaron: {{#arraymap:{{{email|}}}|,|x|{{#set:email=x}}}} right? [18:28:12] Yeah, that would work... although it'll show some unwanted commas. [18:28:33] You can set properties at the same that you display them, using the "[[...]]" notation... [18:28:57] yeah, I know [18:29:03] but it usually creates links [18:30:01] hmm.. when I use the "show attributes" link on that page it still lists "Email" as not correctly given attribute [18:31:11] SMW is so hard to debug -.- [19:07:09] New review: Jeroen De Dauw; "I don't like what's currently done in SRF_SlideShow - it's fetching HTML that's generated in a stati..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/25652 [19:55:22] What exactly do I have to do to make #ask return nothing when asking for a date type field? I got this in the display template: | {{#if: {{{13|}}} | {{{13|}}} | }} but it still displays the current date for every found page where that field is just empty [19:58:27] New patchset: Mwjames; "A working example for the AjaxPrinter class / SMWAPI" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25698 [20:03:47] New patchset: Mwjames; "A working example for the AjaxPrinter class / SMWAPI" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25698 [20:12:22] New review: Mwjames; ">> Do you also have an example of how exactly this would be used?" [mediawiki/extensions/SemanticMediaWiki] (master); V: 1 C: 0; - https://gerrit.wikimedia.org/r/25652 [20:26:54] New patchset: Mwjames; "A working example for the AjaxPrinter class / SMWAPI" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/25698 [21:17:54] New review: Mwjames; "Open for two weeks now, tested it again and it seems fine for all previous scenarios aside from the ..." [mediawiki/extensions/SemanticResultFormats] (master); V: 1 C: 2; - https://gerrit.wikimedia.org/r/24114 [21:17:54] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/24114