150 likes | 318 Views
eSpec-q. The Z39.50 Present Request has these Parameters:. Which records to retrieve From what result set In what syntax Which elements to include in the retrieved records. Example: Retrieve records 1-10 from result set ‘R’, in Marc21 format; include “brief” elements only. Records : 1-10
E N D
The Z39.50 Present Request has these Parameters: • Which records to retrieve • From what result set • In what syntax • Which elements to include in the retrieved records
Example: Retrieve records 1-10 from result set ‘R’, in Marc21 format; include “brief” elements only • Records: 1-10 • Result set: R • Syntax: Marc21 • Elements: Brief set
Holdings Example • Retrieve record 1 from result set ‘holdings’. • Syntax:GRS-1. • Elements: for each “holding” include: • siteLocation • dateOfReport • numberOfCopies • UnionCatLendingInfo
holdingsStatement (4,4) siteLocation (4,4)/(4,6) dateOfReport (4,4)/(4,7) publicationType (4,4)/(4,8) ....... numberOfCopies (4,4)/(4,14) unionCatCompletenessDesignator (4,4)/(4,15) unionCatAcqDesignator (4,4)/(4,16) unionCatRetentionDesignator (4,4)/(4,17) unionCatReproductionNote (4,4)/(4,18) ........ unionCatLendingInfo (4,4)/(4,19)
holdingsStatement (4,4) siteLocation (4,4)/(4,6) dateOfReport (4,4)/(4,7) …... numberOfCopies (4,4)/(4,14) ........ unionCatLendingInfo (4,4)/(4,19)
holdingsStatement (4,4) siteLocation (4,4)/(4,6) targetLocationId (4,4)/(4,6)/(4,26) institutionOrSiteId (4,4)/(4,6)/(4,27) locationName (4,4)/(4,6)/(4,28) isilCode (4,4)/(4,6)/(4,29) streetAddress (4,4)/(4,6)/(4,30) countryId (4,4)/(4,6)/(4,31) regionId (4,4)/(4,6)/(4,32) networkAddress (4,4)/(4,6)/(4,33) siteNotes (4,4)/(4,6)/(4,34) subLocation (4,4)/(4,6)/(4,35)
Specifying Elements • Element set name (primitive) • full • brief • brief-1 • Element Specification • eSpec-1 • eSpec-2 • conceptually, same as 1 • eSpec-q
Espec-1 ::= ….. SEQUENCE OF TagPath ….. TagPath ::= SEQUENCE OF SEQUENCE{ tagType ….. tagValue …..
For example:siteLocation (4,4)/(4,6) …... institutionOrSiteId (4,4)/(4,6)/(4,27 • (4,4)/(4,6) is the tag path of siteLocation • (4,4)/(4,6)/(4,27) is the tag path of institutionOrSiteId
Espec-q ::= SEQUENCE{ valueRestrictor ……. elementSelector ……. (EXTERNAL) ValueRestrictor ::= ……. Essentially, the RPN Query elementSelector is defined as EXTERNAL, and so could be eSpec-1
Problem:for all holdings for which the institution code is 'MdMC-T' retrieve : • siteLocation • dateOfReport • numberOfCopies • UnionCatLendingInfo
ValueRestrictor (query): • for all holdings for which the institution code is 'MdMC-T’ • ElementSelector (eSpec-1) • Retrieve siteLocation, dateOfReport, numberOfCopies, UnionCatLendingInfo
holdingsStatement (4,4) siteLocation (4,4)/(4,6) dateOfReport (4,4)/(4,7) publicationType (4,4)/(4,8) ....... numberOfCopies (4,4)/(4,14) unionCatCompletenessDesignator (4,4)/(4,15) unionCatAcqDesignator (4,4)/(4,16) unionCatRetentionDesignator (4,4)/(4,17) unionCatReproductionNote (4,4)/(4,18) ........ unionCatLendingInfo(4,4)/(4,19)
holdingsStatement siteLocation targetLocationId institutionOrSiteId locationName isilCode streetAddress countryId regionId …...