imamuseum/proficio-client

从 Proficio 数字资产管理系统中导出数据。

dev-master 2017-01-20 15:24 UTC

This package is auto-updated.

Last update: 2024-09-09 21:40:40 UTC


README

这是 Harvester 2.0 的 proficio 客户端。它仅适用于 2.0,并且仅在马林纳博物馆在线藏品中实现。此包依赖于由 extractor 仓库(https://bitbucket.org/imalab/extractor)创建的 sqlite 数据转储。

### 提供的路由 / proficioController 方法

example.site/proficio/getAllObjectIDs
example.site/proficio/getAllObjectIDs?catalog=archive

example.site/proficio/getAllObjects
example.site/proficio/getAllObjects?catalog=archive&take=5&start=5

example.site/proficio/getSpecificObject/{id}
example.site/proficio/getSpecificObject/{id}?catalog=archive

example.site/proficio/getUpdatedObjectIDs
example.site/proficio/getUpdatedObjectIDs?catalog=archive

example.site/proficio/getTableForObject/{table}/{id}
example.site/proficio/getTableForObject/{id}?catalog=archive

example.site/proficio/getTableForAllObjects/{table}
example.site/proficio/getTableForAllObjects/{table}?catalog=archive&take=5&start=5

Laravel 设置

config\app.php 中添加到自动加载的提供者

Imamuseum\PictionClient\PictionServiceProvider::class,
php artisan vendor:publish

在 laravel config\database.php 中添加对 proficio sqlite 的连接。此连接的名称在 proficio.php 配置文件中定义。

    'connections' => [
        'proficio' => [
            'driver'   => 'sqlite',
            'database' => storage_path('proficio_export/db.sqlite3'),
            'prefix'   => '',
        ],
    ]

Composer 设置

{
    "require": {
        "imamuseum/piction-client": "dev-master@dev"
    },
    "repositories": [
        {
            "type": "git",
            "url": "https://bitbucket.org/imalab/piction-client.git"
        }
    ]
}