Bug 20797: Add link to biblio detail view from ILL detail view
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
8bacf1935d
commit
dd91fa1712
1 changed files with 15 additions and 1 deletions
|
@ -116,6 +116,15 @@
|
|||
'</a>';
|
||||
};
|
||||
|
||||
// Our 'render' function for biblio_id
|
||||
var createBiblioLink = function(data, type, row) {
|
||||
return '<a title="' + _("View biblio details") + '" ' +
|
||||
'href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' +
|
||||
row.biblio_id + '">' +
|
||||
row.biblio_id +
|
||||
'</a>';
|
||||
};
|
||||
|
||||
// Our 'render' function for the library name
|
||||
var createLibrary = function(data, type, row) {
|
||||
return row.library.branchname;
|
||||
|
@ -187,6 +196,7 @@
|
|||
},
|
||||
biblio_id: {
|
||||
name: _("Bibliograpic Record ID")
|
||||
func: createBiblioLink
|
||||
},
|
||||
library: {
|
||||
name: _("Library"),
|
||||
|
@ -514,7 +524,11 @@
|
|||
|
||||
<div class="biblio_id">
|
||||
<span class="label biblio_id">Bibliographic record ID:</span>
|
||||
[% IF request.biblio_id %][% request.biblio_id | html %][% ELSE %]<span>N/A</span>[% END %]
|
||||
[% IF request.biblio_id %]
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | html %]">[% request.biblio_id | html %]</a>
|
||||
[% ELSE %]
|
||||
<span>N/A</span>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="branchcode">
|
||||
<span class="label branchcode">Library:</span>
|
||||
|
|
Loading…
Reference in a new issue