예제 #1
0
def ingest_upload_as_resource(client, request, uuid, resource_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(
        client, request, resource_id, query, page, sort, search_params,
        'components.ingest.views_as.ingest_upload_as_match_dip_objects_to_resource_levels',
        'ingest/as/resource_detail.html', _get_reset_view(uuid), uuid)
예제 #2
0
def ingest_upload_as_resource(client, request, uuid, resource_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(
        client,
        request,
        resource_id,
        query,
        page,
        sort,
        search_params,
        "ingest:ingest_upload_as_match_dip_objects_to_resource_levels",
        "ingest/as/resource_detail.html",
        _get_reset_view(uuid),
        uuid,
    )