Skip to content

Commit

Permalink
encylopedia sample: fix browser history navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Sep 1, 2023
1 parent 3056e0e commit affe105
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion modules/config.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare variable $config:enable-proxy-caching :=
: In this case, change $config:webcomponents-cdn to point to http://localhost:port
: (default: 8000, but check where your server is running).
:)
declare variable $config:webcomponents := "2.12.4";
declare variable $config:webcomponents := "2.12.6";

(:~
: CDN URL to use for loading webcomponents. Could be changed if you created your
Expand Down
2 changes: 1 addition & 1 deletion modules/custom-api.xql
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare %private function api:output-lemma($list, $category as xs:string, $searc
let $lemmaField := ft:field($lemma, "lemma")
return
<div class="term">
<pb-link emit="detail" params='{{"search": "{$lemmaField}"}}'>
<pb-link emit="detail" subscribe="detail" params='{{"search": "{$lemmaField}"}}'>
{$lemmaField}
</pb-link>
</div>
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"license": "GPL-3.0",
"dependencies": {
"@teipublisher/pb-components": "^2.12.4"
"@teipublisher/pb-components": "^2.12.6"
},
"devDependencies": {
"adm-zip": "^0.5.9",
Expand Down
13 changes: 0 additions & 13 deletions templates/pages/tei-lex.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,5 @@
</app-drawer-layout>
</pb-page>
<div class="splash"/>
<script>
/*document.addEventListener('DOMContentLoaded', () => {
pbEvents.subscribe('pb-end-update', 'transcription', () => {
const terms = document.querySelectorAll('pb-split-list .term pb-link');
if (terms.length === 1) {
const id = terms[0].getAttribute('xml-id');
pbEvents.emit('pb-update', 'detail', {
id
});
}
});
});*/
</script>
</body>
</html>

0 comments on commit affe105

Please sign in to comment.