[Koha-bugs] [Bug 29185] Show MARC21 tag 765 - Original Language Entry

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 9 17:01:20 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29185

--- Comment #22 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Tomás Cohen Arazi from comment #20)
> I think quoting here is a bit naive... Can we make it use the
> quote_search_terms XSLT template we have:
> 
> https://git.koha-community.org/Koha-community/Koha/src/branch/master/koha-
> tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl#L589
> 
> Example usage:
> https://git.koha-community.org/Koha-community/Koha/src/branch/master/koha-
> tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl#L219-L223

Could you elaborate on this one please?
Which construction do you object to ?

<xsl:value-of
select="normalize-space(translate(substring-before(marc:subfield[@code=$cnum_subfield],')'),'()',''))"/>

OR

<xsl:value-of
select="str:encode-uri(concat($scriptname,'?q=ti,phr:',translate(marc:subfield[@code=$title_subfield],
'()', '')),false())"/>

In both cases it is not just about quoting a URI part.

Note that they are not completely new inventions, but adjusted existent
constructs moved to a central template.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list