Skip to content

Commit

Permalink
fix: missed 2 path references
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Oct 3, 2024
1 parent 071bf09 commit 51be8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog-js/details-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (location.pathname.match('/cgi-bin/koha/opac-detail.pl')) {

// add permalink - pull biblionumber from unapi tag
let biblionumber = $('.unapi-id').attr('title').split(':')[2]
let permalink = path + '?biblionumber=' + biblionumber
let permalink = location.pathname + '?biblionumber=' + biblionumber
$('#action').append('<li><a class="btn btn-link btn-lg" id="permalink" href="' + permalink + '"><i class="fa fa-fw fa-link"></i> Permanent Link</a></li>')
})
}
2 changes: 1 addition & 1 deletion catalog-js/home-search.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// better home page column layout, simpler search form

// run only on home pg (could be at domain root or its own path)
if (location.pathname.match('cgi-bin/koha/opac-main.pl') || path === '/') {
if (location.pathname.match('cgi-bin/koha/opac-main.pl') || location.pathname === '/') {
// we want no form controls over than text input & search button
// we hide most with CSS but the library branch selector has a parent
// element with only layout classes so it's easier to remove with JS
Expand Down

0 comments on commit 51be8ed

Please sign in to comment.