From c41a9cc218cba83c1ef80f67f0dc30444ff1baf6 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Mon, 15 Jun 2009 11:32:19 -0500 Subject: [PATCH] Update references to batchRebuildBiblioTables Also fixed escaping of literal "$" characters in usage. Signed-off-by: Galen Charlton --- .../en/modules/admin/marctagstructure.tmpl | 2 +- .../prog/en/modules/admin/stopwords.tmpl | 2 +- misc/batchRebuildBiblioTables.pl | 23 +++++++++++-------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tmpl index 40736cb8b1..31e757d553 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tmpl @@ -150,7 +150,7 @@ $(document).ready(function() {

-

NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.

+

NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/batchRebuildBiblioTables.pl script.

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl index d03f87127d..6fc0148862 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl @@ -114,7 +114,7 @@

Stop Words

-

NOTE : if you change something in this table, ask your administrator to run misc/rebuildnonmarc.pl script.

+

NOTE : if you change something in this table, ask your administrator to run misc/batchRebuildBiblioTables.pl script.

You searched for

diff --git a/misc/batchRebuildBiblioTables.pl b/misc/batchRebuildBiblioTables.pl index 15873e2be2..8e1c3aca3e 100755 --- a/misc/batchRebuildBiblioTables.pl +++ b/misc/batchRebuildBiblioTables.pl @@ -1,7 +1,10 @@ #!/usr/bin/perl -# small script that rebuilds the non-MARC DB +# Small script that rebuilds the non-MARC DB +# Formerly named rebuildnonmarc.pl use strict; +# use warnings; FIXME someday + BEGIN { # find Koha's Perl modules # test carefully before changing this @@ -16,8 +19,8 @@ use C4::Biblio; use Time::HiRes qw(gettimeofday); use Getopt::Long; -my ( $input_marc_file, $number) = ('',0); -my ($version, $confirm,$test_parameter); +my ( $input_marc_file, $number) = ('', 0); +my ($version, $confirm, $test_parameter); GetOptions( 'c' => \$confirm, 'h' => \$version, @@ -28,15 +31,17 @@ if ($version || (!$confirm)) { print < shows this screen) -\t./rebuildnonmarc.pl -c (c like confirm => rebuild non marc DB (may be long) + +Example: you decide to map biblio.title to 200\$a (it was previously mapped to 610\$a). +Run this script or you will have strange results in OPAC ! + +Syntax: +\t./batchRebuildBiblioTables.pl -h (or without arguments => shows this screen) +\t./batchRebuildBiblioTables.pl -c (c like confirm => rebuild non marc DB (may be long) \t-t => test only, change nothing in DB EOF ; -die; + exit; } my $dbh = C4::Context->dbh; -- 2.39.5