Francis,

If you are doing a restore from a database backup, the sequence id 
should not change.  This sequence id is stored in the database itself 
(in the bitstream table) -- so, when you restore the database that 
sequence number should be restored.

It's worth noting that if you upload a new file, or replace an existing 
file, the sequence number may change.  DSpace does not guarantee that 
the sequence number remain "static" or unchanging.  DSpace only 
guarantees that the Item/Community/Collection handle (or ID) will remain 
the same.

You might also think about using the XMLUI for your project -- it is not 
as reliant on sequence IDs as the older JSPUI is.   In the XMLUI, you 
can leave the sequence ID out of the URL link, and it will try and find 
the correct file based on it's name.  As an example on our demo server, 
these two links are equivalent in the XMLUI:

http://demo.dspace.org/xmlui/bitstream/handle/10673/4/test_pdf.pdf?sequence=2
http://demo.dspace.org/xmlui/bitstream/handle/10673/4/test_pdf.pdf

Notice the first one includes the sequence number, and the second does 
not.  For the second link, the XMLUI tries to find the first file named 
"test_pdf.pdf" that belongs to the Item identified by "10673/4" -- as 
long as two files don't have  the same name in that item, the sequence 
ID is not needed.

I hope that helps.

- Tim

On 8/2/2010 11:42 PM, فرانسيس Franci$  wrote:
> hi
> i am doing the project wher in i upload pdf files each pdf has a link to
> open another pdf from the repository,sort of external linking, the
> problem is when i take the backup of postgresql and assetstore and
> restore it on another machine then when i click on the external link in
> one pdf it says invalid identifier , so i manually checked the link of
> the file the file exist but the sequence id changed so thats y it says
> invalid identifier. can you let me know how i can have static links for
> each pdf, even if i migrate teh database and assetstore i must have the
> same link.
>
> Regards
> Francis
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to