IdRef for developers

3.5. Merged Micro Web Service

Starting from a source number (merged record): find the active PPN (valid record)

In Sudoc, when two records are merged, the PPN of the suppressed record is integrated into field 035 of the preferred record: 035$an°ppn$9sudoc.

This service allows the ppn of the conserved record to be found, starting from the PPN of the suppressed record.

Name of the service: <sudoc service ="merged">

For example : PPN 028900618 (active PPN)

<datafield tag="035" ind1=" " ind2=" ">

<subfield code="a">122952618</subfield> (merged PPN in Entry)

<subfield code="9">sudoc</subfield>

</datafield>

http://www.idref.fr/services/merged/14319495X

http://www.idref.fr/services/merged/14319495X,122952618

<sudoc service="merged">

<query>

<ppn>04770280X</ppn>

<result>

<ppn>096729856</ppn>

</result>

</query>

It is possible to request an answer in the JSON format, by contacting the basic URL and specifying in the header of the HTTP request that JSON is preferred (Accept: text/json).

You will thus use the mechanism of contents negotiation, which you can test for example with the Modify Headers Firefox plugin.

Completing the basic URL by the following information &format=text/json

For example: http://www.idref.fr/services/merged/14319495X&format=text/json

An example of an answer in the JSON format

{

"sudoc": [

{

"query": {

"ppn": "04770280X",

"result": {

"ppn": "096729856"

}

}

},

{

"query": {

"ppn": "122952618",

"result": {

"ppn": "028900618"

}

}

}

]

}