[Koha] Can we combine OPAC Item Status and Due Date into one column

Suzon Das suzonduislm52 at gmail.com
Wed May 13 22:20:02 NZST 2015


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 at 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 at translib.com
> --
> View this message in context:
> http://koha.1045719.n5.nabble.com/Can-we-combine-OPAC-Item-Status-and-Due-Date-into-one-column-tp5839843.html
> Sent from the Koha-general mailing list archive at Nabble.com.
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at 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


More information about the Koha mailing list