[Koha-bugs] [Bug 18927] New: koha-rebuild-zebra -f -v koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 11 15:50:25 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18927

            Bug ID: 18927
           Summary: koha-rebuild-zebra -f -v koha
 Change sponsored?: ---
           Product: Koha
           Version: 17.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jef at dias.ie
        QA Contact: testopia at bugs.koha-community.org
                CC: robin at catalyst.net.nz

Using Debian packages:
koha:~# dpkg -l | grep koha
ii  koha-common                           17.05.01-1                        
all          integrated (physical) library management system
ii  libcgi-session-driver-memcached-perl  0.04-1koha2                       
all          Perl module to allow CGI sessions to be stored in memcache
ii  libconvert-basen-perl                 0.01-1koha1                       
all          perl module for encoding and decoding of base{2,4,8,16,32,64}
strings
ii  libdbix-runsql-perl                   0.14-1~koha1                      
all          module to run an SQL file via a DBI handle
ii  libjson-validator-perl                0.67+dfsg-1~koha1                 
all          module to validate data against a JSON schema
ii  libmarc-record-perl                   2.0.6-1koha1                      
all          Perl extension for handling MARC records
ii  libmojolicious-perl                   6.15+dfsg-1~koha1                 
all          simple, yet powerful, Web Application Framework
ii  libpdf-fromhtml-perl                  0.31-1~koha1                      
all          module to convert HTML documents to PDF
ii  libpdf-reuse-perl                     0.36-1koha1                       
all          Reuse and mass produce PDF documents
ii  libpdf-writer-perl                    0.06-1~koha1                      
all          PDF writer abstraction layer
ii  libswagger2-perl                      0.77-1~koha1                      
all          Perl module for generating, parsing and transforming swagger API
documentation
ii  libtemplate-plugin-htmltotext-perl    0.03-1koha1                       
all          Plugin interface to HTML::FormatText
ii  libtemplate-plugin-json-escape-perl   0.2-1koha1                        
all          module for embedding JSON strings in Template Toolkit
ii  libtemplate-plugin-stash-perl         1.006-1~koha1                     
all          Template::Toolkit plugin that exposes the template's stash



# koha-rebuild-zebra -f -v koha
returns a lot of errors:
[...]
error retrieving biblio 94540 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94541 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94542 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94543 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94544 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94545 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94546 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94547 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94548 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
error retrieving biblio 94549 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
[...]


Although the 'use' is clearly defined:
use C4::Biblio;

specifying the full perl library/function name in those 2 files fixes it:
for p in /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
/usr/share/koha/lib/C4/Items.pm; do
for f in GetMarcFromKohaField GetMarcBiblio GetBiblionumberFromItemnumber
TransformKohaToMarc GetFrameworkCode; do
sed -i -e "s/$f/C4::Biblio::$f/g" $p
done
done

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list