[Koha] Koha 16.05 - Changing Material Type Values with JQuery?

Tomas Cohen Arazi tomascohen at gmail.com
Mon Mar 13 15:29:45 NZDT 2017


+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().replace('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


More information about the Koha mailing list