We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 386aa09 + 04622ea commit 4a2505aCopy full SHA for 4a2505a
1 file changed
js/browzine.js
@@ -48,7 +48,8 @@ app.component('prmSearchResultAvailabilityLineAfter', {
48
app.controller('prmSearchResultThumbnailContainerAfterController', function ($scope, $http, nodeserver) {
49
var vm = this;
50
var newThumbnail = '';
51
- if (vm.parentCtrl.item.pnx.addata.issn) {
+ // checking for item property as this seems to impact virtual shelf browse (for reasons as yet unknown)
52
+ if (vm.parentCtrl.item && vm.parentCtrl.item.pnx.addata.issn) {
53
vm.issn = vm.parentCtrl.item.pnx.addata.issn[0].replace("-", "") || '';
54
var journalURL = nodeserver + "/primo/browzine/journals?ISSN=" + vm.issn;
55
$http.jsonp(journalURL, { jsonpCallbackParam: 'callback' }).then(function (response) {
0 commit comments