[Koha] Koha 16.05 - Changing Material Type Values with JQuery?
Craig Butosi
craig.butosi at rcmusic.ca
Tue Mar 14 03:13:44 NZDT 2017
Hi all,
Liz, thank you! With a slight syntax change, it worked on the OPAC side (opacuserjs):
$('.results_summary.type').html($('.results_summary.type').html().replace('Music',
' Sound recording '));
Still trying to get it to work on the intranet side though (intranetuserjs). I'll look into this once I get a chance.
Much appreciated!
C
Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
THE ROYAL CONSERVATORY
TELUS Centre for Performance and Learning
273 Bloor Street West
Toronto, ON M5S 1W2
416.408.2824 x338
www.rcmusic.ca
-----Original Message-----
From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Tomas Cohen Arazi
Sent: March-12-17 10:30 PM
To: Liz Rea; koha at lists.katipo.co.nz
Subject: Re: [Koha] Koha 16.05 - Changing Material Type Values with JQuery?
+1
El dom., 12 de mar. de 2017 6:18 PM, Liz Rea <liz at catalyst.net.nz> escribió:
> Hi Craig,
>
> try something like:
>
>
> $('.results_material_type').html($('.results_material_type').html().re
> place('Music',
> 'Sound Recording'));
>
> It's not the prettiest thing, but I think it will work.
>
> Cheers,
> Liz
> On 11/03/17 07:45, Craig Butosi wrote:
> > Hi all,
> >
> > Koha 16.05 on Ubuntu 14.04 (package install).
> >
> > Has anyone successfully changed the Material Type field values (set
> > by
> LDR/06) found in the XSLT templates using JQuery? I'd rather not edit
> templates directly.
> >
> > I am trying to change the default value "Music" for bib records that
> > are
> set to LDR/06 - j - Musical Sound Recording to read "Sound Recordings"
> instead. I.e.,:
> >
> > $(".results_material_type:contains('Music')").text("Sound
> > recording");
> >
> > At the risk of stating the obvious, I am, of course, placing this
> > script
> in OPACUSERJS.
> >
> > Would a kind soul have any suggestions? Unsure where I'm going wrong
> here. Apologies if this is too off-topic.
> >
> > Many thanks,
> >
> > Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the
> > royal conservatory TELUS Centre for Performance and Learning
> > 273 Bloor Street West
> > Toronto, ON M5S 1W2
> > 416.408.2824 x338
> > www.rcmusic.ca<http://www.rcmusic.ca/>
> >
> >
> >
> > Note: This email message and any attachments are intended only for
> > the
> use of the individual to which it is addressed, and may contain
> information that is privileged, confidential and exempt from
> disclosure under applicable law. If the recipient of this email is not
> the intended recipient (or the employee or agent responsible for
> delivering the email to the intended recipient), you are hereby
> notified that any review, dissemination, distribution or copying or
> other use of this message is strictly prohibited. If you have received
> this communication in error, please notify the sender immediately by
> return email and delete this message and attachments from your system, thank you.
> > _______________________________________________
> > Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
>
> --
> --
> Liz Rea
> Catalyst.Net Limited
> Level 6, Catalyst House,
> 150 Willis Street, Wellington.
> P.O Box 11053, Manners Street,
> Wellington 6142
>
> GPG: B149 A443 6B01 7386 C2C7 F481 B6c2 A49D 3726 38B7
>
>
> _______________________________________________
> Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
More information about the Koha
mailing list