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" and displayed when the preferred marc is set to MARC21. Publication year is fetched from biblioitems -table as "publicationyear" and displayed when the preferred marc is set to UNIMARC. 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> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e8fe7de5be
commit
58abd5b39b
2 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,8 @@ my $strsth =
|
||||||
GROUP_CONCAT(DISTINCT items.copynumber
|
GROUP_CONCAT(DISTINCT items.copynumber
|
||||||
ORDER BY items.itemnumber SEPARATOR '|') l_copynumber,
|
ORDER BY items.itemnumber SEPARATOR '|') l_copynumber,
|
||||||
biblio.title,
|
biblio.title,
|
||||||
|
biblio.copyrightdate,
|
||||||
|
biblioitems.publicationyear,
|
||||||
biblio.subtitle,
|
biblio.subtitle,
|
||||||
biblio.medium,
|
biblio.medium,
|
||||||
biblio.part_number,
|
biblio.part_number,
|
||||||
|
@ -273,6 +275,7 @@ while ( my $data = $sth->fetchrow_hashref ) {
|
||||||
holdingbranch => $data->{holdingbranch},
|
holdingbranch => $data->{holdingbranch},
|
||||||
homebranch => $data->{homebranch},
|
homebranch => $data->{homebranch},
|
||||||
itemnumber => $data->{itemnumber},
|
itemnumber => $data->{itemnumber},
|
||||||
|
publicationyear => C4::Context->preference('marcflavour') eq "MARC21" ? $data->{copyrightdate} : $data->{publicationyear},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
</a></p>
|
</a></p>
|
||||||
[% IF ( reserveloo.author ) %]<p> by [% reserveloo.author | html %]</p>[% END %]
|
[% IF ( reserveloo.author ) %]<p> by [% reserveloo.author | html %]</p>[% END %]
|
||||||
[% IF ( reserveloo.editionstatement ) %]<p>[% reserveloo.editionstatement | html %]</p>[% END %]
|
[% IF ( reserveloo.editionstatement ) %]<p>[% reserveloo.editionstatement | html %]</p>[% END %]
|
||||||
|
[% IF ( reserveloo.publicationyear ) %]<p>[% reserveloo.publicationyear | html %]</p>[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<td>"</td>
|
<td>"</td>
|
||||||
|
|
Loading…
Reference in a new issue