[Koha] Koha API issue
Hi everyone, We are trying to access Koha data using Koha API from a different system. We are using the Angular JS V2 library to access Koha API. While accessing the API, we encountered a CORS error stating "Access to XMLHttpRequest at " http://opac.tucl.edu.np:81/api; from origin "http://localhost:4200; has been blocked by CORS policy. The detail of the error is provided in the screenshot below. We have also tried to set the value for the AccessControlAllowOrigin system preference with the value "http://localhost:4200;. As it didn't resolve the issue, we also set the preference value as an asterisk '*'. However, we still encountered the same error. [image: error_2022-08-06_17-38-43-985.jpg] If anyone had already resolved this kind of issue earlier, please share your experience. We would highly appreciate it. Thank you. -- Regards, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Searching problem
Hi Eric, Thank you for your reply. I am not sure how the zebra indexing works. I also thought that the colon was not treated literally. There are several other instances having colon marks and they are searchable using the full title. I have tried both general search and advanced search but I still couldn't search some of the titles having colon punctuation marks. For example, the list below has one or more colons after searching for ":" mark <http://107.170.225.98:8080/cgi-bin/koha/catalogue/search.pl?idx=kw=%3A=19880_by=relevance_dsc> but still searchable using the full title.: 1. http://107.170.225.98/cgi-bin/koha/opac-detail.pl?biblionumber=20343 2. http://107.170.225.98:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=20347 3. http://107.170.225.98/cgi-bin/koha/opac-detail.pl?biblionumber=20264 I tried changing the search preferences for the values of QueryFuzzy and QueryStemming but that didn't make a difference in search results for the titles having colon punctuation marks. I'd appreciate it if I could get a solution to this issue. Thank you. Regards, Dibyendra Hyoju On Wed, Dec 11, 2019 at 12:01 AM Eric Phetteplace wrote: > Hi Dibyendra, > > Since the searches work when you omit the colon, I suspect that it is > being treated as a special character and not interpreted literally, causing > queries to fail. I know that authority searches look like "an:510335" so I > think the role of a colon is to separate an index ("an" for "authority > number") from the value being looked for in that index (in this case, the > identifier 510335). I also see a query like "Provider:Oxford University > Press" so your searches might fail because "Bhutan: new pathways to growth" > means, to Zebra, *search the "Bhutan" index for the value "new pathways > to growth"*. > > In a few test searches on our Koha, using the advanced search field and > performing a Title Phrase query on the full title, including the colon, > works. I suspect that if you want keyword searches with colons to work you > need to escape the colon somehow, though I don't know Zebra well enough to > know how to do that. Is there any reason why you can't just omit the > colons? Why are they required? If you could link to your Koha instance or > provide more details on how you're searching (using keyword searches? using > the advanced search form?) that would help us troubleshoot. > > Best, > > ERIC PHETTEPLACE Systems Librarian (he/him) > > ephettepl...@cca.edu | o 510.594.3660 > > 5212 Broadway | Oakland, CA | 94618 > > :(){ :|: & };: > > > On Tue, Dec 10, 2019 at 8:03 AM Dibyendra Hyoju > wrote: > >> Hello All, >> >> I am having trouble searching some of the records in the database having a >> colon ":" punctuation mark in the titles such as "Marx at the Margins: On >> Nationalism, Ethnicity, and Non-Western Societies", "Bhutan: new pathways >> to growth", "Dayananda Sarasvati: his life and ideas", etc. However, I >> could search these records without typing a colon punctuation mark during >> the search just like "Bhutan new pathways to growth", "Dayananda Sarasvati >> his life and ideas". The complete title is in the 245a tag field without >> using remainder of the title. What could be the problem? I have rebuilt >> the >> index by issuing koha-rebuild-zebra -f -v twice but some of the >> titles mentioned above are still not searchable using full title including >> colon punctuation mark. I'd appreciate if anyone in the list could share >> the solution to this issue. Thank you. >> >> -- >> Dibyendra Hyoju >> ___ >> Koha mailing list http://koha-community.org >> Koha@lists.katipo.co.nz >> https://lists.katipo.co.nz/mailman/listinfo/koha >> > ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Searching problem
Hello All, I am having trouble searching some of the records in the database having a colon ":" punctuation mark in the titles such as "Marx at the Margins: On Nationalism, Ethnicity, and Non-Western Societies", "Bhutan: new pathways to growth", "Dayananda Sarasvati: his life and ideas", etc. However, I could search these records without typing a colon punctuation mark during the search just like "Bhutan new pathways to growth", "Dayananda Sarasvati his life and ideas". The complete title is in the 245a tag field without using remainder of the title. What could be the problem? I have rebuilt the index by issuing koha-rebuild-zebra -f -v twice but some of the titles mentioned above are still not searchable using full title including colon punctuation mark. I'd appreciate if anyone in the list could share the solution to this issue. Thank you. -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Indexing problem
Hello All, I have been able to index the database by adding the following lines on the record.abs file: melm 090$c Local-number:n,Local-Number:w,Local-Number:s melm 090$d biblioitemnumber:n, biblioitemnumber:w, biblioitemnumber:s I took the reference from the following link: https://lists.katipo.co.nz/public/koha/2014-December/041484.html Best regards, Dibyendra Hyoju On Thu, Oct 17, 2019 at 2:26 PM Dibyendra Hyoju wrote: > Hello All, > > I have records in the Koha with biblionumber and biblionumber fields > mapped to 090$c and 090$d marc fields. > > BIBLIONUMBER in : 090$c > BIBLIOITEMNUMBER in : 090$d > > I couldn't index the records as these fields have not been set up properly > in the record.abs file. > Could anyone provide me the configuration that I have to add on the > "record.abs" file to index the records properly? I'd appreciate it. > > The indexing reports following problem: > zebraidx(20053) [warn] Record didn't contain match fields in > (bib1,Local-number) > > Thank you. > > Best regards, > Dibyendra Hyoju > ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Indexing problem
Hello All, I have records in the Koha with biblionumber and biblionumber fields mapped to 090$c and 090$d marc fields. BIBLIONUMBER in : 090$c BIBLIOITEMNUMBER in : 090$d I couldn't index the records as these fields have not been set up properly in the record.abs file. Could anyone provide me the configuration that I have to add on the "record.abs" file to index the records properly? I'd appreciate it. The indexing reports following problem: zebraidx(20053) [warn] Record didn't contain match fields in (bib1,Local-number) Thank you. Best regards, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] 952$o subfield not displayed in OPAC
Hi Dave, We manually add 952 tag and necessary sub-fields in the MARC records and copy the call number from the relevant tags of MARC into 952$o field. 952 tag contains holdings information and OPAC displays the holdings information from 952 tags, not from the MARC tags. So, add 5144 952 tags into your MARC records and copy the call number from 050 to 952$o field using MarcEdit. I hope this helps! On 10/1/15, dc12345 <davidchat...@gmail.com> wrote: > Hi everyone, > > I've recently set up a web server running Koha for a small library at a > research institute, and I'm having issues with the OPAC in displaying the > itemcallnumber field. I originally converted my holdings from an Excel file > to .mrc format with MarcEdit and everything else imported perfectly. I am > using LCC for my call numbers rather than Dewey, and I changed the > DefaultClassificationSource to lcc, as well as the itemcallnumber to map to > 050a. And I'm using the default framework in Koha 3.20.02. > > The weird thing is, when I go to edit an individual record as an admin, the > full call number is there in the 952o subfield, just as it should be. It > just comes out blank in the OPAC. If I then save the entry without editing > it, it fixes the issue. I would just edit each book then, but I have 5144 > total books to edit, so there's got to be another way to fix it. Here's an > example of a MARC record as I originally imported it: > > =LDR 00303nam a2200109Ia 45e0 > =008 150928sxx000\0\und\d > =050 \\$aF1435.1 .C46 > =100 \\$aRobin, Cynthia > =245 \\$aEveryday Life Matters: Maya Farmers at Chan > =260 \\$bUniversity Press of Florida > =260 \\$c2013 > =952 \\$aMARI$bMARI$p03403$yBKS > > I've also tried adding the 952$o subfield before I import it, but I get the > same result. By the way, I know my 050 field should be split as > 050$aF1435.1$b.C46, but I'm an archaeologist and not a librarian (dammit > Jim!) and didn't realize this when I started this process. But I've also > imported single books this way and played around with formatting a lot, with > the same results. > > Any help would be greatly appreciated! Other than this hiccup, which is > surely my fault, I've been very impressed with Koha! > > Thanks! > Dave > > > > -- > View this message in context: > http://koha.1045719.n5.nabble.com/952-o-subfield-not-displayed-in-OPAC-tp5855379.html > Sent from the Koha-general mailing list archive at Nabble.com. > ___ > Koha mailing list http://koha-community.org > Koha@lists.katipo.co.nz > https://lists.katipo.co.nz/mailman/listinfo/koha > -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Disable search in certain Koha search
Hi all, I was looking at Koha preferences to disable searching in the certain tag fields of MARC records on OPAC, for instance I was trying to disable searching in 037 tag field, but couldn't find preferences to do that. If there are such preferences, please kindly suggest. Thank you. Regards, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Disable search in certain tag fields of MARC records during search
Hi all, I was looking at Koha preferences to disable searching in the certain tag fields of MARC records on OPAC, for instance I was trying to disable searching in 037 tag field, but couldn't find preferences to do that. If there are such preferences, please kindly suggest. Thank you. Regards, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Downgrade koha database from 3.16.x to 3.14.x
Hi all, Currently, I am using Koha 3.16.03 database with Koha 3.14.11 software because there is no search problem. I would appreicate if anybody have faced the similar situation and found the solutions for this issue. Thank you. Regards, Dibyendra On 10/6/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Hi all, I tried clearing all the ISBNs from isbn field in the biblioitems table in my test database and re-indexed the zebra index but the same problem is shown. That means it is not related to malformed ISBN, rather could be because of malformed MARC record? The same database works okay with Koha 3.14, which is there is no such search issues. Any suggestions would be appreciated! Thank you. Regards, Dibyendra On 10/4/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Thanks both of you for your response! I will postpone the idea of downgrading the database for a while. Zeno, I'll take a look at code to find out the exact problem, but looking at the snippet code in the email, this could be because of malformed ISBN, I guess. I will write to the list, if I come up with solutions. Thanks! -- Dibyendra On 10/4/14, Zeno Tajoli z.taj...@cineca.it wrote: Hi, (http://permalink.gmane.org/gmane.comp.misc.koha/36671) mentioned earlier in the Koha general mailing list, I am thinking to downgrade the database structure of Koha 3.16.4 to 3.14.x. I suggest you to not do this operation, the error is inside this code: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. 1586 1587 sub NormalizeISBN { 1588 my ($params) = @_; 1589 1590 my $string= $params-{isbn}; 1591 my $strip_hyphens = $params-{strip_hyphens}; 1592 my $format= $params-{format}; 1593 1594 return unless $string; 1595 1596 my $isbn = Business::ISBN-new($string); 1597 1598 if ( $isbn $isbn-is_valid() ) { 1599 1600 if ( $format eq 'ISBN-10' ) { 1601 $isbn = $isbn-as_isbn10(); 1602 } 1603 elsif ( $format eq 'ISBN-13' ) { 1604 $isbn = $isbn-as_isbn13(); 1605 } 1606 1607 if ($strip_hyphens) { 1608 $string = $isbn-as_string( [] ); 1609 } else { 1610 $string = $isbn-as_string(); 1611 } 1612 1613 return $string; 1614 } 1615 } Probably you have an 020 tag without data or same other problem. To understand better the situation you can try: -- find a search on opac that gives the error -- insert the swith -d in the opac-search.pl -- start opac-search.pl on command line and use perl debugger to find the exact problem Bye -- Dibyendra Hyoju -- Dibyendra Hyoju -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Downgrade koha database from 3.16.x to 3.14.x
Hi all, I tried clearing all the ISBNs from isbn field in the biblioitems table in my test database and re-indexed the zebra index but the same problem is shown. That means it is not related to malformed ISBN, rather could be because of malformed MARC record? The same database works okay with Koha 3.14, which is there is no such search issues. Any suggestions would be appreciated! Thank you. Regards, Dibyendra On 10/4/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Thanks both of you for your response! I will postpone the idea of downgrading the database for a while. Zeno, I'll take a look at code to find out the exact problem, but looking at the snippet code in the email, this could be because of malformed ISBN, I guess. I will write to the list, if I come up with solutions. Thanks! -- Dibyendra On 10/4/14, Zeno Tajoli z.taj...@cineca.it wrote: Hi, (http://permalink.gmane.org/gmane.comp.misc.koha/36671) mentioned earlier in the Koha general mailing list, I am thinking to downgrade the database structure of Koha 3.16.4 to 3.14.x. I suggest you to not do this operation, the error is inside this code: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. 1586 1587 sub NormalizeISBN { 1588 my ($params) = @_; 1589 1590 my $string= $params-{isbn}; 1591 my $strip_hyphens = $params-{strip_hyphens}; 1592 my $format= $params-{format}; 1593 1594 return unless $string; 1595 1596 my $isbn = Business::ISBN-new($string); 1597 1598 if ( $isbn $isbn-is_valid() ) { 1599 1600 if ( $format eq 'ISBN-10' ) { 1601 $isbn = $isbn-as_isbn10(); 1602 } 1603 elsif ( $format eq 'ISBN-13' ) { 1604 $isbn = $isbn-as_isbn13(); 1605 } 1606 1607 if ($strip_hyphens) { 1608 $string = $isbn-as_string( [] ); 1609 } else { 1610 $string = $isbn-as_string(); 1611 } 1612 1613 return $string; 1614 } 1615 } Probably you have an 020 tag without data or same other problem. To understand better the situation you can try: -- find a search on opac that gives the error -- insert the swith -d in the opac-search.pl -- start opac-search.pl on command line and use perl debugger to find the exact problem Bye -- Dibyendra Hyoju -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Problem in search
Hi again, Earlier, actually I used the database of Koha 3.16.01 and used it with Koha 3.14. I thought I used the database of version 3.14, but still the database worked okay. There is no searching problem while plugging the database of version 3.16 with Koha 3.14. But when I connect the database of 3.16 with Koha 3.16.x, the error appears again. Can I use database of Koha 3.16 with Koha 3.14? I also have to test it thoroughly to see the result. I'd appreciate if anyone of you can share your experience on fixing this issue. Thanks. Regards, Dibyendra On 10/4/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Hi Colin, Thanks for your response. I upgraded the Koha already to version 3.16.4, but the problem is still there. So, I tested the earlier database backups of koha 3.14 in a different machine having Koha 3.14 and there is no such problem with searching. So, from the test, I can say that either the database is not upgraded properly to 3.16 while upgrading the Koha, or the problem could be specific to Koha 3.16. Regards, Dibyendra On 10/3/14, Colin Campbell colin.campb...@ptfs-europe.com wrote: On Fri, Oct 03, 2014 at 07:33:24PM +0545, Dibyendra Hyoju wrote: Hi all, I've been facing the same issue from last 2-3 months, most probably after upgrading Koha from version 3.14 to 3.16. From OPAC, when I search for terms like Business, accounting, economics, I get the similar error: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. There are fixes in the latest 3.16 release for this error. Try upgrading to the latest 3.16.4 release Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campb...@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Downgrade koha database from 3.16.x to 3.14.x
Thanks both of you for your response! I will postpone the idea of downgrading the database for a while. Zeno, I'll take a look at code to find out the exact problem, but looking at the snippet code in the email, this could be because of malformed ISBN, I guess. I will write to the list, if I come up with solutions. Thanks! -- Dibyendra On 10/4/14, Zeno Tajoli z.taj...@cineca.it wrote: Hi, (http://permalink.gmane.org/gmane.comp.misc.koha/36671) mentioned earlier in the Koha general mailing list, I am thinking to downgrade the database structure of Koha 3.16.4 to 3.14.x. I suggest you to not do this operation, the error is inside this code: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. 1586 1587 sub NormalizeISBN { 1588 my ($params) = @_; 1589 1590 my $string= $params-{isbn}; 1591 my $strip_hyphens = $params-{strip_hyphens}; 1592 my $format= $params-{format}; 1593 1594 return unless $string; 1595 1596 my $isbn = Business::ISBN-new($string); 1597 1598 if ( $isbn $isbn-is_valid() ) { 1599 1600 if ( $format eq 'ISBN-10' ) { 1601 $isbn = $isbn-as_isbn10(); 1602 } 1603 elsif ( $format eq 'ISBN-13' ) { 1604 $isbn = $isbn-as_isbn13(); 1605 } 1606 1607 if ($strip_hyphens) { 1608 $string = $isbn-as_string( [] ); 1609 } else { 1610 $string = $isbn-as_string(); 1611 } 1612 1613 return $string; 1614 } 1615 } Probably you have an 020 tag without data or same other problem. To understand better the situation you can try: -- find a search on opac that gives the error -- insert the swith -d in the opac-search.pl -- start opac-search.pl on command line and use perl debugger to find the exact problem Bye -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Problem in search
Hi all, I've been facing the same issue from last 2-3 months, most probably after upgrading Koha from version 3.14 to 3.16. From OPAC, when I search for terms like Business, accounting, economics, I get the similar error: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. I checked using yaz-client and searched for the terms which produced errors, but not sure how to find the broken records. Any suggestions would be appreciated. Thanks! On 8/27/14, Tomas Cohen Arazi tomasco...@gmail.com wrote: On Tue, Aug 26, 2014 at 9:37 AM, ahmnas ahmad.nasse...@gmail.com wrote: Dear friends i have ubuntu 12.04 and koha version 3.16.2, and when i search with some words like education or drugs the system give me this error Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. how solve this problem it's the first time see it and i need to solve for searching and users used system. That error means a record being retrieved from Zebra is malformed. I recommend that you perform the same search using yaz-client against your biblios database and look for the broken record. Regards To+ -- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Problem in search
Hi again, Just to let you all know that, earlier there were no such problems. This means it could be problem with the version of Koha rather than with the malformed or broken records. Not sure how to solve this issue. I tried to syncronize the database structure of the upgraded database with the one that comes with the database structure of the latest koha database, but the same problem persists. Any help would be appreciated! Thanks! Regards, Dibyendra On 10/3/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Hi all, I've been facing the same issue from last 2-3 months, most probably after upgrading Koha from version 3.14 to 3.16. From OPAC, when I search for terms like Business, accounting, economics, I get the similar error: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. I checked using yaz-client and searched for the terms which produced errors, but not sure how to find the broken records. Any suggestions would be appreciated. Thanks! On 8/27/14, Tomas Cohen Arazi tomasco...@gmail.com wrote: On Tue, Aug 26, 2014 at 9:37 AM, ahmnas ahmad.nasse...@gmail.com wrote: Dear friends i have ubuntu 12.04 and koha version 3.16.2, and when i search with some words like education or drugs the system give me this error Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. how solve this problem it's the first time see it and i need to solve for searching and users used system. That error means a record being retrieved from Zebra is malformed. I recommend that you perform the same search using yaz-client against your biblios database and look for the broken record. Regards To+ -- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Problem in search
Hi Colin, Thanks for your response. I upgraded the Koha already to version 3.16.4, but the problem is still there. So, I tested the earlier database backups of koha 3.14 in a different machine having Koha 3.14 and there is no such problem with searching. So, from the test, I can say that either the database is not upgraded properly to 3.16 while upgrading the Koha, or the problem could be specific to Koha 3.16. Regards, Dibyendra On 10/3/14, Colin Campbell colin.campb...@ptfs-europe.com wrote: On Fri, Oct 03, 2014 at 07:33:24PM +0545, Dibyendra Hyoju wrote: Hi all, I've been facing the same issue from last 2-3 months, most probably after upgrading Koha from version 3.14 to 3.16. From OPAC, when I search for terms like Business, accounting, economics, I get the similar error: Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. There are fixes in the latest 3.16 release for this error. Try upgrading to the latest 3.16.4 release Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campb...@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Regardng Koha search
Hi again, Thanks for your response. I checked the file /etc/koha/zebradb/marc_defs/marc21/biblios/record.abs and Local-Number is mapped to 999$c. melm 999$c Local-Number:n,Local-Number:w,Local-Number:s Any further suggestions would be appreciated! Thanks! Regards, Dibyendra On 7/18/14, Fridolin SOMERS fridolin.som...@biblibre.com wrote: Hie, Which field is mapped with biblio.biblionumber ? Check it is indexed as Local-Number in biblios/records.abs Le 17/07/2014 14:06, Fridolin SOMERS a écrit : Since 3.10, the zebra config as changed remplacing 'usmarc' by the marc flavour you use. I advice you to reinstall Koha to generate new configuration. Best regards, Le 17/07/2014 10:55, Dibyendra Hyoju a écrit : Hi all, I upgraded the Koha database recently from 3.6 to 3.14 and again into 3.16. Koha is showing errors (mentioned below) during the search, maybe because of the upgrade, I guess. Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. Some of the keywords I used during the search are: account, business and accounting but while other keywords don't have problem. Any idea how to resolve this problem? Thank you. -- Fridolin SOMERS Biblibre - Pôles support et système fridolin.som...@biblibre.com ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Regardng Koha search
Hi, I created another instance using koha-create command and created a new database in which I imported catalogues which contain word 'business' and 'account' and other keywords which when searched generated error in the earlier database and it works. I am wondering what could be the solution. Both databases are in the same system. Any suggestions would be highly appreciated! Thanks! Dibyendra On 7/19/14, Dibyendra Hyoju dibyen...@gmail.com wrote: Hi again, Thanks for your response. I checked the file /etc/koha/zebradb/marc_defs/marc21/biblios/record.abs and Local-Number is mapped to 999$c. melm 999$c Local-Number:n,Local-Number:w,Local-Number:s Any further suggestions would be appreciated! Thanks! Regards, Dibyendra On 7/18/14, Fridolin SOMERS fridolin.som...@biblibre.com wrote: Hie, Which field is mapped with biblio.biblionumber ? Check it is indexed as Local-Number in biblios/records.abs Le 17/07/2014 14:06, Fridolin SOMERS a écrit : Since 3.10, the zebra config as changed remplacing 'usmarc' by the marc flavour you use. I advice you to reinstall Koha to generate new configuration. Best regards, Le 17/07/2014 10:55, Dibyendra Hyoju a écrit : Hi all, I upgraded the Koha database recently from 3.6 to 3.14 and again into 3.16. Koha is showing errors (mentioned below) during the search, maybe because of the upgrade, I guess. Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. Some of the keywords I used during the search are: account, business and accounting but while other keywords don't have problem. Any idea how to resolve this problem? Thank you. -- Fridolin SOMERS Biblibre - Pôles support et système fridolin.som...@biblibre.com ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Regardng Koha search
Hi all, I upgraded the Koha database recently from 3.6 to 3.14 and again into 3.16. Koha is showing errors (mentioned below) during the search, maybe because of the upgrade, I guess. Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. Some of the keywords I used during the search are: account, business and accounting but while other keywords don't have problem. Any idea how to resolve this problem? Thank you. -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Koha search error
Hi all, Just recently after upgrading the Koha from 3.14 to 3.16 we have been facing following problem when certain keywords are used during the search like: account, business, accounting, financial, financial accounting, etc. Earlier there were no such problems. But when I search other keywords apart from the mentioned keywords, there are no problems. Has anyone faced this kind of problem and found a solutions already? Any help would be appreciated. Thanks. Software error: Can't call method as_string on an undefined value at /usr/share/koha/lib/C4/Koha.pm line 1608. Regards, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Upgrading Koha from 3.06 to 3.14
Thank Robin and all for your response. I tried the way Robin suggested and it worked, however I got the following error while issuing the koha-mysql instancename sqlfile command: ERROR 1005 (HY000) at line 2752: Can't create table 'koha_library.letter' (errno: 150) Also, I couldn't find the saved Koha reports after importing the earlier Koha database. It is not a big issue as I can manually create reports from the SQL.But I am wondering, why the saved reports were not imported even after issuing koha-upgrade-schema command. Apart from these issue, I found catalogues, holdings info and patron information imported correctly. I quickly checked the circulation info and I think it has also been imported. Regards, Dibyendra On 3/28/14, Robin Sheat ro...@catalyst.net.nz wrote: Paul A schreef op do 27-03-2014 om 09:36 [-0400]: Perhaps not germane to this Koha question, but your suggestion sudo apt-get dist-upgrade _may_ cause unintended consequences with the o/s. It possibly will, though probably not. It will also not really upgrade koha, as it doesn't cover moving the data. My suggestion (and I've done this a few times) is to install Koha from the packages (already done), take a database dump of the old one using mysqldump, create an instance in the new install (koha-create), and then load the data into the new instance. This last part can be done with: sudo koha-mysql instancename dumpfile.sql Then you can run: sudo koha-upgrade-schema instancename wait a while (if you have a lot of data and history), and you'll have an up-to-date installation. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Upgrading Koha from 3.06 to 3.14
Thanks Chris and all! I dropped all the database tables and imported the earlier 3.06 database and performed import and upgrade command and it worked perfectly! Regards, Dibyendra On 3/30/14, Chris Cormack ch...@bigballofwax.co.nz wrote: On 30 March 2014 23:00, Dibyendra Hyoju dibyen...@gmail.com wrote: Thank Robin and all for your response. I tried the way Robin suggested and it worked, however I got the following error while issuing the koha-mysql instancename sqlfile command: ERROR 1005 (HY000) at line 2752: Can't create table 'koha_library.letter' (errno: 150) Also, I couldn't find the saved Koha reports after importing the earlier Koha database. It is not a big issue as I can manually create reports from the SQL.But I am wondering, why the saved reports were not imported even after issuing koha-upgrade-schema command. Apart from these issue, I found catalogues, holdings info and patron information imported correctly. I quickly checked the circulation info and I think it has also been imported. You will have other hidden issues, it will have stopped at the letter table and not created tables after that (including the reports which you have noticed). You will to search what an error 150 is, and then try your import again fixing whatever you need to get the letter table to be created. Chris ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Upgrading Koha from 3.06 to 3.14
Hi all, I installed Koha 3.06 from the source few years back. Recently, I have also installed Koha 3.14 using koha-common into another machine. My queries are: 1. I was wondering if there is a way to upgrade the database of Koha 3.06 to 3.14. 2. Or can we upgrade the Koha 3.06 to 3.14 using Koha 3.14 source? Thanking you, Dibyendra Hyoju ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Koha installation on Debian/Ubuntu
Hi Deepak, Yes, you are doing correctly. If you have any problem using the guide, please let me know. All the best! With regards, Dibyendra On Thu, Aug 18, 2011 at 3:01 PM, Deepak Bhatia deepak.bha...@nechclst.inwrote: Hi Dibyendra, ** ** I will explain what I am doing ** ** **1. **When I install the Ubuntu 11, then I create a user by my name “deepak” **2. **Then I login as deepak and set the password for root using “sudo passwd root” **3. **Then create a koha user while logged in as deepak, using the command “adduser koha” **4. **Then I do “sudo users-admin” and give administer rights to koha **5. **Then I logout and login using koha **6. **Then I follow the steps after that as suggested by you in your PDF. ** ** Then when I run $sudo cpan HTTP::OAI, this fails (But earlier sudo commands had worked, like sudo apt-get update, sudo dselect) ** ** Please let me know if I am doing correctly. ** ** Regards ** ** Deepak Bhatia ** ** *From:* koha-boun...@lists.katipo.co.nz [mailto: koha-boun...@lists.katipo.co.nz] *On Behalf Of *Dibyendra Hyoju *Sent:* Thursday, August 18, 2011 10:39 AM *To:* G. Laws *Cc:* koha@lists.katipo.co.nz *Subject:* Re: [Koha] Koha installation on Debian/Ubuntu ** ** Alternate way to do that is by opening the User and Groups tool and performing following steps: ** ** 1. Select koha user 2. Select Advanced settings 3. Provide the password of current user (or who can perform sudo) 4. Select User Privileges tab and check Administer the system check box. ** ** Now you can do sudo using koha user as well. ** ** With regards, Dibyendra ** ** 2011/8/18 G. Laws glaw...@rhcl.org You need to add user koha to the /etc/sudoers file. Greg -- On 08/17/2011 05:55 AM, Deepak Bhatia wrote: Hi Dibyendra, When I run the command below in Ubuntu 11, I get a screen which then hangs. *$ *sudo users-admin Can I run the commands logged in as root …? Or please tell me how can I make user koha as administrator ? Regards Deepak Bhatia *From:* koha-boun...@lists.katipo.co.nz [ mailto:koha-boun...@lists.katipo.co.nz koha-boun...@lists.katipo.co.nz] *On Behalf Of *Dibyendra Hyoju *Sent:* Monday, August 15, 2011 12:22 PM *To:* naraya...@usp.ac.fj *Cc:* koha@lists.katipo.co.nz *Subject:* Re: [Koha] Koha installation on Debian/Ubuntu Hi Gyaneshwar Narayan, I had prepared this detail installation guide for the Koha workshop. I hope it will be useful for you to install Koha on Ubunu. Good luck! With regards, Dibyendra Hyoju Madan Puraskar Pustakalaya Patan Dhoka, Lalitpur, Nepal Telephone: 977-1-5005515, 977-1-5549948 Web: http://madanpuraskar.org/ On Mon, Aug 15, 2011 at 6:00 AM, Gyaneshwar Narayan Junior naraya...@usp.ac.fj wrote: My apologies!!! Thanks for the infor by the way -Original Message- From: koha-boun...@lists.katipo.co.nz [mailto: koha-boun...@lists.katipo.co.nz] On Behalf Of Robin Sheat Sent: Monday, 15 August 2011 12:05 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Koha installation on Debian/Ubuntu Gyaneshwar Narayan Junior schreef op ma 15-08-2011 om 09:07 [+1200]: I am just wondering if anyone has a PDF/Word documentation of KOHA installation on Debian or Ubuntu. I am a first time user and I am finding it very difficult to install KOHA. Any prompt help will be highly appreciated. Two points: 1) Koha isn't an acronym, so it doesn't need to be in capitals. It's a normal word. 2) The wiki is full of information on installing Koha. For example: http://wiki.koha-community.org/wiki/Koha_3.2_on_Debian_Squeeze -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author
Re: [Koha] Koha installation on Debian/Ubuntu
You can view the revised document in the following URL: http://www.docstoc.com/docs/90816646/Koha-34-Installation-on-Ubuntu-11 If you find any other mistakes, please let me know. With regards, Dibyendra On Thu, Aug 18, 2011 at 5:47 PM, 毛慶禎 m...@lins.fju.edu.tw wrote: Dear Dibyendra, Thanks for such quick reply. One more place. Could you review it again? 9.1.6 Test your SAX parser again 9.1.6.1 $ ./misc/sax_parser_print.pl Note: If the screen prints the following output, then your SAX parser will work well with Koha: Koha wants something like: XML::LibXML::SAX::Parser=HASH(0x81fe220) You have: XML::LibXML::SAX::Parser=HASH(0x85dbd68) Looks good. Note: If you still see the same “Looks bad” message instead of message as shown in 13.1.7, the you have to perform steps as shown in 13.1.8. Otherwise, you can jump to step 14 2011/8/18 Dibyendra Hyoju dibyen...@gmail.com: Hello Anthony Mao, My mistake. Actually there used to be that step in the original installation guide which was prepared for the Koha workshop, but later I edited the guide and removed steps which was specific for that particular workshop, to make it generic for Ubuntu users. Thank you for pointing my mistake. I have edited the document once again. Please find attached herewith the updated document. Good luck! With warm regards, Dibyendra On Wed, Aug 17, 2011 at 9:12 AM, 毛慶禎 m...@lins.fju.edu.tw wrote: Dear Dibyendra, I am so happy that you provide this paper for us. KOHA 3.4 INSTALLATION ON UBUNTU LINUX It helps me a lot. One question. 13.1.8 and 13.1.7 are not available in this document. 9.1.7 Reinstall SAX and libxml 9.1.7.1 $ sudo cpan CPANPLUS 9.1.7.2 $ sudo cpanp -u XML::SAX 9.1.7.3 $ LC_ALL=C sudo apt-get install --reinstall libxml-sax-perl 9.1.7.4 $ sudo apt-get install libxml-libxml-perl Note: After performing the steps as shown in 13.1.8, test your SAX parser again as shown in 13.1.7. 2011/8/15 Dibyendra Hyoju dibyen...@gmail.com: Hi Gyaneshwar Narayan, I had prepared this detail installation guide for the Koha workshop. I hope it will be useful for you to install Koha on Ubunu. Good luck! With regards, Dibyendra Hyoju Madan Puraskar Pustakalaya Patan Dhoka, Lalitpur, Nepal Telephone: 977-1-5005515, 977-1-5549948 Web: http://madanpuraskar.org/ -- Wishing you all the best. . . . Anthony Mao 毛慶禎 http://bit.ly/maolins Department of Library and Information Science Fu Jen Catholic University http://bit.ly/lins 510 Jhongjheng Rd., Sinjhuang City, Taipei County 24205, Taiwan -- Wishing you all the best. . . . Anthony Mao 毛慶禎 http://bit.ly/maolins Department of Library and Information Science Fu Jen Catholic University http://bit.ly/lins 510 Jhongjheng Rd., Sinjhuang City, Taipei County 24205, Taiwan ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Koha installation on Debian/Ubuntu
Alternate way to do that is by opening the User and Groups tool and performing following steps: 1. Select koha user 2. Select Advanced settings 3. Provide the password of current user (or who can perform sudo) 4. Select User Privileges tab and check Administer the system check box. Now you can do sudo using koha user as well. With regards, Dibyendra 2011/8/18 G. Laws glaw...@rhcl.org You need to add user koha to the /etc/sudoers file. Greg -- On 08/17/2011 05:55 AM, Deepak Bhatia wrote: Hi Dibyendra, ** ** When I run the command below in Ubuntu 11, I get a screen which then hangs. ** ** *$ *sudo users-admin ** ** Can I run the commands logged in as root …? ** ** Or please tell me how can I make user koha as administrator ? ** ** Regards ** ** Deepak Bhatia ** ** *From:* koha-boun...@lists.katipo.co.nz [ mailto:koha-boun...@lists.katipo.co.nz koha-boun...@lists.katipo.co.nz] *On Behalf Of *Dibyendra Hyoju *Sent:* Monday, August 15, 2011 12:22 PM *To:* naraya...@usp.ac.fj *Cc:* koha@lists.katipo.co.nz *Subject:* Re: [Koha] Koha installation on Debian/Ubuntu ** ** Hi Gyaneshwar Narayan, ** ** I had prepared this detail installation guide for the Koha workshop. I hope it will be useful for you to install Koha on Ubunu. ** ** Good luck! ** ** With regards, ** ** Dibyendra Hyoju Madan Puraskar Pustakalaya Patan Dhoka, Lalitpur, Nepal Telephone: 977-1-5005515, 977-1-5549948 Web: http://madanpuraskar.org/ On Mon, Aug 15, 2011 at 6:00 AM, Gyaneshwar Narayan Junior naraya...@usp.ac.fj wrote: My apologies!!! Thanks for the infor by the way -Original Message- From: koha-boun...@lists.katipo.co.nz [mailto: koha-boun...@lists.katipo.co.nz] On Behalf Of Robin Sheat Sent: Monday, 15 August 2011 12:05 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Koha installation on Debian/Ubuntu Gyaneshwar Narayan Junior schreef op ma 15-08-2011 om 09:07 [+1200]: I am just wondering if anyone has a PDF/Word documentation of KOHA installation on Debian or Ubuntu. I am a first time user and I am finding it very difficult to install KOHA. Any prompt help will be highly appreciated. Two points: 1) Koha isn't an acronym, so it doesn't need to be in capitals. It's a normal word. 2) The wiki is full of information on installing Koha. For example: http://wiki.koha-community.org/wiki/Koha_3.2_on_Debian_Squeeze -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 %2B64%204%20803%202204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha ** ** DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . --- ___ Koha mailing list http://koha-community.orgk...@lists.katipo.co.nzhttp://lists.katipo.co.nz/mailman/listinfo/koha -- Greg Lawson Rolling Hills Consolidated Library 1912 N. Belt Highway St. Joseph, MO 64506 ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha