Uploading Digital Objects Via Service ADAM-02 Yoel Kortick
Total Page:16
File Type:pdf, Size:1020Kb
How to control the “Show in OPAC” flag when uploading digital objects via service ADAM-02
Yoel Kortick
Originally SI 16384-24998
Question: Our customer should upload in the system a lot of records using p_adam_02. He needs to know how to set the SHOW in OPAC flag. These are the questions he asked:
What is the Z403 field that contains this flag? If not in z403, where is this flag is stored? How could I upload this value with p_adam_02 service?
Short Answer In order to set the “SHOW in OPAC” flag as checked (Y) or not checked (N) you can set the following variable in the xml input file of the ADAM-02 service.
It can be either
Long Answer
In order to check this do as follows
ONE
Add two digital objects to a bibliographic record. Here we do it for USM01 system number 59166. The first digital object has SHOW in OPAC flag = Y. The second digital object has SHOW in OPAC flag = N.
This one has it This one does not
TWO
Look at the Z403 via UTIL F 4 for each of these objects:
The first one has this
02 z403_access_rights \ 03 display_link ...... Y 03 display_code ...... 03 expiry_date ...... 00000000 03 guest ...... Y
The second one has this:
02 z403_access_rights \ 03 display_link ...... N 03 display_code ...... 03 expiry_date ...... 00000000 03 guest ...... Y
THREE
Look at the Z403 via SQL and see that the first one (with view rights) has Z403_DISPLAY_LINK Y Look at the Z403 via SQL and see that the second one (without view rights) has Z403_DISPLAY_LINK N usm01@ALEPH1> select Z403_DISPLAY_LINK from Z403 where Z403_REC_KEY = '000059166000001'; **** Hit return to continue ****
Z - Y
1 row selected. usm01@ALEPH1> select Z403_DISPLAY_LINK from Z403 where Z403_REC_KEY = '000059166000002'; **** Hit return to continue ****
Z - N
1 row selected.
FOUR
Make a directory $data_root/import_files/hello and put two JPG files there. Run ADAM-01 on this record, so we get an input file for ADAM-02
Change input file so it has this:
First record:
Second record:
Important note: The first record, with title “Bentzi riding”, should have show in OPAC Y The second record, with title “View during bike trip”, should have show in OPAC N
FIVE
Upload the file via adam-02
SIX
See two new records:
The record with title “Bentzi riding” should have show in OPAC Y The record with title “View during bike trip” show in OPAC N
The new systems numbers are: il-aleph02-18(1) USM01-YOELK>>cat $alephe_scratch/hello_sys 000059167USM01 000059168USM01
First record DOES have show in OPAC Second record DOES not have show in OPAC SEVEN
When a user views 59167 he can see the digital object. When a user views 59618 he does not see the digital object
The object is however visible via the GUI