[Koha-devel] [Koha] Adding to the circulation template

Kyle Hall kyle.m.hall at gmail.com
Wed Jan 21 17:34:23 CET 2009


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 at 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 at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>



More information about the Koha-devel mailing list