Bugzilla – Attachment 58797 Details for
Bug 17778
Make "Earliest Registered Date" in OAI-PMH dynamic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Attachment to Bug 17778 - Make "Earliest Registered Date" in OAI-PMH dynamic
Bug-17778-Simplify-fetch-date.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2017-01-11 08:22:25 UTC
(
hide
)
Description:
Attachment to Bug 17778 - Make "Earliest Registered Date" in OAI-PMH dynamic
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-11 08:22:25 UTC
Size:
1.13 KB
patch
obsolete
>From 8f7c3819ed7c6df148b7c7a09e29f6fc9f0d3818 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 10 Jan 2017 15:52:57 +0100 >Subject: [PATCH] Bug 17778: Simplify fetch date > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/OAI/Server/Identify.pm | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) > >diff --git a/Koha/OAI/Server/Identify.pm b/Koha/OAI/Server/Identify.pm >index bddfc29..79f6b80 100644 >--- a/Koha/OAI/Server/Identify.pm >+++ b/Koha/OAI/Server/Identify.pm >@@ -52,15 +52,9 @@ sub new { > # Find the earliest timestamp in the biblio table. If this table is empty, undef > # will be returned and we will report the fallback 0001-01-01. > sub _get_earliest_datestamp { >- > my $dbh = C4::Context->dbh; >- >- my $order_sth = $dbh->prepare( "SELECT DATE(MIN(timestamp)) AS earliest FROM biblio" ); >- $order_sth->execute(); >- my $res = $order_sth->fetchrow_hashref(); >- >- return $res->{'earliest'}; >- >+ my ( $earliest ) = $dbh->selectrow_array("SELECT DATE(MIN(timestamp)) AS earliest FROM biblio" ); >+ return $earliest > } > > 1; >-- >2.1.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 17778
:
58647
|
58648
|
58758
|
58796
| 58797