Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
koha
/
ebba.js
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 812 Bytes
master
Breadcrumbs
koha
/
ebba.js
Copy path
Top
File metadata and controls
Code
Blame
18 lines (16 loc) · 812 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$(document).ready(function() {
// Adds Ebba link to patrons remote borrowed books
// Working with Koha 18.05.06.000
$('#issues-table').on('init.dt', function() {
$('#issues-table tr').each(function() {
if ($(this).find("td:eq(2)").html() == "Fjärrlån") {
var old = $(this).find("td:eq(1)").html();
var str = old.substr(old.indexOf('?'));
var start_pos = str.indexOf("=") + 1;
var end_pos = str.indexOf('"', start_pos);
var biblionumber = str.substring(start_pos, end_pos);
$(this).find("td:eq(2)").html("<a href='https://ils.lib.ltu.se/ebba/koha_ebba_redirect.php?biblionumber=" + biblionumber + "' target=_blank >Fjärrlån</a>")
}
})
}); // end ebba
});
You can’t perform that action at this time.