Bugzilla – Attachment 173520 Details for
Bug 14670
Add 'cite' option to detail page in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14670: Deal with empty publicatoin date
Bug-14670-Deal-with-empty-publicatoin-date.patch (text/plain), 1.37 KB, created by
Martin Renvoize (ashimema)
on 2024-10-28 11:43:15 UTC
(
hide
)
Description:
Bug 14670: Deal with empty publicatoin date
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-28 11:43:15 UTC
Size:
1.37 KB
patch
obsolete
>From 041e5be50120f7a25cffe703bb0af62a1f8b381a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 29 Jan 2024 17:16:27 +0100 >Subject: [PATCH] Bug 14670: Deal with empty publicatoin date > >Sponsored-by: Orex Digital >Signed-off-by: Hugo Agud <hagud@orex.es> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Record.pm | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/C4/Record.pm b/C4/Record.pm >index 4c0009e4abd..4e0152695d0 100644 >--- a/C4/Record.pm >+++ b/C4/Record.pm >@@ -931,10 +931,12 @@ sub marc2cites { > } > $cites{$_} =~ s/([^\.])$/$1./ for keys %cites; > >- $cites{'Harvard'} .= ' (' . $publication{'date'} . '). '; >- $cites{'Chicago'} .= ' ' . $publication{'date'} . '. '; >- $cites{'MLA'} .= ' ' . $publication{'title'} . '. '; >- $cites{'APA'} .= ' (' . $publication{'date'} . '). '; >+ if ( $publication{date} ) { >+ $cites{'Harvard'} .= ' (' . $publication{'date'} . '). '; >+ $cites{'Chicago'} .= ' ' . $publication{'date'} . '. '; >+ $cites{'MLA'} .= ' ' . $publication{'title'} . '. '; >+ $cites{'APA'} .= ' (' . $publication{'date'} . '). '; >+ } > $cites{'Harvard'} .= $publication{'title'} . '. '; > $cites{'Chicago'} .= $publication{'title'} . '. '; > $cites{'MLA'} .= $publication{'place'} . ': '; >-- >2.47.0
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 14670
:
41441
|
42971
|
43508
|
43770
|
43771
|
43828
|
43829
|
43919
|
43920
|
43921
|
43922
|
43923
|
43924
|
75679
|
75680
|
75681
|
75682
|
75683
|
161600
|
161601
|
161602
|
161603
|
161604
|
161605
|
161606
|
161607
|
166474
|
167528
|
167529
|
167530
|
167531
|
167532
|
167533
|
167534
|
167535
|
173515
|
173516
|
173517
|
173518
|
173519
| 173520 |
173521
|
173522
|
173523
|
173524
|
174453