コード例 #1
0
ファイル: utils.py プロジェクト: mhellmic/b2share
def make_copy_available(request_id):
    """
    Change the status of a copy for
    CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF when
    an hold request was cancelled.

    @param request_id: identify the request: Primary key of crcLOANREQUEST
    @type request_id: int
    """

    barcode_requested = db.get_requested_barcode(request_id)
    db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF, barcode_requested)
    update_requests_statuses(barcode_requested)
コード例 #2
0
def make_copy_available(request_id):
    """
    Change the status of a copy for
    CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF when
    an hold request was cancelled.

    @param request_id: identify the request: Primary key of crcLOANREQUEST
    @type request_id: int
    """

    barcode_requested = db.get_requested_barcode(request_id)
    db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF, barcode_requested)
    update_requests_statuses(barcode_requested)
コード例 #3
0
ファイル: utils.py プロジェクト: mhellmic/b2share
def update_request_data(request_id):
    """
    Update the status of a given request.

    @param request_id: identify the request: Primary key of crcLOANREQUEST
    @type request_id: int
    """

    barcode = db.get_request_barcode(request_id)
    is_on_loan = db.is_item_on_loan(barcode)

    if is_on_loan is not None:
        db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_LOAN, barcode)
    else:
        db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF, barcode)

    update_requests_statuses(barcode)


    return True
コード例 #4
0
def update_request_data(request_id):
    """
    Update the status of a given request.

    @param request_id: identify the request: Primary key of crcLOANREQUEST
    @type request_id: int
    """

    barcode = db.get_request_barcode(request_id)
    is_on_loan = db.is_item_on_loan(barcode)

    if is_on_loan is not None:
        db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_LOAN, barcode)
    else:
        db.update_item_status(CFG_BIBCIRCULATION_ITEM_STATUS_ON_SHELF, barcode)

    update_requests_statuses(barcode)


    return True