Re: [Koha] Koha 20.05 - Adding a description meta tag to <head>
Hi all, The jquery wasn't picked up by Google; however, I upgraded to 20.11 and took advantage of the new syspref that allows you to insert a meta description in Opacusercss. It was picked up by Google after a few days. Yay! Craig Butosi, MA, MLIS, BMus Hons. Library: library.craigbutosi.ca On Mon, Jan 4, 2021, 3:06 PM Craig Butosi <cbutosi@gmail.com> wrote:
Hi all,
The jquery wasn't picked up by Google; however, I upgraded to 20.11 and took advantage of the new syspref that allows you to insert a meta description in Opacusercss. It was picked up by Google after a few days. Yay!
C
Craig Butosi, MA, MLIS, BMus Hons. Library: library.craigbutosi.ca
On Mon, Jan 4, 2021, 1:11 PM Elaine Bradtke <eb@efdss.org> wrote:
Just curious what the result was. I'm interested in trying it myself. We just got a 'no description' flag on two catalogue records (out of thousands). The working theory is it's really flagging the whole catalogue, but the bot only looked at two records. Elaine VWML <https://vwml.org>
On Sun, Jun 21, 2020 at 10:30 AM Craig Butosi <cbutosi@gmail.com> wrote:
Hi Alvaro,
Thank you for this. Wasn't sure if a jquery stanza would be picked up by Googlebot or not. I'll do something like,
//Insert description meta tag in <head> $(head).append('<meta name="description" content="{description of content here}" />');
in OpacUserJS and see what happens.
Many thanks,
Craig Butosi, MA, MLIS, B Mus (Hons) Library: library.craigbutosi.ca
On Sun, Jun 21, 2020 at 1:14 PM Alvaro Cornejo <cornejo.alvaro@gmail.com
wrote:
Hi Craig
You can do it either way
However, it is always better to avoid modifying koha code to avoid conflicts when upgrading/updating koha versions.
Regards,
Alvaro
|----------------------------------------------------------------------------------------|
Stay safe / Cuídate/ Reste sécurisé *7* Switch off as you go / Apaga lo que no usas / Débranchez au fur et à mesure. *q *Recycle always / Recicla siempre / Recyclez toujours P Print only if absolutely necessary / Imprime solo si es necesario / Imprimez seulement si nécessaire
Le dim. 21 juin 2020 à 11:06, Craig Butosi <cbutosi@gmail.com> a écrit :
Hi all, Running Koha 20.05 on Ubuntu 18.04 (Bionic).
I was interested in adding a description meta tag in my instance of Koha for Google indexing reasons. It looks like the included meta tags as part of a Koha package install are located here:
/usr/share/koha/htdocs/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
Would it be better to inject the description meta tag using a jQuery stanza in OpacUserJs, or edit the doc-head-close.inc file directly?
Many thanks,
Craig Butosi, MA, MLIS, B Mus (Hons) Library: library.craigbutosi.ca _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (1)
-
Craig Butosi