2002 CrossRef Annual Member Meeting - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

2002 CrossRef Annual Member Meeting

Description:

Title: PowerPoint Presentation Author: Chuck Koscher Last modified by: Tim Pickard Created Date: 9/18/2002 11:26:27 PM Document presentation format – PowerPoint PPT presentation

Number of Views:154
Avg rating:3.0/5.0
Slides: 26
Provided by: Chuck185
Category:

less

Transcript and Presenter's Notes

Title: 2002 CrossRef Annual Member Meeting


1
Implementation Workshop September 26, 2002
2
Agenda
3
System Site - Member Pages
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
Guidelines
  • Deposits
  • 2 or more deposits can be running
    simultaneously,

  • A temp file is created using the HTTP fname
    parameter
  • prevents two files with the same name
    from being
  • deposited at the same time

  • XSD, operationdoXSDMDUpload DTD,
    operationdoMDUpload

  • Queries
  • Try to avoid many requests with only one query
    (group in 10)

  • Upload very large (1000) queries using
    asynchronous query interface

  • Reduce dependence on mddb.xml pre-filtering,
    submit more queries

  • OpenURL Query Format
  • DONT iddoi10.1061/(ASCE)0893-1321(2002)15
    4(125)


OpenURL query problems and deposits , there
is no DOI in a DOI value
  • DO id10.1061/(ASCE)0893-1321(2002)154(125)


17
Programming - Perl
  • Query as an HTTP POST

!/usr/bin/perl -w use strict use
LWPUserAgent use URIEscape require
HTTPHeaders my h HTTPHeaders-gtnew h-gthe
ader('Content-Type' gt 'application/x-www-form-url
encoded') my userXXXX" my passyyyyy" my
query"00218561501647131 . my
verysafe uri_escape(query, " \n")
18
Programming - Perl
  • Query as an HTTP POST cont.

my user_agent new LWPUserAgent user_agent-gt
agent(Your agent name".user_agent-gtagent) user
_agent-gttimeout(360) my req new
HTTPRequest 'POST', 'http//mddb2.crossref.org
/query/xref.cgi', h req-gtcontent("usruser
pwdpassdbmddbqdataquery") Send query
to the server my response response
user_agent-gtrequest(req)
19
Programming - Java
  • Deposit as an HTTP POST

import HTTPClient. import java.net. public
class doDeposits HTTPClient.NVPair
uploadOpts new HTTPClient.NVPair2
HTTPClient.NVPair uploadFileOpts new
HTTPClient.NVPair1
uploadOpts0 new HTTPClient.NVPair
("operation","doMDUpload") uploadOpts1
new HTTPClient.NVPair ("area","live")
uploadFileOpts0 new HTTPClient.NVPair
("fname",XMLFile) HTTPClient.NVPair
ct_hdr new HTTPClient.NVPair1 byte
uploadBytes
20
Programming - Java
  • Deposit as an HTTP POST cont

HTTPClient.HTTPConnection httpConn new
HTTPClient.HTTPConnection
(host,port) uploadBytes HTTPClient.Codecs.mpFor
mDataEncode (uploadOpts,uploadFileOpts,ct_hd
r) HTTPClient.CookieModule.setCookiePolicyHandler
(null) HTTPClient.HTTPResponse httpResp
null httpResp httpConn.Post
("/servlet/deposit?login_id" username
"login_passwd" password,uploadBytes,ct_hdr)
.
  • Requires HTTPClient.jar

http//www.innovation.ch/java/HTTPClient/
  • Down load sample code from our site

http//mddb2.crossref.org/doc/samples.zip
21
Programming - VB
  • Query as an HTTP GET

Set WinHttpReq New WinHttpRequest (need
winhttp50sdk.exe) WinHttpReq.SetTimeouts 0,
60000, 60000, 300000 WinHttpReq.Open "GET", _
"http//mddb2.crossref.org/query/xref.cgi?usr"
username.Text _ "pwd"
password.Text "area" area
"fuzzytruetype" _ operation
"qdata" qData , False WinHttpReq.Send resul
ts WinHttpReq.ResponseText
22
Programming - VB
  • Deposit as an HTTP POST

Set WinHttpReq New WinHttpRequest (need
winhttp50sdk.exe) WinHttpReq.SetTimeouts 0,
60000, 60000, 300000 WinHttpReq.Open "POST",
"http//mddb2.crossref.org/servlet/deposit",
False WinHttpReq.SetRequestHeader "Pragma",
"no-cache" WinHttpReq.SetRequestHeader
"Content-Type", "multipart/form-data
boundary-------------------------7d23583220204"
formData formData "--------------------------
-7d23583220204" vbCrLf formData formData
"Content-Disposition form-data name" Chr(34)
"login_id" Chr(34) vbCrLf formData
formData vbCrLf formData formData
username.Text vbCrLf WinHttpReq.Send formData
HTML.DocumentHTML WinHttpReq.ResponseText
23
CrossRef Client Application http//www.crossref.or
g/vbclient.zip
24
CrossRef Client Application http//www.crossref.or
g/vbclient.zip
25
CrossRef Technical Working Group
  • Join the TWG !!!

Mailing list crtwg_at_crossref.org
Mail list archives available on www.crossref.org
Monthly teleconferences
Planning an in-person TWG for later this year
ckoscher_at_crossref.org
Write a Comment
User Comments (0)
About PowerShow.com