[Koha-devel] DateUtils / Zebra
Philippe Blouin
philippe.blouin at inlibro.com
Mon Dec 14 21:36:06 CET 2015
Paul,
The warning are really coming from DateUtils' usages of 'when', 'given'
and the smartmatch '~~'. Newer Koha code got rid of them.
If you want an easy way out, just put
|no if ($] >= 5.018), 'warnings' => 'experimental';|
At the top of DateUtils.pm, C4/Search.pm and any other file you want to
go through with your old code.
Or downgrade Perl to an older version, if you deem that easier :)
Cheers,
Philippe Blouin,
Responsable du développement informatique
Tél. : (888) 604-2627
philippe.blouin at inLibro.com <mailto:philippe.blouin at inLibro.com>
inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com>
On 12/14/2015 03:10 PM, Paul A wrote:
> At 10:41 PM 12/13/2015 -0300, Tomas Cohen Arazi wrote:
>> You are running an antique version of Koha. And it used to use
>> experimental features from Perl (that were removed later). It doesn't
>> hurt to have those warnings anyway.
>
> Tomas -- tnx for the reply.
>
> Do you remember if this was a change to rebuild_zebra.pl
> <http://rebuild_zebra.pl> or to DateUtils.pm? As I said below, I
> couldn't find any documentation on the subject -- and I'd like to look
> into getting rid of the warnings.
>
> Thanks -- Paul
>
>
>> 2015-12-13 20:09 GMT-03:00 Paul A <paul.a at navalmarinearchive.com
>> <mailto:paul.a at navalmarinearchive.com>>:
>>
>> (I found one email, no response, from 21 May 2014 on this
>> subject; can't find anything 'DateUtils' with either 'Zebra' or
>> 'catalog' in bugs.koha-community.org
>> <http://bugs.koha-community.org>.)
>> It's extremely rare nowadays that we do a complete re-index on
>> the production servers, but I did one today after a direct
>> (naughty me) tweak to MySQL (frameworks/itemtypes) to avoid a
>> lengthy sandbox<==>production to and fro. I got the following:
>> koha_account at my_production:/usr/share/koha$
>> ./bin/migration_tools/rebuild_zebra.pl <http://rebuild_zebra.pl>
>> -b -r -v -x
>> given is experimental at /usr/share/koha/lib/Koha/DateUtils.pm
>> line 114.
>> when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm
>> line 115.
>> when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm
>> line 118.
>> when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm
>> line 121.
>> Smartmatch is experimental at /usr/share/koha/lib/C4/Search.pm
>> line 492.
>> Useless use of '\'; doesn't escape metacharacter '(' at
>> /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 917.
>> Just thought I'd ask if anyone has any thoughts on this as I'm
>> fairly sure I've never seen it before -- note, it doesn't
>> *appear* to hurt anything.
>> Tnx and regards -- Paul
>> _______________________________________________
>> Koha-devel mailing list
>> Koha-devel at lists.koha-community.org
>> <mailto:Koha-devel at lists.koha-community.org>
>> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>> website : http://www.koha-community.org/
>> git : http://git.koha-community.org/
>> bugs : http://bugs.koha-community.org/
>>
>>
>>
>>
>> --
>> Tomás Cohen Arazi
>> Theke Solutions (http://theke.io <http://theke.io/>)
>> ✆ +54 9351 3513384
>> GPG:Â B76C 6E7C 2D80 551A C765 Â E225 0A27 2EA1 B2F3 C15F
>
> ---
> Maritime heritage and history, preservation and conservation,
> research and education through the written word and the arts.
> <http://NavalMarineArchive.com <http://navalmarinearchive.com/>> and
> <http://UltraMarine.ca <http://ultramarine.ca/>>
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20151214/2b811cd7/attachment.html>
More information about the Koha-devel
mailing list