Francis,

The number you are looking at is the *handle* of the item, and not the 
sequence ID.  However, the handle should not change during a database 
restore.

In this example, the handle is "10673/4" -- the first number "10673" 
identifies the repository uniquely.  The second number "4" identifies 
the Item in the repository uniquely.  This number should never change 
during a backup and restore.

So, that handle refers to an item in the repository.  The item is always 
accessible via a similar URL (notice the handle on the end)
http://demo.dspace.org/xmlui/handle/10673/4

Each of that item's files are accessible under URLs that look like:
http://demo.dspace.org/xmlui/bistream/handle/10673/4/[FILENAME]

Again, those URLs should not change after a backup and restore. If they 
are changing, than there must be a problem within your backup and 
restore process. What steps are you taking to do a backup and restore?

I've copied back in the 'dspace-tech' listserv -- please continue to 
include the list in your messages (as it allows others to help, and can 
be helpful to others who may have the same issue).

- Tim


On 8/3/2010 9:13 AM, فرانسيس Franci$  wrote:
> hi Tim Donohue
> ok i might be mistaken here for a example in ur link the number 4
> changes i thought that was the sequence id
>
> http://demo.dspace.org/xmlui/bitstream/handle/10673/*4*/test_pdf.pdf
> <http://demo.dspace.org/xmlui/bitstream/handle/10673/4/test_pdf.pdf>
> same link if i restore it i get something like  this
> http://demo.dspace.org/xmlui/bitstream/handle/10673/*5*/test_pdf.pdf
> <http://demo.dspace.org/xmlui/bitstream/handle/10673/4/test_pdf.pdf>
>
> notice the change whn i restore the backup
>
> i need that this number 4 remain constant ie if the file has the number
> 4 when i restore again it should have this identifier.
>
> thanx for replying please help
>
> On Tue, Aug 3, 2010 at 6:06 PM, Tim Donohue <[email protected]
> <mailto:[email protected]>> wrote:
>
>     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
>
>
>
>
> --
> Regards
>
> Francis Fernandes
> A smile is a curve that sets everything straight.....................so
> Keep Smiling

------------------------------------------------------------------------------
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