10320/LOC: Example

<< Click to Display Table of Contents >>

Navigation:  Appendix > 10320/LOC Element >

10320/LOC: Example

The table below shows the DOI record returned for doi:10.123/456.

 

Index

Type

Data

1

URL

https://www.defaultexample.com

1000

10320/LOC

<locations>

       <location id="0" href="https://uk.example.com/" country="gb" weight="0" />

       <location id="1" href="https://www1.example.com/" weight="1" />

       <location id="2" href="https://www2.example.com/" weight="1" />

</locations>

With this example, the DOI resolver will apply the default selection method order - it means: 1) locatt; 2) country; 3) weighted - as illustrated below. If the DOI resolver does not understand the 10320/LOC element type (or is requested to ignore it), then it will select the URL element type: https://www.defaultexample.com.

 

Resolution request

Selection method

Result

10.123/456 from a requester located in the UK

1.The locatt method does not apply.

2.The resolver applies the country method. It selects https://uk.example.com/ and stops (single matching selection).

https://uk.example.com/

10.123/456 from a requester located outside of the UK

1.The locatt method does not apply.

2.The resolver applies the country method: no URL can be selected.

3.The resolver applies the weighted method to https://www1.example.com/ and https://www2.example.com/. They have the same weight, it selects one of these two URLs randomly.

https://www1.example.com/ or https://www2.example.com/

10.123/456?locatt=id:1

1.The resolver applies the locatt method with id="1". It selects https://www1.example.com/ and stops (single matching selection).

https://www1.example.com/

10.123/456?locatt=id:0

1.The resolver applies the locatt method with id="0". It selects https://uk.example.com/ and stops (single matching selection).

https://uk.example.com/

10.123/456?locatt=country:gb

1.The resolver applies the locatt method with country="gb". It selects https://uk.example.com/ and stops (single matching selection).

https://uk.example.com/

10.123/456?locatt=country:us with requester located in US

1.The resolver applies the locatt method with country="us": no URL can be selected.

2.The resolver applies the country method with the country of the requester: no URL can be selected.

3.The resolver applies the weighted method to https://www1.example.com/ and https://www2.example.com/. They have the same weight, it selects one of these two URLs randomly.

https://www1.example.com/ or https://www2.example.com/