[Koha-devel] DateUtils / Zebra

Paul A paul.a at navalmarinearchive.com
Wed Dec 16 22:20:51 CET 2015


At 10:49 PM 12/14/2015 -0300, Tomas Cohen Arazi wrote:
>Take a look at commit b529ca00e0cac093fc32a1d123cdbcc84582c155 for 
>Koha/DateUtils.pm and commit 091a74de4c0fb6b0ff948eb716808dfc009a1207 for 
>C4/Search.pm

Tomas (and Philippe B.),

Thank you both very much ... problem cured.

For the record, applying the commit above fails with 3.8 (both .5 and .24) 
[Note 1]

However, using the DateUtils.pm from 3.16.13 (I happened to have the tar 
easily available) works flawlessly in 3.8.5 and 3.8.24 using either Perl 
5.014002 or Perl 5.018002. There is actually an added benefit: 
rebuild_zebra gains an approx 20% time improvement under Perl 5.14 under 
our test conditions.

While recognizing that 3.8.24 is unsupported (no maintainer?), it is still 
fairly recent (released 2014-06-04) and it would be somewhat trivial to put 
the 3.16.13 version of DateUtils into it.

Again with my thanks -- Paul

[Note 1: -- there are other diff's to the .pm (shown by the line numbering) 
and modding the relevant lines gives rise to supplemental errors such as 
"Global symbol "$dateonly" requires explicit package name at 
/usr/share/koha/lib/Koha/DateUtils.pm line 117 and "Global symbol "$time" 
requires explicit package name at /usr/share/koha/lib/Koha/DateUtils.pm 
line 118", and spills over into Reserves.pm line 40, Circulation.pm line 
27, Search.pm line 28, AuthoritiesMarc.pm line 24, etc...]




>Regards
>Tomas
>
>2015-12-14 17:10 GMT-03:00 Paul A <paul.a at navalmarinearchive.com>:
>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 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>:
>>(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.)
>>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 -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
>>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)
>>̢Ϡ +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> and <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/
>
>
>
>
>--
>Tomás Cohen Arazi
>Theke Solutions (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> and <http://UltraMarine.ca>



More information about the Koha-devel mailing list