コード例 #1
0
ファイル: views_as.py プロジェクト: piql/archivematica
def ingest_upload_as_resource_component(client, request, uuid,
                                        resource_component_id):
    query = request.GET.get('query', '').strip()
    page = request.GET.get('page', 1)
    sort = request.GET.get('sort')
    search_params = advanced_search.extract_url_search_params_from_request(
        request)

    return pair_matcher.render_resource_component(
        client, request, resource_component_id, query, page, sort,
        search_params,
        'components.ingest.views_as.ingest_upload_as_match_dip_objects_to_resource_component_levels',
        'ingest/as/resource_component.html', _get_reset_view(uuid), uuid)
コード例 #2
0
ファイル: views_as.py プロジェクト: wynerst/archivematica
def ingest_upload_as_resource_component(client, request, uuid, resource_component_id):
    query = request.GET.get("query", "").strip()
    page = request.GET.get("page", 1)
    sort = request.GET.get("sort")
    search_params = advanced_search.extract_url_search_params_from_request(request)

    return pair_matcher.render_resource_component(
        client,
        request,
        resource_component_id,
        query,
        page,
        sort,
        search_params,
        "ingest:ingest_upload_as_match_dip_objects_to_resource_component_levels",
        "ingest/as/resource_component.html",
        _get_reset_view(uuid),
        uuid,
    )