Bugzilla – Attachment 6568 Details for
Bug 7278
In the items table, make items.materials of type text, and show its contents at circulation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7278 : Additional Materials
Bug-7278--Additional-Materials.patch (text/plain), 3.11 KB, created by
Chris Cormack
on 2011-12-04 20:23:19 UTC
(
hide
)
Description:
Bug 7278 : Additional Materials
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-04 20:23:19 UTC
Size:
3.11 KB
patch
obsolete
>From 77057c8747ed1948abd9935458d21ac2a8a5c082 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Thu, 1 Dec 2011 14:19:44 +1300 >Subject: [PATCH] Bug 7278 : Additional Materials > >Part 2: This patch shows the message at checkout and checkin > >How to test: >* Add a note in cataloguing >* Check it displays at checkout and checkin >* Check items without a note don't display anything >--- > circ/circulation.pl | 1 + > circ/returns.pl | 1 + > .../prog/en/modules/circ/circulation.tt | 7 +++++++ > .../intranet-tmpl/prog/en/modules/circ/returns.tt | 6 ++++++ > 4 files changed, 15 insertions(+), 0 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index fa043dd..b6bc700 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -296,6 +296,7 @@ if ($barcode) { > unless($issueconfirmed){ > # Get the item title for more information > my $getmessageiteminfo = GetBiblioFromItemNumber(undef,$barcode); >+ $template->{VARS}->{'additional_materials'} = $getmessageiteminfo->{'materials'}; > $template->param( itemhomebranch => $getmessageiteminfo->{'homebranch'} ); > > # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed. >diff --git a/circ/returns.pl b/circ/returns.pl >index 98d310e..167bc5f 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -238,6 +238,7 @@ if ($barcode) { > itemtype => $biblio->{'itemtype'}, > ccode => $biblio->{'ccode'}, > itembiblionumber => $biblio->{'biblionumber'}, >+ additional_materials => $biblio->{'materials'} > ); > > my %input = ( >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 5627109..9f856ac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -226,6 +226,13 @@ function refocus(calendar) { > </div> > > [% IF ( dateexpiry ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %] >+ >+[% IF additional_materials %] >+ <div id="materials" class="dialog message">Note about the accompanying materials: <br /> >+ [% additional_materials %] >+ </div> >+[% END %] >+ > [% IF ( NEEDSCONFIRMATION ) %] > <div class="yui-g"> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 70367ae..507b8e8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -54,6 +54,12 @@ function Dopop(link) { > > <div class="yui-g"> > >+[% IF additional_materials %] >+ <div class="dialog message" id="materials">Note about the accompanying materials: <br /> >+ [% additional_materials %] >+ </div> >+[% END %] >+ > [% IF ( collectionItemNeedsTransferred ) %] > <div class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div> > [% END %] >-- >1.7.5.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 7278
:
6480
|
6481
|
6568
|
6881
|
6882
|
6883
|
6885