10 qw/head_dir=s rel_2_2_dir=s help/
11 ) or die "\nHouston, we got a problem\n";
13 if (exists $opt{help}) {
15 Sync the Koha plugin with the appropriate files from HEAD. Assumes
16 that you've set up your Koha install to use CVS symlinked to the
19 Usage: sync_koha_plugin.pl --head_dir=<cvs head directory>
20 --rel_2_2_dir=<cvs rel_2_2 directory>
23 --head_dir: is the directory where your Koha HEAD cvs is checked out.
25 --rel_2_2_dir: is the directory where your Koha rel_2_2 cvs is checked
26 out and symlinked to your Koha install directories.
28 --help: show this help
34 # Configurable Variables
35 foreach my $option (qw/head_dir rel_2_2_dir/) {
36 if (not exists $opt{$option}) {
37 die 'option "', $option, '" is mandatory', "\n";
40 if (not -d $opt{$option}) {
41 die '"', $opt{$option}, '" must be an existing directory', "\n";
44 if (not $opt{$option} =~ m{^/}) {
45 die '--', $option, ' must be an absolute path', "\n";
52 $opt{head_dir}.'/C4/Biblio.pm',
53 $opt{rel_2_2_dir}.'/C4/'
57 $opt{head_dir}.'/C4/Context.pm',
58 $opt{rel_2_2_dir}.'/C4/'
62 $opt{head_dir}.'/C4/SearchMarc.pm',
63 $opt{rel_2_2_dir}.'/C4/'
67 $opt{head_dir}.'/C4/Amazon.pm',
68 $opt{rel_2_2_dir}.'/C4/'
72 $opt{head_dir}.'/C4/Review.pm',
73 $opt{rel_2_2_dir}.'/C4/'
77 $opt{head_dir}.'/C4/Search.pm',
78 $opt{rel_2_2_dir}.'/C4/'
84 $opt{head_dir}.'/cataloguing/addbiblio.pl',
85 $opt{rel_2_2_dir}.'/acqui.simple/addbiblio.pl'
89 $opt{head_dir}.'/cataloguing/additem.pl',
90 $opt{rel_2_2_dir}.'/acqui.simple/'
94 $opt{head_dir}.'/catalogue/detail.pl',
99 $opt{head_dir}.'/catalogue/MARCdetail.pl',
100 $opt{rel_2_2_dir}.'/'
104 $opt{head_dir}.'/catalogue/ISBDdetail.pl',
105 $opt{rel_2_2_dir}.'/'
111 $opt{head_dir}.'/opac/opac-detail.pl',
112 $opt{rel_2_2_dir}.'/opac/'
116 $opt{head_dir}.'/opac/opac-MARCdetail.pl',
117 $opt{rel_2_2_dir}.'/opac/'
121 $opt{head_dir}.'/opac/opac-ISBDdetail.pl',
122 $opt{rel_2_2_dir}.'/opac/'
125 ## Add the symlink necessary due to changes in the dir structure
129 $opt{rel_2_2_dir}.'/koha-tmpl/intranet-tmpl/npl/en/acqui.simple',
130 $opt{rel_2_2_dir}.'/koha-tmpl/intranet-tmpl/npl/en/cataloguing'
133 ## Add the 'record.abs' symlink
137 $opt{head_dir}.'/misc/zebra/usmarc/collection.abs',
138 $opt{head_dir}.'/misc/zebra/usmarc/record.abs'
141 ## Create symlink from intranet/zebra to head zebra directory
145 $opt{head_dir}.'/misc/zebra/usmarc',
146 C4::Context->config("intranetdir").'/zebra'
149 print "Finished\n\nRemember, you still need to:
151 1. Edit moredetail.tmpl and detail.tmpl to allow for deletions
152 2. symlink your Koha directory's intranet/zebra dir to the zebra dir
153 where the pqf file is
154 3. add <option value="biblio.title">Title</option> to the detail.tmpl
155 pages to sort by relevance by default