From: Amelia I. <ame...@gm...> - 2013-09-14 18:03:39
|
It seems as though the issue arises when you run the data through a template. I am modifying a bibliography extension to return results with semantic mark up, and if I write the data directly using {{#set, there's no problem with partial dates. However, if I put the data into a structure that is processed by a template, I get the current date instead. On Fri, Sep 13, 2013 at 11:26 PM, Ralf Hagenbuck <r_h...@ar...>wrote: > Hi, > > I watched that "feature" as well. Leaving a date field free results in a > current Date/time inclusion in the property. On the page itself there is > nothing stored. > I used to enter a "-" within those fields, but that works on a textinput > only and results in an notice due to the wrong datatype. > > Example: > Here is a page without a start and end date. No Data for "Beginnt am" and > "Endet am" for Chrismas [1] within the page. > Here is the "data view" to it. [2]. The Date/Time while storing the page > is stored. > > > [1] https://aquanautweb.de/Testwiki/index.php?title=Chrismas_%28Termin%29 > > [2] > https://aquanautweb.de/Testwiki/index.php?title=Spezial:Durchsuchen/Chrismas_%28Termin%29 > > Ralf > > ----- Original Nachricht ---- > Von: Yaron Koren <ya...@wi...> > An: girlwithglasses <ame...@gm...> > Datum: 13.09.2013 17:58 > Betreff: Re: [Semediawiki-user] Partial date input in Semantic Forms/SMW > > > Hi Amelia, > > > > I agree that the current handling of dates is not ideal, but I haven't > > looked into it in part because I haven't gotten any feedback on the > issue. > > If you want to change your local handling, I believe all the relevant > code > > is in the formHTML() function in the file /includes/SF_FormPrinter.php. > > However, leaving the date field blank shouldn't ever set the current date > > in the resulting page, unless you have something like "default=now" in > the > > form definition. > > > > -Yaron > > > > > > On Fri, Sep 13, 2013 at 11:13 AM, girlwithglasses > > <ame...@gm...>wrote: > > > > > Hi Yaron, > > > > > > Was there ever any resolution on this issue? I am running into the same > > > problem with specifying partial dates, and additionally, if I don't > have > > > any > > > date information, the field automatically gets incorrectly filled with > > the > > > current date. > > > > > > There are a couple of workarounds--e.g. change the property type, or > > enter > > > partial dates by hand--but they somewhat negate one of the main reasons > > for > > > using SF, which is to give users a nice interface for adding and > updating > > > data. > > > > > > I had a look in the SF code and can alter how the date input displayed > on > > > the form, but that doesn't affect the processing of the form. Where > does > > > the > > > parsing of form data occur? I would prefer to disable whatever code it > is > > > that inserts the current date if there is no date set. > > > > > > Thanks a lot! > > > Amelia. > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://wikimedia.7.x6.nabble.com/Re-Partial-date-input-in-Semantic-Forms-SMW > > -tp4993344p5013215.html > > > Sent from the Semantic Mediawiki - User mailing list archive at > > Nabble.com. > > > > > > > > > > > > ---------------------------------------------------------------------------- > > -- > > > How ServiceNow helps IT people transform IT departments: > > > 1. Consolidate legacy IT systems to a single system of record for IT > > > 2. Standardize and globalize service processes across IT > > > 3. Implement zero-touch automation to replace manual, redundant tasks > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Semediawiki-user mailing list > > > Sem...@li... > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > -- > > WikiWorks · MediaWiki Consulting · http://wikiworks.com > > > ---------------------------------------------------------------------------- > > -- > > How ServiceNow helps IT people transform IT departments: > > 1. Consolidate legacy IT systems to a single system of record for IT > > 2. Standardize and globalize service processes across IT > > 3. Implement zero-touch automation to replace manual, redundant tasks > > > http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > -- Amelia Ireland GMOD Community Support http://gmod.org || @gmodproject |