Bugzilla – Attachment 25639 Details for
Bug 11847
Display basketgroup closed date at OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11847: Display basketgroup closed date at OPAC
Bug-11847-Display-basketgroup-closed-date-at-OPAC.patch (text/plain), 2.22 KB, created by
Julian Maurice
on 2014-02-26 11:26:30 UTC
(
hide
)
Description:
Bug 11847: Display basketgroup closed date at OPAC
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-02-26 11:26:30 UTC
Size:
2.22 KB
patch
obsolete
>From f1e015b57a7372c986b968423d2641846f46f542 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 27 Jan 2014 09:48:52 +0100 >Subject: [PATCH] Bug 11847: Display basketgroup closed date at OPAC > >under "Acquisition Details" tab, on detail page. >--- > koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc | 4 ++++ > opac/opac-detail.pl | 8 ++++++++ > 2 files changed, 12 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >index b014caa..5107d86 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >@@ -1,4 +1,5 @@ > [% USE AuthorisedValues %] >+[% USE KohaDates %] > > [%#- > This include takes two parameters: an item structure >@@ -48,6 +49,9 @@ not use an API to fetch items that populates item.datedue. > [% END %] > [% ELSIF item.on_order %] > On order >+ [% IF item.order_date %] >+ since [% item.order_date |$KohaDates %] >+ [% END %] > [% ELSE %] > Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] > [% END %] >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 2620ac9..66483d4 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -1036,9 +1036,17 @@ if ( C4::Context->preference('OPACAcquisitionDetails') ) { > my $total_quantity; > for my $order ( @$orders ) { > if ( C4::Context->preference('AcqCreateItem') eq 'ordering' ) { >+ my $basket = C4::Acquisition::GetBasket($order->{basketno}); >+ my $basketgroup; >+ if ($basket->{basketgroupid}) { >+ $basketgroup = C4::Acquisition::GetBasketgroup($basket->{basketgroupid}); >+ } > for my $itemnumber ( C4::Acquisition::GetItemnumbersFromOrder( $order->{ordernumber} ) ) { > my $item = C4::Items::GetItem( $itemnumber ); > $item->{on_order} = 1; >+ if ($basketgroup and $basketgroup->{closeddate}) { >+ $item->{order_date} = $basketgroup->{closeddate}; >+ } > push @items, _get_items_infos( $item ); > } > } >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11847
:
25639
|
30445
|
30480
|
32079
|
32088
|
36922
|
36923