Re: [Koha-devel] [Koha] Adding to the circulation template
Would it be better to add code to Koha so that the list starts with the current year, and gives the next five or ten years in the future? I'll submit a patch if anyone thinks this is a good idea. Kyle http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org ) On Wed, Jan 21, 2009 at 10:52 AM, Owen Leonard <oleonard@myacpl.org> wrote:
How do we get to our circulation.tmpl to be able to see this and add the years? ... <option value="2008"<!-- TMPL_IF NAME="year2008" --> selected="selected"<!-- /TMPL_IF -->>2008</option> </select>
That looks like the right place in the template, but your question makes it sound like you couldn't find circulation.tmpl?
I think you should be able to simply add additional <option>s to the HTML:
<option value="2008"<!-- TMPL_IF NAME="year2008" --> selected="selected"<!-- /TMPL_IF -->>2008</option> <option value="2009"<!-- TMPL_IF NAME="year2009" --> selected="selected"<!-- /TMPL_IF -->>2009</option> <option value="2010"<!-- TMPL_IF NAME="year2010" --> selected="selected"<!-- /TMPL_IF -->>2010</option> <option value="2011"<!-- TMPL_IF NAME="year2011" --> selected="selected"<!-- /TMPL_IF -->>2011</option>
-- Owen
-- Web Developer Athens County Public Libraries http://www.myacpl.org _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Would it be better to add code to Koha so that the list starts with the current year, and gives the next five or ten years in the future?
More recent versions (commits?) correct this problem already. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
Yeah, if you use the js Calendar date picker as in current Koha, the dates/years are effectively unlimited. --joe On Wed, Jan 21, 2009 at 11:44 AM, Owen Leonard <oleonard@myacpl.org> wrote:
Would it be better to add code to Koha so that the list starts with the current year, and gives the next five or ten years in the future?
More recent versions (commits?) correct this problem already.
-- Owen
Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
Joe Atzberger -
Kyle Hall -
Owen Leonard