Skip to content

Commit

Permalink
Merge pull request #1 from biigle/patch-1
Browse files Browse the repository at this point in the history
Add view mixin for the parser description in the manual
  • Loading branch information
mzur authored Apr 11, 2024
2 parents d682315 + b198c8f commit 765b594
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/MetadataIfdoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

namespace Biigle\Modules\MetadataIfdo;

use Illuminate\Support\ServiceProvider;
use Biigle\Services\MetadataParsing\ParserFactory;
use Biigle\Services\Modules;
use Illuminate\Support\ServiceProvider;

class MetadataIfdoServiceProvider extends ServiceProvider
{
Expand All @@ -13,10 +14,18 @@ class MetadataIfdoServiceProvider extends ServiceProvider
*
* @return void
*/
public function boot()
public function boot(Modules $modules)
{
$this->loadViewsFrom(__DIR__.'/resources/views', 'metadata-ifdo');

ParserFactory::extend(ImageIfdoParser::class, 'image');
ParserFactory::extend(VideoIfdoParser::class, 'video');
$modules->register('metadata-ifdo', [
'viewMixins' => [
'metadataParsers',
],
// 'apidoc' => [__DIR__.'/Http/Controllers/Api/'],
]);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/resources/views/metadataParsers.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<li>
<strong>iFDO:</strong> This is a versatile file format that can store various image and video metadata, including annotations and file labels. More information can be found in the <a href="https://marine-imaging.com/fair/ifdos/iFDO-overview/">iFDO documentation</a>.
</li>

0 comments on commit 765b594

Please sign in to comment.