Can we combine OPAC Item Status and Due Date into one column
Dear all, This maybe a strange question, but I'm wondering whether there is anyway we can combine OPAC Item Status and Due Date into one column (and remove or hide Due Date column from displaying)? The Due Date which appears when the item status is at "Checked out" will be displayed like: Checked out (Due: 13/5/2015) Just curious ... Iming ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Da... Sent from the Koha-general mailing list archive at Nabble.com.
I think you asked for Item details page. If that , solution is here... and the right example is this link I did it for you. http://103.28.122.100/cgi-bin/koha/opac-detail.pl?biblionumber=2356 *How to ::* Go to Your opac-detail.tt file find " <th id="item_datedue" class="date_due">Date due</th>" Remove this. Now find : <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %] add the following with this : [% IF (ITEM_RESULT.datedue) %] Due date is : [% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %] [% END %] so code is like that : <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %] [% IF (ITEM_RESULT.datedue) %] Due date is : [% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %] [% END %]</td> Now remove this line : <td class="date_due">...... [% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %] .... I forgot the actual code of this line. but it will be like that. You will find the line under : [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %] Now Cheers On Tue, May 12, 2015 at 5:47 PM, Iming Chan <imingchan@yahoo.com.au> wrote:
Dear all,
This maybe a strange question, but I'm wondering whether there is anyway we can combine OPAC Item Status and Due Date into one column (and remove or hide Due Date column from displaying)?
The Due Date which appears when the item status is at "Checked out" will be displayed like:
Checked out (Due: 13/5/2015)
Just curious ...
Iming
----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com
Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Da... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- *Suzon Das* B.A., M.A. (DU) in Information Sc. and Library Management, .NET and Android Developer Project Manager in SBAU Library
Thank you for your reply. Much appreciated. Iming ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Da... Sent from the Koha-general mailing list archive at Nabble.com.
Hello, On Wed, May 13, 2015 at 7:17 AM, Iming Chan <imingchan@yahoo.com.au> wrote: <snipped>
The Due Date which appears when the item status is at "Checked out" will be displayed like:
Checked out (Due: 13/5/2015)
You could try putting in the following jquery into opacuserjs (i did it on a koha 'master' instance) $(document).ready(function(){ $('tr .status:contains("Checked out")').each(function() { $(this).css('white-space', 'nowrap'); var status = $(this); var datedue = status.next(); status.html(status.html() + '(Due: ' + datedue.html() + ')'); $('span', this).css('display', 'inline-block'); }); $('#item_datedue').hide(); $('tr .date_due').hide(); }); Basically, this concats the contents of the two <td>s into one, while adding a bit of formatting i.e. white-space: nowrap to the td and having the two <span> elements displayed as inline-blocks. then hides the item_datedue <th> and date_due <td> hope this helps -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
Hi Indranil, Thank you for your reply. I have managed to hide the Due Date column, but the due date information is not showing with the Item Status (like the example provided earlier). Unforotunately I'm not so familiar with jquery, so could you kindly look at the script when you get a chance. Thank you so much for your help. Kind regards, Iming ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Da... Sent from the Koha-general mailing list archive at Nabble.com.
Hi On Wed, May 13, 2015 at 7:04 PM, Iming Chan <imingchan@yahoo.com.au> wrote: <snipped>
Unforotunately I'm not so familiar with jquery, so could you kindly look at the script when you get a chance.
It is working fine for me (have a look here http://mietschool.l2c2.co.in/cgi-bin/koha/opac-detail.pl?biblionumber=1) this is on Koha 3.18.5 -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
I think changing the perl code helps you better On Wed, May 13, 2015 at 7:09 AM, Indranil Das Gupta <indradg@gmail.com> wrote:
Hi
On Wed, May 13, 2015 at 7:04 PM, Iming Chan <imingchan@yahoo.com.au> wrote: <snipped>
Unforotunately I'm not so familiar with jquery, so could you kindly look at the script when you get a chance.
It is working fine for me (have a look here http://mietschool.l2c2.co.in/cgi-bin/koha/opac-detail.pl?biblionumber=1)
this is on Koha 3.18.5
-- Indranil Das Gupta
Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards.
For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- *Suzon Das* B.A., M.A. (DU) in Information Sc. and Library Management, .NET and Android Developer Project Manager in SBAU Library
On Thu, May 14, 2015 at 12:10 PM, Suzon Das <suzonduislm52@gmail.com> wrote:
I think changing the perl code helps you better
On Wed, May 13, 2015 at 7:09 AM, Indranil Das Gupta <indradg@gmail.com> wrote:
Hi
On Wed, May 13, 2015 at 7:04 PM, Iming Chan <imingchan@yahoo.com.au> wrote: <snipped>
Unforotunately I'm not so familiar with jquery, so could you kindly look at the script when you get a chance.
It is working fine for me (have a look here http://mietschool.l2c2.co.in/cgi-bin/koha/opac-detail.pl?biblionumber=1)
this is on Koha 3.18.5
-- Indranil Das Gupta
Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards.
For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
--
Suzon Das B.A., M.A. (DU) in Information Sc. and Library Management, .NET and Android Developer
Project Manager in SBAU Library
-- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
Hi Suzon, On Thu, May 14, 2015 at 12:10 PM, Suzon Das <suzonduislm52@gmail.com> wrote:
I think changing the perl code helps you better
You may want to see this reply from Chris Cormack - https://lists.katipo.co.nz/public/koha/2013-January/035338.html about best practises for changing the UI in Koha, without breaking things all over and creating maintenance headaches. -idg -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
Hi Indranil, It is working now. I had to remove another OPAC jquery where I renamed item status "Checked out" to "On loan". Thank you so much for your help. Much appreciated. Regards, Iming ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Da... Sent from the Koha-general mailing list archive at Nabble.com.
participants (3)
-
Iming Chan -
Indranil Das Gupta -
Suzon Das