[Koha] Browse by hierarchy - Links not working
Manos PETRIDIS
egpetridis at yahoo.com
Thu Sep 20 19:45:01 NZST 2012
Thank you both Ian and Paul for your prompt help!
It still doesn't work, but I have made some progress: I noticed that the @INC contained the "." at the end, so I searched for the locations where "C4/Koha.pm" would be a correct, existing filename. They were two:
-rw-r--r-- 1 root root 37123 Jul 20 16:46 /home/koha/kohaclone/C4/Koha.pm
-r--r--r-- 1 koha koha 37381 Nov 29 2011 /home/koha/kohaclone/blib/PERL_MODULE_DIR/C4/Koha.pm
There is also a
-rw-r--r-- 1 koha koha 963 Nov 29 2011 /home/koha/kohaclone/t/db_dependent/lib/KohaTest/Koha.pm
But it doesn't reside within a C4 folder.
When I run the script from a "correct" directory (/home/koha/kohaclone) it only complaints that it is "unable to locate Koha configuration file koha-conf.xml at C4/Context.pm line 360.".
I find three koha-conf.xml files in my installation:
-r--r--r-- 1 koha koha 12135 Aug 19 07:41 /home/koha/kohaclone/blib/KOHA_CONF_DIR/koha-conf.xml
-rw-r--r-- 1 koha koha 12135 Nov 29 2011 /home/koha/koha-dev/etc/koha-conf.xml
-rw-r--r-- 1 root root 12100 Aug 12 14:58 /home/koha/kohaclone/etc/koha-conf.xml
What is each file for?
Judging by the permissions and the modification date, the "live" configuration file should be the one at /home/koha/kohaclone/etc while the one at /home/koha/kohaclone/blib/KOHA_CONF_DIR could perhaps be the one that comes with each new version?
On the other hand, the contents of the first file seem more to be configuration values, while the latter seem to refer to values set elsewhere.
In any case I now know that I have a developer installation, so that I may seek the correct documentation.
Best regards,
Manos
-----Original Message-----
From: koha-bounces at lists.katipo.co.nz [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Ian Bays
Sent: Thursday, September 20, 2012 1:35 AM
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] Browse by hierarchy - Links not working
Hi.
Looks like you have a dev install rather than a production one which is fine. So you will need to set a couple of environment variables (perhaps in your .bashrc so you get it every time):
export KOHA_CONF=/home/koha/koha-dev/etc/koha-conf.xml
export PERL5LIB=/home/koha/kohaclone
Good luck.
On 19/09/2012 22:19, Manos PETRIDIS wrote:
> Hi José,
>
> Thank you VERY much for your step-by-step instructions. Although I try to follow DDC in my installation, I'm sure that your guide will be soon incorporated in the pertinent wiki page.
>
> As to your suggestion regarding the *Can't locate C4/Context.pm in
> @INC* problem, I find two C4 folders in my installation
>
> koha at koha:/$ sudo find / -type d -name C4 -print
> /home/koha/kohaclone/C4
> /home/koha/kohaclone/blib/PERL_MODULE_DIR/C4
>
> a) Would you have any idea on the correct folder to use?
> b) Would linking (instead of copying the folder contents) suffice?
>
> Thanks again!
> Manos
>
>
> -----Original Message-----
> From: koha-bounces at lists.katipo.co.nz
> [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of anjoze
> Sent: Monday, September 17, 2012 1:09 AM
> To: koha at lists.katipo.co.nz
> Subject: Re: [Koha] Browse by hierarchy - Links not working
>
> Hi Manos Petridis.
>
> Now I can browse by hierarchy :)
> In my case, because we are Portuguese and work with UDC-Classification
> instead of Dewey-Classification it was a bit more
>
> ...
>
> About your problem *Can't locate C4/Context.pm in @INC* Someone in this forum found this solution:
> Copying C4 directory to /etc/perl/ should solve your problem:
> cp -a /usr/share/koha/lib/C4/ /etc/perl/
>
> Hope it helps,
> José Anjos
>
> -----
> Koha version: 3.08.04
> - -
> José Anjos
> --
> View this message in context:
> http://koha.1045719.n5.nabble.com/Browse-by-hierarchy-Links-not-workin
> g-tp5724658p5726924.html Sent from the Koha-general mailing list
> archive at Nabble.com.
> _______________________________________________
> Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
> _______________________________________________
> Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
--
Ian Bays
Director of Projects, PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 800 756 6803 (phone)
+44 (0) 7774 995297 (mobile)
+44 (0) 800 756 6384 (fax)
skype: ian.bays
email: ian.bays at ptfs-europe.com
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list