Posts

Showing posts from January, 2020

googleopenidconnect issue in Koha. Error: invalid_request* Invalid parameter value for redirect_uri: Missing scheme: /cgi-bin/koha/svc/auth/googleopenidconnect

First verify the following parameters in Google Developer’s Console : client id client secret  Authorized JavaScript origins (koha_opac_url) Authorized redirect URIs ( koha_opac_url//cgi-bin/koha/svc/auth/googleopenidconnect ) Make sure to set the following parameters in Koha system preferences: GoogleOAuth2ClientID : Google  OAuth2 Client ID GoogleOAuth2ClientSecret :  Google  OAuth2 Client Secret GoogleOpenIDConnect : Yes GoogleOpenIDConnectDomain : your domain (to restrict users from other domains to login) Finally check the OPACBaseURL in  Koha system preferences:

[Koha] How to upgrade Koha 19.11 to Koha 20.11? Also upgrade Ubuntu 18.04 to Ubuntu 20.04.

To upgrade Koha to 20.11, I would recommend to upgrade the operating system too. In my case I have upgraded Ubuntu 18.04 to 20.04 and then upgraded the Koha 19.11 to 20.11. To upgrade the OS, follow the steps below:  Step 1 : # sudo apt update Step 2 : # sudo apt upgrade Step 3: # sudo apt dist-upgrade Step 4: # sudo apt-get autoremove Step 5: #s udo apt install update-manager-core Step 6: # sudo do-release-upgrade Now to upgrade the Koha, follow the steps below:  Step 1: # sudo apt-get update Step 2: # sudo apt-get upgrade Step 3: # echo 'deb  http://debian.koha-community.org/koha  20.11 main' | sudo tee /etc/apt/sources.list.d/koha.list Step 4 :  #   sudo apt-get update Step 5: # sudo apt-get install koha-common Step  6: # sudo apt-get clean Step 7: # sudo koha-upgrade-schema   library (where 'li brary' is the koha instance name] Step 8: # sudo koha-rebuild-zebra -v -f library

Koha and Google’s OAuth 2.0 API to authenticate. How to setup Google Authentication in Koha 19.11?

Image
To setup the Google Authentication with Koha LMS, first you have to go to   Google Developer’s Console  to obtain OAuth 2.0 credentials for your application (in our case is Koha LMS) Create a new project and name it (Give a logical name - Cannot be edited) Next search for  Identity and Access Management (IAM) API   and enable it. Next, set the consent screen values: Application type : Internal  Application Name : Koha - LMS  (This name is what users will see) Application Logo : Upload your logo (Max. size 1MB) Support email : youremail address (shown to users) Authorized domains :  jnec.edu.bt    (press Enter to add it) Save it. Next create the credentials. Click on Create credentials and select OAuth client ID from the dropdown. Set the following parameters : Application type : Web application Name : Koha (Any name) Authorized JavaScript origins :  https://yourkohasite  (press Enter to add it) Authorized redirect URIs

Koha New Arrival Carousel Display on OPAC with Koha Coverflow Plugin

Image
First you will need to turn on the koha plugin system Open the koha-config.xml file #vim /etc/koha/sites/library/koha-conf.xml Change  <enable_plugins>0<enable_plugins>  to  <enable_plugins>1</enable_plugins>  in your koha-conf.xml file Confirm that the path to  <pluginsdir>  exists, in my case the path is   <pluginsdir>/var/lib/koha/library/plugins</pluginsdir> #/ect/init.d/apache2 restart   //Restart Webserver # /etc/init.d/memcached restart //Restart memcached Next go to Koha  system preference and enable the  UseKohaPlugins ( UseKohaPlugins  system preferences is removed in latest koha.  Koha plugins now only depends on config key  enable_plugins . ) Now, if you go to Administration -> Tools, you will see Tools Plugin  Now upload the  Koha Coverflow Plugin ( koha-coverflow-plugin-v2.4.29.kpz ) which can be downloaded from the following link: https://github.com/bywatersolutions/koha-plugin-coverflow/releases

Create Internal Page in Koha. Creating pages in Koha 19.11.

Image
Here is how to create a internal page in Koha 19.11 and how to link to a menu in Koha OPAC page. # cd  /usr/share/koha/opac/cgi-bin/opac #  cp opac-main.pl pages.pl   # vim pages.pl At around line line no#39 look for following line : template_name  => "opac-main.tmpl", You may either comment (with #) or replace the ' opac-mail.tmpl ' with ' pages.tt ' that you have created as template_name  => "pages.tt",   Now add the following code at around line no#112 my $page = "page_" . $input->param('p');                       my $preference = C4::Context->preference($page);              $template->{VARS}->{'page_test'} = $preference;   Save and exit the page. Next, Change the permission of the pages.pl #chmod 755 pages.pl Next: #cd /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules # cp opac-main.tt pages.tt #vim pages.tt At around line no# 109 look f