Does anyone know how to add to the circulation template to add years to the "sticky due date" drop down menu? We have the kind with three drop down boxes: day, month, and year. The years stop with 2008. We're using Koha 2.2.3 on Linux with Mysql version 14.7 with Apache. Owen gave me some good information about this (Thanks, Owen!), but I'm not sure how to make the change yet. I have help from our computer technicians, but they are more familiar with Windows. How do we get to our circulation.tmpl to be able to see this and add the years? <select name="year"> <option value="0">Year</option> <option value="2004"<!-- TMPL_IF NAME="year2004" --> selected="selected"<!-- /TMPL_IF -->>2004</option> <option value="2005"<!-- TMPL_IF NAME="year2005" --> selected="selected"<!-- /TMPL_IF -->>2005</option> <option value="2006"<!-- TMPL_IF NAME="year2006" --> selected="selected"<!-- /TMPL_IF -->>2006</option> <option value="2007"<!-- TMPL_IF NAME="year2007" --> selected="selected"<!-- /TMPL_IF -->>2007</option> <option value="2008"<!-- TMPL_IF NAME="year2008" --> selected="selected"<!-- /TMPL_IF -->>2008</option> </select> Thanks! Amber Amber Amland Librarian Mountainview International Christian School Salatiga, Jateng, Indonesia 50722 www.mountainviewics.org library@mountainviewics.org
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
Thanks, yes, we can't find the circulation.tmpl. How do we find it? We're unfamiliar with Linux. We've been trying to find it through the web browser, which is where I back up Koha and repair tables if anything is wrong. Is there a way to do it through the web browser? Or, how do we do it somewhere else? Thanks, Amber -----Original Message----- From: Owen Leonard [mailto:oleonard@myacpl.org] Sent: Wednesday, January 21, 2009 10:53 PM To: library@mountainviewics.org Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Adding to the circulation template
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
On 2009/01/22, at 2:41 PM, Amber M Amland wrote:
Thanks, yes, we can't find the circulation.tmpl. How do we find it? We're unfamiliar with Linux. We've been trying to find it through the web browser, which is where I back up Koha and repair tables if anything is wrong. Is there a way to do it through the web browser? Or, how do we do it somewhere else?
$ find /path/to/you/koha -name circulation.tmpl your journey begins Amber ;)
Thank you to all who have helped us! We are slow learners of Linux though and haven't figured out how to open the circulation.tmpl. We tried $ find /path/to/you/koha -name circulation.tmpl, but that didn't work well. My tech. friend tried a few other commands and found the directory that has circulation.tmpl, but we don't know how to open it yet. We want to add years to our drop down date due box in Koha 2.2.3. Can you help? Thanks! Amber -----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Amber M Amland Sent: Thursday, January 22, 2009 8:42 AM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Adding to the circulation template Thanks, yes, we can't find the circulation.tmpl. How do we find it? We're unfamiliar with Linux. We've been trying to find it through the web browser, which is where I back up Koha and repair tables if anything is wrong. Is there a way to do it through the web browser? Or, how do we do it somewhere else? Thanks, Amber -----Original Message----- From: Owen Leonard [mailto:oleonard@myacpl.org] Sent: Wednesday, January 21, 2009 10:53 PM To: library@mountainviewics.org Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Adding to the circulation template
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
My tech. friend tried a few other commands and found the directory that has circulation.tmpl, but we don't know how to open it yet. We want to add years to our drop down date due box in Koha 2.2.3. Can you help?
I think most people use the "vi" command to open something up for editing, but vi can be pretty hard for a beginner to understand. I often used "pico" when I was starting out, so you can try it. It may or may not be installed on your system. pico /path/to/circulation.tmpl Or, if you navigate to the directory containing circulation.tmpl: cd /path/to/circulation.tmpl pico circulation.tmpl And if you don't have pico, you can try vi: vi /path/to/circulation.tmpl ...But you'll want to Google vi commands and read up before you try it. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
Thanks! We're working on it. This seems more promising. -----Original Message----- From: Owen Leonard [mailto:oleonard@myacpl.org] Sent: Tuesday, February 24, 2009 8:48 PM To: library@mountainviewics.org Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Opening/finding/editing the circulation tmpl
My tech. friend tried a few other commands and found the directory that has circulation.tmpl, but we don't know how to open it yet. We want to add years to our drop down date due box in Koha 2.2.3. Can you help?
I think most people use the "vi" command to open something up for editing, but vi can be pretty hard for a beginner to understand. I often used "pico" when I was starting out, so you can try it. It may or may not be installed on your system. pico /path/to/circulation.tmpl Or, if you navigate to the directory containing circulation.tmpl: cd /path/to/circulation.tmpl pico circulation.tmpl And if you don't have pico, you can try vi: vi /path/to/circulation.tmpl ...But you'll want to Google vi commands and read up before you try it. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
Amber M Amland -
Mason James -
Owen Leonard