Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Items due at opening when due time after closing & closing after midnight

    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Description:
    Items due at opening next day when due time is after closing time and closing time is after midnight.

    The abc50 tab16 col. 27 is set to "0", indicating:

    ! 0 - Adjust a due hour which is after closing time to the closing
    ! time (if the due date is an open day), or to the closing time
    ! of the NEXT open day (if the due date is a closed day).

    Items with a due time before midnight are OK.

    But the return date/time is being set to tomorrow in cases where the item would be due after closing time and the closing time is after midnight.

    For example, laptops have a 4-hour loan and we are open until 2 AM. If a patron checks a laptop out at 10:10 PM, it should be due at 2:00 AM (2:10 AM forced to the closing time of 2:00 AM). Instead, it's due at opening the next day.

    This was reproduced on an Ex Libris server:

    tab16 has this:

    WID 01 ## 01 + 00000000 00 + 0300 0000 00000 999 999 D + 00000010 A 1000 007 010 05 W010 28.0000000

    {column 27 always gets its value from the bor status "#" line}:

    WID 01 ## ## A 20060910 00 A 2359 0000 00000 999 999 2 + 00000010 A 2359 007 010 05
    999 0

    tab17 has this:

    I made the closing time on Wednesday "25:00" (1:00 AM)

    WID ######## 01 O 0800 2100
    WID ######## 02 O 0800 2100
    WID ######## 03 O 0800 2500 <-- Wednesday
    WID ######## 04 O 0800 2100
    WID ######## 05 O 0800 2100
    WID ######## 06 C
    WID ######## 00 C

    I did util a/17/1 for the usm50 z301 (to force a version of the z301, containing the updated tab16 and tab17, to be written).

    With this change, a sublibrary WID, item status 01 item checked out to a status 01 borrower at 22:10 would have a due time of 22:10 + 03:00 = 25:10. But since the closing time is 25:00, the due time should be forced to the closing time of 25:00 1:00 AM).

    But a test of the due date/time with util f/2/9 showed that the due date/time was *not* forced to the closing time, but, rather, was moved forward to the Thursday opening time (8:00 AM). See below.

    jerrys@il-aleph07(a20_3) USM50> date
    Wed Sep 22 22:10:18 IST 2010

    Enter sub library (Q to stop) : wid
    Enter item status (Q to stop) : 01
    Enter bor status (Q to stop) : 01
    Load: /tmp/utf_files/exlibris/aleph/a20_3/alephe/tab/tab_sub_library.eng
    Load: /exlibris/aleph/a20_3/usm50/tab/tab16
    Load: /exlibris/aleph/a20_3/alephe/tab/tab100
    Load: /exlibris/aleph/a20_3/usm50/tab/tab100
    Error: PLAIN-ONLY is not allowed in $data_tab/tab100 of library USM50
    Load: /exlibris/aleph/a20_3/usm50/tab/tab17
    Load: /exlibris/aleph/a20_3/usm50/tab/tab16
    Due Date: 20100923 0800 <--------------------
    Due Date (Req): 20101004 1000

    Resolution:
    Ex Libris' response: The system's behavior is correct and can not be changed.

    We have here a mixture of a fictitious time of “25:00 o’clock” from tab17 and real hours (limited to 24) for the true real clock.
    The “25:00” is really “01” of the next day, and before the opening of the library. It is not “after” the closing of the previous day.

    The PC and Unix use real 24 hour clocks and we are dependent on that.

    Keep in mind that for the server “2500” is like “0100” of next day and thus “before opening time” and not “after closing time”.


    Example
    • Library defined in tab17 that Monday’s closing time is 25:00 and Tuesday’s opening time is 07:00 AM
    • Library has a 0 or 1 in col. 27 of tab16 for the item.
    • Loan item on Monday Nov. 01 at 23:00 for 3 hours. The due date and hour which Aleph gives is Nov. 02 07:00 AM
    • The Due hour above was before the opening time the next calendar day. (Not after closing time of previous day). This is because the library made the closing time be the next day. It is not “after”

    Tab16 column 27 has 0 or 1 this is what will happen:

    ! 1 - Adjust a due hour which is after closing time to the closing
    ! time (if the due date is an open day), or to the closing time
    ! of the PREVIOUS open day (if the due date is a closed day).
    ! Note! When choosing '0' or '1', if the due hour is after
    ! closing and before 23:59:59, the due hour will change to the
    ! closing time of the same day. If the due hour is in the next day
    ! (after 00:00:01), the due hour will change to the opening
    ! time of the following day.


    • It is correct that the due date is 07:00 AM Nov. 02 because the due hour is in the next day (02:00 AM Nov. 02 which is 3 hours after loan time on 3 hour item) and as the header states “the due hour will change to the opening time of the following day”. The due hour will not be “25:00 o’clock” because the clock of the server is being used here, not the clock of tab17 because there really is no clock with 25 hours a day.


    • Article last edited: 10/8/2013