source: documented-example-collections/trunk/wiki/import/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Changing_the_prefix_for_incremental_OIDs.html@ 18738

Last change on this file since 18738 was 18738, checked in by oranfry, 15 years ago

the rest of the documented example collections

  • Property svn:executable set to *
File size: 10.9 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta name="KEYWORDS" content="Changing the prefix for incremental OIDs" />
6<meta name="robots" content="index,follow" />
7<link rel="shortcut icon" href="http://greenstone.sourceforge.net/wiki/favicon.ico" />
8<link rel="copyright" href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:The_GNU_Free_Documentation_License.html" />
9 <title>Changing the prefix for incremental OIDs - GreenstoneWiki</title>
10 <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/wiki/skins/monobook/main.css"; /*]]>*/</style>
11 <link rel="stylesheet" type="text/css" media="print" href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/skins/common/commonPrint.css" />
12 <link rel="stylesheet" type="text/css" href="http://www.greenstone.org/style/intersite.css" />
13 <!--[if lt IE 5.5000]><style type="text/css">@import "/wiki/skins/monobook/IE50Fixes.css";</style><![endif]-->
14 <!--[if IE 5.5000]><style type="text/css">@import "/wiki/skins/monobook/IE55Fixes.css";</style><![endif]-->
15 <!--[if gte IE 6]><style type="text/css">@import "/wiki/skins/monobook/IE60Fixes.css";</style><![endif]-->
16 <!--[if lt IE 7]><script type="text/javascript" src="/wiki/skins/common/IEFixes.js"></script>
17 <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
18 <script type="text/javascript" src="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php?title=-&amp;action=raw&amp;gen=js"></script> <script type="text/javascript" src="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/skins/common/wikibits.js"></script>
19 <style type="text/css">/*<![CDATA[*/
20@import "/wiki/index.php?title=MediaWiki:Monobook.css&action=raw&ctype=text/css&smaxage=18000";
21@import "/wiki/index.php?title=-&action=raw&gen=css&maxage=18000";
22/*]]>*/</style> </head>
23 <body class="ns-0">
24
25 <div id="topbun">
26 <a id="sitesbar_greenstoneorg" class="dim" href="http://www.greenstone.org/"><div><div>greenstone.org</div></div></a>
27 <a id="sitesbar_wiki" href="http://wiki.greenstone.org/"><div><div>greenstone wiki</div></div></a>
28 <a id="sitesbar_trac" class="dim" href="http://trac.greenstone.org/"><div><div>greenstone trac</div></div></a>
29 <a id="sitesbar_planet" class="dim" href="http://planet.greenstone.org/"><div><div>planet greenstone</div></div></a>
30 <div class="clear"> </div>
31 <div class="rule"> </div>
32</div>
33
34 <div id="meat">
35
36 <div id="globalWrapper">
37 <div id="column-content">
38 <div id="content">
39 <a name="top" id="top"></a>
40 <h1 class="firstHeading">Changing the prefix for incremental OIDs</h1>
41 <div id="bodyContent">
42 <h3 id="siteSub">From GreenstoneWiki</h3>
43 <div id="contentSub"></div>
44 <!-- start content -->
45 <p>This is useful when you are using greenstone to ingest into DSpace, and want a slightly shorter identifier. (the HASH ones are wider than the screen, making citation of items difficult)
46</p>
47<hr />
48<p>I worked out the quick and dirty way of changing the prefix when doing an incremental OID
49</p><p>Note: This seems to work...use at own risk.
50</p><p>the file that needs to be changed
51greenstone/perllib/doc.pm
52</p><p>Just look for the "D" and replace it with whatever you want.
53In my case this was in greenstone/perllib/doc.pm (about a third of the way down)
54</p>
55<pre> } elsif ($self->{'OIDtype'} eq "incremental") {
56 $OID = "QUILT" . $OIDcount;
57 $OIDcount ++;
58</pre>
59<p>(sorry no line numbers)
60</p><p>The dreaded "D" also appears in greentone/bin/scripts/import.pl - but it is commented out.
61</p><p>Please let me know if this doesn't work, breaks your collection, greenstone, your computer or sets fire to your house.
62</p><p>Cheers,
63</p><p>Stephen
64</p>
65<hr />
66<p>Michael Dewsnip provided the following note, just in case you were tempted to leave the prefix blank.
67</p>
68<pre>Hi Stephen,
69
70Your change should be fine.
71
72Just in case you're curious, the reason that the OIDs can't be purely
73numerical is that they might conflict with the indexer document numbers.
74</pre>
75<!-- Saved in parser cache with key gswikidb:pcache:idhash:1382-0!1!0!0!!en!2 and timestamp 20070905064713 -->
76<div class="printfooter">
77Retrieved from "<a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Changing_the_prefix_for_incremental_OIDs.html">http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Changing_the_prefix_for_incremental_OIDs</a>"</div>
78 <!-- end content -->
79 <div class="visualClear"></div>
80 </div>
81 </div>
82 </div>
83 <div id="column-one">
84 <div id="p-cactions" class="portlet">
85 <h5>Views</h5>
86 <ul>
87 <li id="ca-nstab-main"
88 class="selected" ><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Changing_the_prefix_for_incremental_OIDs.html">Article</a></li><li id="ca-talk"
89 class="new" ><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php?title=Talk:Changing_the_prefix_for_incremental_OIDs&amp;action=edit">Discussion</a></li><li id="ca-edit"
90 ><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php?title=Changing_the_prefix_for_incremental_OIDs&amp;action=edit">Edit</a></li><li id="ca-history"
91 ><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php?title=Changing_the_prefix_for_incremental_OIDs&amp;action=history">History</a></li> </ul>
92 </div>
93 <div class="portlet" id="p-personal">
94 <h5>Personal tools</h5>
95 <div class="pBody">
96 <ul>
97 <li id="pt-greenstoneorg"><a href="http://www.greenstone.org/">Go to greenstone.org</a></li><li id="pt-login"><a href="http://www.greenstone.org/login?forward=http://wiki.greenstone.org/wiki/index.php/Changing_the_prefix_for_incremental_OIDs">Log in</a></li><li id="pt-createaccount"><a href="http://www.greenstone.org/developers-register">Create an account</a></li> </ul>
98 </div>
99 </div>
100 <div class="portlet" id="p-logo">
101 <a style="background-image: url(/wiki/skins/common/images/toki_small.png);"
102 href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Main_Page.html"
103 title="Main Page"></a>
104 </div>
105 <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
106 <div class='portlet' id='p-navigation'>
107 <h5>Navigation</h5>
108 <div class='pBody'>
109 <ul>
110 <li id="n-mainpage"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki.html">Main Page</a></li>
111 <li id="n-Greenstone-FAQ"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Greenstone_FAQ.html">Greenstone FAQ</a></li>
112 <li id="n-General-documentation"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/General_Documentation.html">General documentation</a></li>
113 <li id="n-Tutorial-exercises"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Tutorial_exercises.html">Tutorial exercises</a></li>
114 <li id="n-Example-collections"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Example_collections.html">Example collections</a></li>
115 <li id="n-Manuals"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Manual.html">Manuals</a></li>
116 <li id="n-User-contributed-documentation"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/User_contributed.html">User contributed documentation</a></li>
117 <li id="n-Greenstone-workshops"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Greenstone_workshops.html">Greenstone workshops</a></li>
118 </ul>
119 </div>
120 </div>
121 <div id="p-search" class="portlet">
122 <h5><label for="searchInput">Search</label></h5>
123 <div class="pBody">
124 <form name="searchform" action="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Special:Search" id="searchform">
125 <input id="searchInput" name="search" type="text"
126 accesskey="f" value="" />
127 <input type='submit' name="go" class="searchButton" id="searchGoButton"
128 value="Go"
129 />&nbsp;<input type='submit' name="fulltext"
130 class="searchButton"
131 value="Search" />
132 </form>
133 </div>
134 </div>
135 <div class="portlet" id="p-tb">
136 <h5>Toolbox</h5>
137 <div class="pBody">
138 <ul>
139 <li id="t-whatlinkshere"><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Special:Whatlinkshere/Changing_the_prefix_for_incremental_OIDs">What links here</a></li>
140 <li id="t-recentchangeslinked"><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Special:Recentchangeslinked/Changing_the_prefix_for_incremental_OIDs">Related changes</a></li>
141 <li id="t-upload"><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Special:Upload">Upload file</a></li> <li id="t-specialpages"><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php/Special:Specialpages">Special pages</a></li> <li id="t-print"><a href="http://greenstonewiki.cs.waikato.ac.nz/wiki/index.php?title=Changing_the_prefix_for_incremental_OIDs&amp;printable=yes">Printable version</a></li>
142 </ul>
143 </div>
144 </div>
145 </div><!-- end of the left (by default at least) column -->
146 <div class="visualClear"></div>
147 <div id="footer">
148 <div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/skins/common/images/poweredby_mediawiki_88x31.png" alt="MediaWiki" /></a></div> <ul id="f-list">
149 <li id="f-lastmod"> This page was last modified 01:23, 18 January 2007.</li> <li id="f-viewcount">This page has been accessed 310 times.</li> <li id="f-copyright">Content is available under <a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:The_GNU_Free_Documentation_License.html" title="GreenstoneWiki:The GNU Free Documentation License"></a> the terms of the <a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:The_GNU_Free_Documentation_License.html">GNU Free Documentation License</a>. (See <a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:Copyrights.html">Copyrights</a> for details.)</a>.</li> <li id="f-about"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:About.html" title="GreenstoneWiki:About">About GreenstoneWiki</a></li> <li id="f-disclaimer"><a href="/home/lh92/.gli/cache/greenstonewiki.cs.waikato.ac.nz/wiki/index.php/GreenstoneWiki:General_disclaimer.html" title="GreenstoneWiki:General disclaimer">Disclaimers</a></li> </ul>
150 </div>
151 </div>
152 </div>
153 <!-- Served by puka.cs.waikato.ac.nz in 0.13 secs. --> </body>
154</html>
Note: See TracBrowser for help on using the repository browser.