Hi Barton,

Look at the file history : http://git.koha-community.org/gitweb/?p=koha.git;a=history;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD

It's a VERY OLD script, that has never been updated. That's probably why it's so ugly. I think it's worth a rewrite.

And about the use MARC::File::USMARC, we use it in UNIMARC as well, because, in fact, the package should be called MARC::File::iso2709, and not USMARC. It applies to any MARC flavour, and is only related to the file format, not the file content.

HTH


Le 17/01/2018 à 19:46, Barton Chittenden a écrit :
The documentation for

misc/cronjobs/build_browser_and_cloud.pl

States

Important
 
This preference and cron job should only be used on French systems.

(see https://koha-community.org/manual/18.05/en/html/16_cron_jobs.html?highlight=cronjobs#authorities-browser

The associated OpacBrowser syspref says:

Important
 
This preference only applies to installations using UNIMARC at this time.

... but the script itself seems to use MARC::File::USMARC exclusively:

13 use C4::Koha;
14 use C4::Context;
15 use C4::Biblio;
16 use Date::Calc;
17 use Time::HiRes qw(gettimeofday);
18 use ZOOM;
19 use MARC::File::USMARC;
20 use Getopt::Long;
21 use C4::Log;
The subroutine dewey_french obviously isn't translatable (I've filed bug Bug 20007 - build_browser_and_cloud.pl contains hard-coded text in French for thatt
173 sub dewey_french {
174 return {
175     "0" => "Généralités (Ouvrages généraux (encyclopédies, bibliographies, etc.) et informatique)",
176     "00" => "Savoir et communication",
177     "001.42" => "Collecte, agencement, analyse des données",
178     "003" => "Systémique, systèmes",
179     "003.1" => "Identification de système",
180     "003.2" => "Prévisions. Futurologie",
...
The French text seems to be at cross purposes with MARC::File::USMARC, because French catalogers would probably use UNIMARC; at the same time the use of USMARC contradicts the documentation.
Ideally, I'd to get the I18N *and* the marc flavor fixed so that everyone can use this, and I'd like to file bug reports that accurately show what needs to be fixed. Any clarification is welcome.
Thanks,
--Barton


_______________________________________________
Koha-devel mailing list
Koha-devel@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/

-- 
Paul Poulain, Associé-gérant / co-owner
BibLibre, Services en logiciels libres pour les bibliothèques
BibLibre, Open Source software and services for libraries