Bugzilla – Attachment 106167 Details for
Bug 25798
Copyright year to Holds to pull report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25798: Add copyright year to "Holds to pull" report
Bug-25798-Add-copyright-year-to-Holds-to-pull-repo.patch (text/plain), 2.45 KB, created by
Peter Vashchuk
on 2020-06-22 14:01:46 UTC
(
hide
)
Description:
Bug 25798: Add copyright year to "Holds to pull" report
Filename:
MIME Type:
Creator:
Peter Vashchuk
Created:
2020-06-22 14:01:46 UTC
Size:
2.45 KB
patch
obsolete
>From 03e945d7ed30035aa2e55aa1bbe66c85a740b192 Mon Sep 17 00:00:00 2001 >From: Petro Vashchuk <stalkernoid@gmail.com> >Date: Mon, 22 Jun 2020 17:00:43 +0300 >Subject: [PATCH] Bug 25798: Add copyright year to "Holds to pull" report > >Display copyright year (publication year) of book >together with title in "Holds to pull" report. > >Copyright year is fetched from biblio -table as "copyrightyear". > >1. Place a hold on book with known copyright year. >2. Go to /cgi-bin/koha/circ/pendingreserves.pl and check the "title" >table of that book that you placed hold on. >3. Observe that there's no information about publication year in that >field. >4. Apply patch. >5. Repeat step 2. >6. Observe that copyright year (publication year) of book appeared >in the title table after book's title and author. > >Mentored-by: Andrew Nugged <nugged@gmail.com> >--- > circ/pendingreserves.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 1 + > 2 files changed, 3 insertions(+) > >diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl >index 7f2062942a..8dbabe3ed6 100755 >--- a/circ/pendingreserves.pl >+++ b/circ/pendingreserves.pl >@@ -201,6 +201,7 @@ my $strsth = > GROUP_CONCAT(DISTINCT items.copynumber > ORDER BY items.itemnumber SEPARATOR '|') l_copynumber, > biblio.title, >+ biblio.copyrightdate, > biblio.subtitle, > biblio.medium, > biblio.part_number, >@@ -271,6 +272,7 @@ while ( my $data = $sth->fetchrow_hashref ) { > holdingbranch => $data->{holdingbranch}, > homebranch => $data->{homebranch}, > itemnumber => $data->{itemnumber}, >+ copyrightdate => $data->{copyrightdate}, > } > ); > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 08193e0179..9dec4f5c74 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -80,6 +80,7 @@ > [% INCLUDE 'biblio-title.inc' biblio=reserveloo %] > </a></p> > [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author | html %]</p>[% END %] >+ [% IF ( reserveloo.copyrightdate ) %]<p>[% reserveloo.copyrightdate | html %]</p>[% END %] > </td> > [% ELSE %] > <td>"</td> >-- >2.17.1
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 25798
:
106167
|
106354
|
106633
|
107069