You are here: Work Session Element Mapping, 7A > III. EJP Query of DJS COC for Status Check (Form name: EJPSTATUSCHECK)

III. EJP Query of DJS COC for Status Check (Form name: EJPSTATUSCHECK)

From time to time, it may be necessary for the EJP system to check on the status of a file/manuscript. In the below table we have put all the related fields and their corresponding form structure. The form structure is optional, and it is up to ejp to either construct a simple URL with GET parameters or create HTML form.

S.no

Description

Name

ID

Type

COC field type

Value

Examples

Form structure example

1

Form Type

form_type

form_type

Varchar/text

 

always "coc_status"

"coc_status"

<input type="hidden" name="form_type" id="form_type" value=" coc_status">

2

Journal ID "“ j_id (internal eJP Journal ID)

j_id

j_id

Int/number

Int

23

 

<input type="hidden" name="j_id" id="j_id" value="23">

 

3

Manuscript ID ( internal eJP manuscript ID)

ms_id

ms_id

Int/number

Int

3255

 

<input type="hidden" name="ms_id" id="ms_id" value="3255">

 

4

Manuscript Revision Number

ms_rev_no

ms_rev_no

Int/number

Int

0

0

1

2

<input type="hidden" name="ms_rev_no" id="ms_rev_no" value="0">

 

5

Security time

Mtime

Mtime

Int/number

BigInt

Time()

 

<input type="hidden" name="mtime" id="mtime" value="1332298399">

 

6

Security Hash

hash

Hash

Varchar

Text(65535)

MD5 value obtained using Journal ID, Manuscript ID, Revision number and Date/time. The time is the moment when the request is passed on from eJPress to COC.

 

#!usr/bin/perl

 

use strict;

 

use Digest::HMAC_MD5;

 

# $time=time();

 

my($j_id, $ms_id, $ms_rev_no, $time) = ("23","3255","0","1332768606");

 

my $input = join("-",$j_id,$ms_id, $ms_rev_no, $time);

 

print getSecretToken($input,'coc')."\n";

 

sub getSecretToken() {

my $input = shift;

my $secret_code = shift;

return Digest::HMAC_MD5::hmac_md5_hex($input, $secret_code);

}

 

<input type="hidden" name="hash" id="hash" value="5e0f5f4161ae3f9485c31caf59b4d4ad">

 

You also use GETURL method to send information to status check URL

Response for the submission:

Sample COC status codes

  • 1= complete
  • 2= pending
  • 3=not found
  • 4=error; reprocess from the start

Response back will be a JSON string like:

{

“status”: “1”,

“j_id”: “23”,

“ms_id”: “3255”,

“ms_rev_no”: “1”,

“pdf_url”: “sftp://ftp.coc.com/files/24/23/232342/2234.pdf”,

“pdf_count”:”7”,

}

Did you want “re-transmit data” from step #1 above.

Add Files – in ejp

Delete Files – in ejp

Replace Files – in ejp

Re-order Files -in djs – pass back new figure order and file order in JSON dataset.