Removing old PO files, removing clutter
[koha_fer] / misc / sync_koha_plugin.pl
index d1eb55f..b683533 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
+use C4::Context;
 use Getopt::Long;
 
 my %opt = ();
@@ -63,9 +64,10 @@ system(
 );
 system(
     'cp',
-    $opt{head_dir}.'/C4/Amazon.pm',
+    $opt{head_dir}.'/C4/Log.pm',
     $opt{rel_2_2_dir}.'/C4/'
 );
+
 system(
     'cp',
     $opt{head_dir}.'/C4/Review.pm',
@@ -73,7 +75,7 @@ system(
 );
 system(
     'cp',
-    $opt{head_dir}.'/C4/Search.pm',
+    $opt{head_dir}.'/misc/plugin/Search.pm',
     $opt{rel_2_2_dir}.'/C4/'
 );
 
@@ -129,7 +131,7 @@ system(
     $opt{rel_2_2_dir}.'/koha-tmpl/intranet-tmpl/npl/en/cataloguing'
 );
 
-## Add the 'record.abs' symlink
+## Add the 'record.abs' symlink        
 system(
     'ln',
     '-s',
@@ -137,13 +139,19 @@ system(
     $opt{head_dir}.'/misc/zebra/usmarc/record.abs'
 );
 
+## Create symlink from intranet/zebra to head zebra directory
+system(
+    'ln',
+    '-s',
+    $opt{head_dir}.'/misc/zebra/usmarc',
+    C4::Context->config("intranetdir").'/zebra'
+);
 
 print "Finished\n\nRemember, you still need to:
 
 1. Edit moredetail.tmpl and detail.tmpl to allow for deletions
-2. symlink your Koha directory's intranet/zebra dir to the zebra dir
-   where the pqf file is
-3. add  <option value="biblio.title">Title</option> to the detail.tmpl
+
+2. add  <option value=''>Relevance</option> to the search
    pages to sort by relevance by default
 
 \n";