- Article Type: Q&A
- Product: Aleph
- Product Version: 20
How can we set up a sublibrary filter for logical bases in the OPAC?
In the OPAC, you have the option to define a logical base that shall only contain those records with holdings in a certain sublibrary.
You maintain a sublibrary BIOSB, and another sublibrary SOCSB.
You define 2 logical bases in $alephe_tab/tab_base.lng, each of them containing the holdings of the relevant sublibraries.
We call the bases "biology" and "sociology":
BIOLOGY Biology Sublibrary XYZ01 XYZ01 Y wsl=biosb
SOCIOLOGY Sociology Sublibrary XYZ01 XYZ01 Y wsl=socsb
* NOTE that the word index for sublibraries is called WSL in MARC by default, while it is WZW in MAB.
If you switch to the base "biology" in the OPAC, you will only see BIB records with holdings in the sublibrary BIOSB.
However, you will still see item records from all sublibraries.
That is, if a BIB record is linked to item records in BIOSB as well as in SOCSB, they will all be displayed.
This may appear confusing to your patrons, and so it might be desirable to suppress the display of the item records as well.
In order to achieve this, you need to edit xxx01/tab/tab_sub_lib_sort and xxx01/tab/tab_item_list_order.
! 1 2
Column 1 describes the function - for example WWW-FULL-ITM3 is the ITM3 link in the full view of the WWW OPAC, and WWW-SHORT is the ITM link in the result list.
Column 2 describes, which sorting routine shall be assigned to the function. The code "02" means that you want to sort by the sequence in tab_item_list_order. In the above example "02" is assigned to WWW-FULL-ITM3 and WWW-SHORT.
After assigning the value "02" to tab_sub_lib_sort you should edit tab_item_list_order. This table contains only one column, and you can define a sequence of sublibraries here.
In the above example, we define that links to holdings in the sublibrary BIOSB shall be displayed first, followed by links to holdings in the sublibrary SOCSB. This is a general setting.
Now you want to set up a different definition for your logical bases "biology" and "sociology" because they shall contain holdings of the relevant sublibrary only and no holdings of the other sublibrary. Creating a table tab_item_list_order with the base as extension does the trick. Therefore
do the following:
 create the extra tables:
cp tab_item_list_order tab_item_list_order.biology
cp tab_item_list_order tab_item_list_order.sociology
 edit tab_item_list_order.biology:
Remove the sublibrary SOCSB from this table, and it will not be displayed anymore.
 set up tab_item_list_order.sociology in the following manner:
By the way, the extension trick for tab_item_list_order is not only working for logical bases defined by sublibrary, but for every logical and physical base. That means, you are able to set up a sublibrary filter for all your bases.
Category: Web OPAC (500)
- Article last edited: 1/24/2014