Subversion Repositories cheapmusic

Rev

Rev 99 | Rev 101 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 99 Rev 100
Line 152... Line 152...
152
        else {
152
        else {
153
            $barcode = "";
153
            $barcode = "";
154
        }
154
        }
155
        $barcodeType = clsLibGTIN::GTINCheck($barcode, false, 1);
155
        $barcodeType = clsLibGTIN::GTINCheck($barcode, false, 1);
156
 
156
 
-
 
157
        $pic = !empty($item->Images->Primary->Medium->URL) ? (string)$item->Images->Primary->Medium->URL : "images/no-image-available.jpg";
157
        $pic = str_replace('http://', 'https://', (string)$current->Images->Primary->Medium->URL);
158
        $pic = str_replace('http://', 'https://', $pic);
158
        if (empty($pic)) {
159
        if (empty($pic)) {
159
            continue;
160
            continue;
160
        }
161
        }
161
 
162
 
162
        if (strpos($current->ItemInfo->Classifications->Binding->DisplayValue, "Audio CD") !== false) {
163
        if (strpos($current->ItemInfo->Classifications->Binding->DisplayValue, "Audio CD") !== false) {
Line 347... Line 348...
347
 
348
 
348
    $contributers = getContributers($item);
349
    $contributers = getContributers($item);
349
 
350
 
350
    $label = "";
351
    $label = "";
351
    if (!empty($item->ItemInfo->ByLineInfo->Manufacturer)) {
352
    if (!empty($item->ItemInfo->ByLineInfo->Manufacturer)) {
352
        $label = $item->ItemInfo->ByLineInfo->Manufacturer.DisplayValue;
353
        $label = $item->ItemInfo->ByLineInfo->Manufacturer->DisplayValue;
353
    }
354
    }
354
 
355
 
355
    $languages = [];
356
    $languages = [];
356
    if (!empty($item->ItemInfo->ContentInfo->Languages)) {
357
    if (!empty($item->ItemInfo->ContentInfo->Languages)) {
357
        foreach ($item->ItemInfo->ContentInfo->Languages->DisplayValues as $language) {
358
        foreach ($item->ItemInfo->ContentInfo->Languages->DisplayValues as $language) {
Line 500... Line 501...
500
    if (!empty($languages)) {
501
    if (!empty($languages)) {
501
        $modal .= "<tr><td class=\"px-1\">Languages:</td><td class=\"px-1\">" . join(", ", $languages) . "</td></tr>";
502
        $modal .= "<tr><td class=\"px-1\">Languages:</td><td class=\"px-1\">" . join(", ", $languages) . "</td></tr>";
502
    }
503
    }
503
 
504
 
504
    if (!empty($item->ItemInfo->ContentInfo->PublicationDate)) {
505
    if (!empty($item->ItemInfo->ContentInfo->PublicationDate)) {
505
        $modal .= "<tr><td class=\"px-1\">Publication Date:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->PublicationDate . "</td></tr>";
506
        $modal .= "<tr><td class=\"px-1\">Publication Date:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->PublicationDate->DisplayValue . "</td></tr>";
506
    }
507
    }
507
 
508
 
508
    if (!empty($item->ItemInfo->ContentInfo->ReleaseDate)) {
509
    if (!empty($item->ItemInfo->ContentInfo->ReleaseDate)) {
509
        $modal .= "<tr><td class=\"px-1\">Release Date:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->ReleaseDate . "</td></tr>";
510
        $modal .= "<tr><td class=\"px-1\">Release Date:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->ReleaseDate->DisplayValue . "</td></tr>";
510
    }
511
    }
511
 
512
 
512
    if (!empty($item->ItemInfo->ContentInfo->UnitCount->DisplayValue)) {
513
    if (!empty($item->ItemInfo->ContentInfo->UnitCount->DisplayValue)) {
513
        $modal .= "<tr><td class=\"px-1\">Number of Discs:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->UnitCount->DisplayValue . "</td></tr>";
514
        $modal .= "<tr><td class=\"px-1\">Number of Discs:</td><td class=\"px-1\">" . (string)$item->ItemInfo->ContentInfo->UnitCount->DisplayValue . "</td></tr>";
514
    }
515
    }