View | Details | Raw Unified | Return to bug 25293
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-8 / +7 lines)
Lines 289-298 $(document).ready(function() { Link Here
289
                },
289
                },
290
                {
290
                {
291
                    "mDataProp": function ( oObj ) {
291
                    "mDataProp": function ( oObj ) {
292
                        title = "<span id='title_" + oObj.itemnumber + "' class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber="
292
                        let title = "<span id='title_" + oObj.itemnumber + "' class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber="
293
                              + oObj.biblionumber
293
                              + oObj.biblionumber
294
                              + "'>"
294
                              + "'>"
295
                              + oObj.title.escapeHtml();
295
                              + (oObj.title ? oObj.title.escapeHtml() : '' );
296
296
297
                        $.each(oObj.subtitle, function( index, value ) {
297
                        $.each(oObj.subtitle, function( index, value ) {
298
                                  title += " " + value.escapeHtml();
298
                                  title += " " + value.escapeHtml();
Lines 369-375 $(document).ready(function() { Link Here
369
                },
369
                },
370
                {
370
                {
371
                    "mDataProp": function ( oObj ) {
371
                    "mDataProp": function ( oObj ) {
372
                        return oObj.homebranch.escapeHtml();
372
                        return (oObj.homebranch ? oObj.homebranch.escapeHtml() : '' );
373
                    }
373
                    }
374
                },
374
                },
375
                {
375
                {
Lines 382-388 $(document).ready(function() { Link Here
382
                },
382
                },
383
                {
383
                {
384
                    "mDataProp": function ( oObj ) {
384
                    "mDataProp": function ( oObj ) {
385
                        return oObj.branchname.escapeHtml();
385
                        return (oObj.branchname ? oObj.branchname.escapeHtml() : '' );
386
                    }
386
                    }
387
                },
387
                },
388
                {
388
                {
Lines 663-672 $(document).ready(function() { Link Here
663
                    },
663
                    },
664
                    {
664
                    {
665
                        "mDataProp": function ( oObj ) {
665
                        "mDataProp": function ( oObj ) {
666
                            title = "<span class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber="
666
                            let title = "<span class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber="
667
                                  + oObj.biblionumber
667
                                  + oObj.biblionumber
668
                                  + "'>"
668
                                  + "'>"
669
                                  + oObj.title.escapeHtml();
669
                                  + (oObj.title ? oObj.title.escapeHtml() : '' );
670
670
671
                            $.each(oObj.subtitle, function( index, value ) {
671
                            $.each(oObj.subtitle, function( index, value ) {
672
                                      title += " " + value.escapeHtml();
672
                                      title += " " + value.escapeHtml();
Lines 751-757 $(document).ready(function() { Link Here
751
                    },
751
                    },
752
                    {
752
                    {
753
                        "mDataProp": function ( oObj ) {
753
                        "mDataProp": function ( oObj ) {
754
                            return oObj.branchname.escapeHtml();
754
                            return ( oObj.branchname ? oObj.branchname.escapeHtml() : '' );
755
                        }
755
                        }
756
                    },
756
                    },
757
                    {
757
                    {
758
- 

Return to bug 25293