Groups
Groups
Sign in
Groups
Groups
islandora-dev
Conversations
About
Send feedback
Help
Next PID value without incrementing
13 views
Skip to first unread message
Serhiy Polyakov
unread,
May 2, 2012, 3:36:07 AM
5/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to island...@googlegroups.com
I need to get next PID value. When I use this:
$next_pid = Fedora_Item::get_next_PID_in_namespace($name_space);
it returns the value but it also increments highestID in fedora MySQL
table pidGen by one.
Is there any Fedora/Islandora function that gets value without incrementing?
Otherwise I need to write PHP/MySQL to access table pidGen directly
and get highestID for the $name_space.
Thanks,
Serhiy
Alan Stanley
unread,
May 2, 2012, 9:58:34 AM
5/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to island...@googlegroups.com
Heisenberg's uncertainty principal answers this one for us - the act of observation affects the outcome. :-)
The increment is deliberate, it stops two users from trying to create objects with the same pid.
Alan Stanley
Lead Developer,
Islandora Project
Robertson Library, UPEI
550 University Avenue, Charlottetown
PE, C1A 4P3
1 902 566 6007
Reply all
Reply to author
Forward
0 new messages