[Koha] Koha 16.05 - Changing Material Type Values with JQuery?
Liz Rea
liz at catalyst.net.nz
Mon Mar 13 10:18:21 NZDT 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.katipo.co.nz/pipermail/koha/attachments/20170313/3ea966c1/attachment.sig>
More information about the Koha
mailing list