Browse Source

Update license structure in metadata for Pressbooks 4.3.

pull/11/head^2^2
Ned Zimmerman 7 years ago
parent
commit
8a16c2d742
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 2
      resources/views/partials/book.blade.php

2
resources/views/partials/book.blade.php

@ -1,6 +1,6 @@
<div class="book" <div class="book"
data-date-published="{{ str_replace('-', '', @$book['metadata']['datePublished']) }}" data-date-published="{{ str_replace('-', '', @$book['metadata']['datePublished']) }}"
data-license="{{ (new \Pressbooks\Licensing())->getLicenseFromUrl($book['metadata']['license']) }}" data-license="{{ (new \Pressbooks\Licensing())->getLicenseFromUrl($book['metadata']['license']['url']) }}"
data-subject="{{ sanitize_title(@$book['metadata']['keywords']) }}" data-subject="{{ sanitize_title(@$book['metadata']['keywords']) }}"
> >
@if(isset($book['metadata']['keywords'])) @if(isset($book['metadata']['keywords']))

Loading…
Cancel
Save