|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Zebra setup suggestionsHi all,
Thanks to Owen I can now commit on Savannah but before doing anything I just want to clarify some matters and get opinions. 1- I would like to setup zebra server using user-password for updates and no write access for anonymous write access. Also we should be using -f yazconfig.xml with the server which will allow us define the location and name of our cql file outside Context.pm and not hardcoded. 2-At previous listings we discussed whether to use collection.abs or record.abs for indexing Zebra. My understanding from that was Zebra can not handle collection.abs properly so we should use record.abs (Adam & Sebastian's remarks). This means using record->as_xml_record of the new CVS version MARC::File::XML which I downloaded but it does not work for me. MARC::File::XML does not get loaded properly and throws everything out. Looks like an XML::SAX problem but I am not sure. For those who managed to get it work please note that record->as_xml_record call will not produce proper xml as there is a quote missing at line 337 of XML.pm change slim> to slim"> and it should work for you. Currently I modified my old version MARC::File::XML so that it has a record->as_xml_record as well so that I can test and commit things. Since no 2 means rebuilding your zebradb I'll wait for comments. Cheers, Tumer _______________________________________________ Koha-zebra mailing list Koha-zebra@... http://lists.nongnu.org/mailman/listinfo/koha-zebra |
|
|
Re: Zebra setup suggestions, MARC::File::XML ProbsOn Mon, Apr 10, 2006 at 08:38:42PM +0300, Tümer Garip wrote:
> Hi all, > Thanks to Owen I can now commit on Savannah but before doing anything I > just want to clarify some matters and get opinions. > 1- I would like to setup zebra server using user-password for updates > and no write access for anonymous write access. Also we should be using > -f yazconfig.xml with the server which will allow us define the > location and name of our cql file outside Context.pm and not hardcoded. Of course, by all means make these changes. > 2-At previous listings we discussed whether to use collection.abs or > record.abs for indexing Zebra. My understanding from that was Zebra can > not handle collection.abs properly so we should use record.abs (Adam & > Sebastian's remarks). This means using record->as_xml_record of the new > CVS version MARC::File::XML which I downloaded but it does not work for > me. MARC::File::XML does not get loaded properly and throws everything > out. Looks like an XML::SAX problem but I am not sure. For those who > managed to get it work please note that record->as_xml_record call will > not produce proper xml as there is a quote missing at line 337 of XML.pm > change slim> to slim"> and it should work for you. > > Currently I modified my old version MARC::File::XML so that it has a > record->as_xml_record as well so that I can test and commit things. We should use record.abs, I dont' think we need collection.abs anymore. I think we should really try to use the new MARC::File::XML if at all possible and should modify all our 'as_xml' calls to be 'as_xml_record'. But before we can do that we need to resolve these issues you're having. Mike R, any comments on Tumer's probs with M::F::X? Cheers, -- Joshua Ferraro VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@... |Full Demos at http://liblime.com/koha |1(888)KohaILS _______________________________________________ Koha-zebra mailing list Koha-zebra@... http://lists.nongnu.org/mailman/listinfo/koha-zebra |
|
|
Re: Zebra setup suggestions, MARC::File::XML ProbsOn 4/10/06, Joshua Ferraro <jmf@...> wrote:
> On Mon, Apr 10, 2006 at 08:38:42PM +0300, Tümer Garip wrote: > > Hi all, > > Thanks to Owen I can now commit on Savannah but before doing anything I > > just want to clarify some matters and get opinions. > > 1- I would like to setup zebra server using user-password for updates > > and no write access for anonymous write access. Also we should be using > > -f yazconfig.xml with the server which will allow us define the > > location and name of our cql file outside Context.pm and not hardcoded. > Of course, by all means make these changes. > > > 2-At previous listings we discussed whether to use collection.abs or > > record.abs for indexing Zebra. My understanding from that was Zebra can > > not handle collection.abs properly so we should use record.abs (Adam & > > Sebastian's remarks). This means using record->as_xml_record of the new > > CVS version MARC::File::XML which I downloaded but it does not work for > > me. MARC::File::XML does not get loaded properly and throws everything > > out. Looks like an XML::SAX problem but I am not sure. For those who > > managed to get it work please note that record->as_xml_record call will > > not produce proper xml as there is a quote missing at line 337 of XML.pm > > change slim> to slim"> and it should work for you. > > > > Currently I modified my old version MARC::File::XML so that it has a > > record->as_xml_record as well so that I can test and commit things. > > We should use record.abs, I dont' think we need collection.abs > anymore. I think we should really try to use the new MARC::File::XML > if at all possible and should modify all our 'as_xml' calls to be > 'as_xml_record'. But before we can do that we need to resolve these > issues you're having. > > Mike R, any comments on Tumer's probs with M::F::X? I've fixed the missing-quote bug in CVS (thanks for spotting that, Tümer), but without more details I won't be able to tell what's wrong with MARC::File::SAX, if that is indeed the issue. I cannot get anything to fail here after fixing that missing-quote bug. Tümer, if you add use warnings; use diagnostics; to the top of your script does it tell you where the problem with MARC::File::XML is? -- Mike Rylander mrylander@... GPLS -- PINES Development Database Developer http://open-ils.org _______________________________________________ Koha-zebra mailing list Koha-zebra@... http://lists.nongnu.org/mailman/listinfo/koha-zebra |
|
|
Zebra setup suggestions> 1- I would like to setup zebra server using user-password for
> updates and no write access for anonymous write access. Use this combination of directives in zebra.cfg: perm.anonymous: ra perm.admin: rw passwd: /path/to/some/file And create a password file at /path/to/some/file that contains the line: admin:somePassw0rd Now if you access the database as user "admin", providing the password "somePassw0rd", you'll have write-access; but if you connect anonymously, you'll only be able to read. _/|_ ___________________________________________________________________ /o ) \/ Mike Taylor <mike@...> http://www.miketaylor.org.uk )_v__/\ "rm() { /bin/rm -f $*; echo 'Were you sure?'; }" -- Tee-shirt at a Unix conference. _______________________________________________ Koha-zebra mailing list Koha-zebra@... http://lists.nongnu.org/mailman/listinfo/koha-zebra |
|
|
RE: Zebra setup suggestions, MARC::File::XML ProbsHi,
I have solved the problem with M:F:X. In fact the problem exists for windows platforms and it has to do with XML::SAX Package that M::F::XML depends on. Any windows package using active perl should reinstall XML::SAX from ppm install http://theoryx5.uwinnipeg.ca/ppms//XML-SAX.ppd And not from the origional activeperl repository. Further details at http://perl-xml.sourceforge.net/faq/#parserdetails.ini Thanks everyone Tumer -----Original Message----- From: Mike Rylander [mailto:mrylander@...] Sent: Monday, April 10, 2006 9:50 PM To: Joshua Ferraro Cc: Tümer Garip; koha-zebra@... Subject: Re: [Koha-zebra] Zebra setup suggestions, MARC::File::XML Probs On 4/10/06, Joshua Ferraro <jmf@...> wrote: > On Mon, Apr 10, 2006 at 08:38:42PM +0300, Tümer Garip wrote: > > Hi all, > > Thanks to Owen I can now commit on Savannah but before doing > > anything I just want to clarify some matters and get opinions. > > 1- I would like to setup zebra server using user-password for > > updates and no write access for anonymous write access. Also we > > should be using -f yazconfig.xml with the server which will allow us > > define the location and name of our cql file outside Context.pm and > > not hardcoded. > Of course, by all means make these changes. > > > 2-At previous listings we discussed whether to use collection.abs or > > record.abs for indexing Zebra. My understanding from that was Zebra > > can not handle collection.abs properly so we should use record.abs > > (Adam & Sebastian's remarks). This means using record->as_xml_record > > of the new CVS version MARC::File::XML which I downloaded but it > > does not work for me. MARC::File::XML does not get loaded properly > > and throws everything out. Looks like an XML::SAX problem but I am > > not sure. For those who managed to get it work please note that > > record->as_xml_record call will not produce proper xml as there is a > > quote missing at line 337 of XML.pm change slim> to slim"> and it > > should work for you. > > > > Currently I modified my old version MARC::File::XML so that it has a > > record->as_xml_record as well so that I can test and commit things. > > We should use record.abs, I dont' think we need collection.abs > anymore. I think we should really try to use the new MARC::File::XML > if at all possible and should modify all our 'as_xml' calls to be > 'as_xml_record'. But before we can do that we need to resolve these > issues you're having. > > Mike R, any comments on Tumer's probs with M::F::X? I've fixed the missing-quote bug in CVS (thanks for spotting that, Tümer), but without more details I won't be able to tell what's wrong with MARC::File::SAX, if that is indeed the issue. I cannot get anything to fail here after fixing that missing-quote bug. Tümer, if you add use warnings; use diagnostics; to the top of your script does it tell you where the problem with MARC::File::XML is? -- Mike Rylander mrylander@... GPLS -- PINES Development Database Developer http://open-ils.org _______________________________________________ Koha-zebra mailing list Koha-zebra@... http://lists.nongnu.org/mailman/listinfo/koha-zebra |
| Free embeddable forum powered by Nabble | Forum Help |