Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a search session and query parameter to singleViews, closes #282 #329

Merged
merged 7 commits into from
Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add processing and styling of exist:match elements #282
  • Loading branch information
peterstadler committed Nov 13, 2019
commit 9d7e09a3ca1e97edfb24ac571154efed3de11541
2 changes: 1 addition & 1 deletion resources/sass/pages/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
}

*[class*="hi-"], *[class*="hi-"] *, .kwic .hi {
*[class*="hi-"], *[class*="hi-"] *, .hi {
color: #ffffff !important;
background-color: $primary !important;
}
Expand Down
15 changes: 14 additions & 1 deletion xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
xmlns:functx="http://www.functx.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:teix="http://www.tei-c.org/ns/Examples"
xmlns:mei="http://www.music-encoding.org/ns/mei" version="2.0">
xmlns:mei="http://www.music-encoding.org/ns/mei"
xmlns:exist="http://exist.sourceforge.net/NS/exist"
version="2.0">

<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" indent="no"/>

Expand Down Expand Up @@ -825,4 +827,15 @@
</xsl:attribute>
</xsl:template>

<!-- ********************************************* -->
<!-- * Templates for highlighting search resutls * -->
<!-- ********************************************* -->

<xsl:template match="exist:match">
<xsl:element name="span">
<xsl:attribute name="class">hi</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

</xsl:stylesheet>