<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Barton,</p>
<p>Look at the file history :
<a class="moz-txt-link-freetext" href="http://git.koha-community.org/gitweb/?p=koha.git;a=history;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD">http://git.koha-community.org/gitweb/?p=koha.git;a=history;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD</a></p>
<p>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.</p>
<p>And about the <b>use MARC::File::USMARC</b>, 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.</p>
<p>HTH<br>
</p>
<br>
<div class="moz-cite-prefix">Le 17/01/2018 à 19:46, Barton
Chittenden a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAMSJbVukTgSDhqUfrGSP0jd4uuocN2QRfJQFq7UKau3QRMxkLQ@mail.gmail.com">
<div dir="ltr">The documentation for
<div><br>
</div>
<div>
<div>misc/cronjobs/<a href="http://build_browser_and_cloud.pl"
moz-do-not-send="true">build_browser_and_cloud.pl</a></div>
<div><br>
</div>
</div>
<div>States</div>
<div><br>
</div>
<div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><strong>Important<br>
</strong></blockquote>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><strong></strong>This
preference and cron job should only be used on French
systems.</blockquote>
<div><br>
</div>
<div>(see <a
href="https://koha-community.org/manual/18.05/en/html/16_cron_jobs.html?highlight=cronjobs#authorities-browser"
moz-do-not-send="true">https://koha-community.org/manual/18.05/en/html/16_cron_jobs.html?highlight=cronjobs#authorities-browser</a>) </div>
</div>
<div><br>
</div>
<div>The associated OpacBrowser syspref says:</div>
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Important<br>
</blockquote>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">This preference only
applies to installations using UNIMARC at this time.</blockquote>
</div>
<div><br>
</div>
<div>... but the script itself seems to use MARC::File::USMARC
exclusively:</div>
<div><br>
</div>
<div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l13" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l13" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 13</a> use C4::Koha;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l14" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l14" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 14</a> use C4::Context;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l15" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l15" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 15</a> use C4::Biblio;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l16" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l16" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 16</a> use Date::Calc;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l17" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l17" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 17</a> use Time::HiRes qw(gettimeofday);</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l18" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l18" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 18</a> use ZOOM;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l19" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l19" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 19</a> <b>use MARC::File::USMARC;</b></div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l20" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l20" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 20</a> use Getopt::Long;</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><a id="gmail-l21" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l21" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 21</a> use C4::Log;</div>
</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)">
</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)">(see <a href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD" moz-do-not-send="true">http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD</a>)</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)">
</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)">The subroutine dewey_french obviously isn't translatable (I've filed bug Bug 20007 - <a href="http://build_browser_and_cloud.pl" moz-do-not-send="true">build_browser_and_cloud.pl</a> contains hard-coded text in French for thatt</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)">
</div>
<div class="gmail-pre" style="font-family:monospace;font-size:12px;white-space:pre;color:rgb(0,0,0)"><div class="gmail-pre"><a id="gmail-l173" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l173" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 173</a> sub dewey_french {</div><div class="gmail-pre"><a id="gmail-l174" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l174" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 174</a> return {</div><div class="gmail-pre"><a id="gmail-l175" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l175" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 175</a> "0" => "Généralités (Ouvrages généraux (encyclopédies, bibliographies, etc.) et informatique)",</div><div class="gmail-pre"><a id="gmail-l176" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l176" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 176</a> "00" => "Savoir et communication",</div><div class="gmail-pre"><a id="gmail-l177" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l177" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 177</a> "001.42" => "Collecte, agencement, analyse des données",</div><div class="gmail-pre"><a id="gmail-l178" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l178" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 178</a> "003" => "Systémique, systèmes",</div><div class="gmail-pre"><a id="gmail-l179" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l179" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 179</a> "003.1" => "Identification de système",</div><div class="gmail-pre"><a id="gmail-l180" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/cronjobs/build_browser_and_cloud.pl;h=d5e0d1a8f5ab96ec10a38ffe2070de8132cac5f1;hb=HEAD#l180" class="gmail-linenr" style="color:rgb(153,153,153);text-decoration-line:none" moz-do-not-send="true"> 180</a> "003.2" => "Prévisions. Futurologie",</div><div class="gmail-pre">...</div><div class="gmail-pre">
</div><div class="gmail-pre">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.</div><div class="gmail-pre">
</div><div class="gmail-pre">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.</div><div class="gmail-pre">
</div><div class="gmail-pre">Thanks,</div><div class="gmail-pre">
</div><div class="gmail-pre">--Barton</div></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul Poulain, Associé-gérant / co-owner
BibLibre, Services en logiciels libres pour les bibliothèques
BibLibre, Open Source software and services for libraries</pre>
</body>
</html>