9 qw/head_dir=s rel_2_2_dir=s help/
10 ) or die "\nHouston, we got a problem\n";
12 if (exists $opt{help}) {
14 Sync the Koha plugin with the appropriate files from HEAD. Assumes
15 that you've set up your Koha install to use CVS symlinked to the
18 Usage: sync_koha_plugin.pl --head_dir=<cvs head directory>
19 --rel_2_2_dir=<cvs rel_2_2 directory>
22 --head_dir: is the directory where your Koha HEAD cvs is checked out.
24 --rel_2_2_dir: is the directory where your Koha rel_2_2 cvs is checked
25 out and symlinked to your Koha install directories.
27 --help: show this help
33 # Configurable Variables
34 foreach my $option (qw/head_dir rel_2_2_dir/) {
35 if (not exists $opt{$option}) {
36 die 'option "', $option, '" is mandatory', "\n";
39 if (not -d $opt{$option}) {
40 die '"', $opt{$option}, '" must be an existing directory', "\n";
43 if (not $opt{$option} =~ m{^/}) {
44 die '--', $option, ' must be an absolute path', "\n";
51 $opt{head_dir}.'/C4/Biblio.pm',
52 $opt{rel_2_2_dir}.'/C4/'
56 $opt{head_dir}.'/C4/Context.pm',
57 $opt{rel_2_2_dir}.'/C4/'
61 $opt{head_dir}.'/C4/SearchMarc.pm',
62 $opt{rel_2_2_dir}.'/C4/'
66 $opt{head_dir}.'/C4/Amazon.pm',
67 $opt{rel_2_2_dir}.'/C4/'
71 $opt{head_dir}.'/C4/Review.pm',
72 $opt{rel_2_2_dir}.'/C4/'
76 $opt{head_dir}.'/C4/Search.pm',
77 $opt{rel_2_2_dir}.'/C4/'
83 $opt{head_dir}.'/cataloguing/addbiblio.pl',
84 $opt{rel_2_2_dir}.'/acqui.simple/addbiblio.pl'
88 $opt{head_dir}.'/cataloguing/additem.pl',
89 $opt{rel_2_2_dir}.'/acqui.simple/'
93 $opt{head_dir}.'/catalogue/detail.pl',
98 $opt{head_dir}.'/catalogue/MARCdetail.pl',
103 $opt{head_dir}.'/catalogue/ISBDdetail.pl',
104 $opt{rel_2_2_dir}.'/'
110 $opt{head_dir}.'/opac/opac-detail.pl',
111 $opt{rel_2_2_dir}.'/opac/'
115 $opt{head_dir}.'/opac/opac-MARCdetail.pl',
116 $opt{rel_2_2_dir}.'/opac/'
120 $opt{head_dir}.'/opac/opac-ISBDdetail.pl',
121 $opt{rel_2_2_dir}.'/opac/'
124 ## Add the symlink necessary due to changes in the dir structure
128 $opt{rel_2_2_dir}.'/koha-tmpl/intranet-tmpl/npl/en/acqui.simple',
129 $opt{rel_2_2_dir}.'/koha-tmpl/intranet-tmpl/npl/en/cataloguing'
132 print "Finished\n\nRemember, you still need to:
134 1. Edit moredetail.tmpl and detail.tmpl to allow for deletions
135 2. symlink your Koha directory's intranet/zebra dir to the zebra dir
136 where the pqf file is
137 3. add <option value="biblio.title">Title</option> to the detail.tmpl
138 pages to sort by relevance by default