<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=HOW_TO%3A_Add_a_New_Field</id>
	<title>HOW TO: Add a New Field - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=HOW_TO%3A_Add_a_New_Field"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;action=history"/>
	<updated>2026-05-06T03:13:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=16080&amp;oldid=prev</id>
		<title>Ajm: Removed mention of needing to do SQL hacking. Referred to the need to run epadmin update if the repository is live.</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=16080&amp;oldid=prev"/>
		<updated>2023-07-17T17:17:04Z</updated>

		<summary type="html">&lt;p&gt;Removed mention of needing to do SQL hacking. Referred to the need to run epadmin update if the repository is live.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:17, 17 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This covers adding a new field to a new system&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. When adding to &lt;/ins&gt;a live system&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, you may wish &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;follow up with an epadmin update command, as documented in [[Adding &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Field &lt;/ins&gt;to a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Live Repository]]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This covers adding a new field to a new system&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, not &lt;/del&gt;a live system&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. It is possible &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;add &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;new field &lt;/del&gt;to a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;live system but involves SQL hacking&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this example we add a new &amp;quot;set&amp;quot; field called &amp;quot;local&amp;quot; which will have 3 options &amp;quot;yes&amp;quot;,&amp;quot;no&amp;quot; and &amp;quot;partial&amp;quot; - this will indicate if the item in question was produced in our organisation or not.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this example we add a new &amp;quot;set&amp;quot; field called &amp;quot;local&amp;quot; which will have 3 options &amp;quot;yes&amp;quot;,&amp;quot;no&amp;quot; and &amp;quot;partial&amp;quot; - this will indicate if the item in question was produced in our organisation or not.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ajm</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=14262&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk at 18:01, 22 January 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=14262&amp;oldid=prev"/>
		<updated>2022-01-22T18:01:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:01, 22 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l93&quot; &gt;Line 93:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 93:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may prefer to use this method even if you are only using a single language.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may prefer to use this method even if you are only using a single language.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Metadata Fields&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]] [[Category:Howto&lt;/del&gt;]] [[Category:Customisation]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Metadata Fields]] [[Category:Customisation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=14250&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added to Howto and Customisation categories</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=14250&amp;oldid=prev"/>
		<updated>2022-01-21T12:27:23Z</updated>

		<summary type="html">&lt;p&gt;Added to Howto and Customisation categories&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:27, 21 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Metadata Fields]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l92&quot; &gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may prefer to use this method even if you are only using a single language.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may prefer to use this method even if you are only using a single language.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Metadata Fields]] [[Category:Howto]] [[Category:Customisation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=8989&amp;oldid=prev</id>
		<title>Pm705 at 12:31, 20 March 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=8989&amp;oldid=prev"/>
		<updated>2010-03-20T12:31:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:31, 20 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Configuration]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Metadata Fields&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Howto&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pm705</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=8273&amp;oldid=prev</id>
		<title>Pm705 at 15:07, 8 February 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=8273&amp;oldid=prev"/>
		<updated>2010-02-08T15:07:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:07, 8 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Configuration]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Howto]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pm705</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=3671&amp;oldid=prev</id>
		<title>Hk at 14:07, 17 January 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=HOW_TO:_Add_a_New_Field&amp;diff=3671&amp;oldid=prev"/>
		<updated>2007-01-17T14:07:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Adding a new field to EPrints 3 essentially works like for EPrints 2.3. Just the files to edit and the syntax somewhat changed. For EPrints 2.3 see [http://www.eprints.org/documentation/tech/php/howto.php#how_to__add_a_new_field this page].&lt;br /&gt;
&lt;br /&gt;
This covers adding a new field to a new system, not a live system. It is possible to add a new field to a live system but involves SQL hacking.&lt;br /&gt;
&lt;br /&gt;
In this example we add a new &amp;quot;set&amp;quot; field called &amp;quot;local&amp;quot; which will have 3 options &amp;quot;yes&amp;quot;,&amp;quot;no&amp;quot; and &amp;quot;partial&amp;quot; - this will indicate if the item in question was produced in our organisation or not.&lt;br /&gt;
&lt;br /&gt;
= Add the Field to archives/ARCHIVEID/cfg/cfg.d/eprint_fields.pl =&lt;br /&gt;
&lt;br /&gt;
Add the field to the appropriate part of eprint_fields.pl  &lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'name' =&amp;gt; 'local',&lt;br /&gt;
   'type' =&amp;gt; 'set',&lt;br /&gt;
   'options' =&amp;gt; [&lt;br /&gt;
         'yes',&lt;br /&gt;
         'no',&lt;br /&gt;
         'partial',&lt;br /&gt;
         ],&lt;br /&gt;
   'input_rows' =&amp;gt; 1,&lt;br /&gt;
 },&lt;br /&gt;
&lt;br /&gt;
input_rows being set to one will make it appear as a pull-down menu.&lt;br /&gt;
&lt;br /&gt;
= Add the Field to Workflow =&lt;br /&gt;
&lt;br /&gt;
If you want the user to be able to edit this field for any or all types of eprint/user then you need to add it to each appropriate type in archives/ARCHIVEID/cfg/workflows/eprint/default.xml (this can be changed on a live system without any serious consequencies). Add the following to an approriate place in the core section:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;component&amp;gt;&amp;lt;field ref=&amp;quot;local&amp;quot; required=&amp;quot;yes&amp;quot; /&amp;gt;&amp;lt;/component&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Add the Field Information to the Archive Phrase File(s) =&lt;br /&gt;
&lt;br /&gt;
Normally we just need to add fieldname and fieldhelp, but this is an option field so we need to add names for each option. If we run the archive in more than one language then we add this to each phrase file (but in the appropriate language). Phrases for eprint fields are found in archives/ARCHIVEID/cfg/lang/en/phrases/eprint_fields.xml.&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;eprint_fieldname_local&amp;quot;&amp;gt;Produced Locally&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;eprint_fieldhelp_local&amp;quot;&amp;gt;Please indicate if this item was &lt;br /&gt;
          produces in the foo organisation, or not.&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;eprint_fieldopt_local_yes&amp;quot;&amp;gt;produced locally&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;eprint_fieldopt_local_no&amp;quot;&amp;gt;not produced locally&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;eprint_fieldopt_local_partial&amp;quot;&amp;gt;only partially produced &lt;br /&gt;
          locally&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other things you may wish to change after adding a new field ==&lt;br /&gt;
&lt;br /&gt;
= Add it to the citations file =&lt;br /&gt;
&lt;br /&gt;
This is optional, only do this if you want it to appear in the citated forms. &lt;br /&gt;
&lt;br /&gt;
In our example case we only want this to appear when citing technical reports, so we add the following to  archives/ARCHIVEID/cfg/lang/en/phrases/eprint_fields.xml:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;if test=&amp;quot;type = 'techreport'&amp;quot;&amp;gt;     &lt;br /&gt;
   &amp;lt;print expr=&amp;quot;local&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/if&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;print&amp;gt; element is not inside &amp;lt;if test=&amp;quot;local&amp;quot;&amp;gt;&amp;lt;/if&amp;gt; as it is a required field and will (should) always be set.&lt;br /&gt;
&lt;br /&gt;
= Add it to the the Abstract (or View-User) page =&lt;br /&gt;
&lt;br /&gt;
This is also optional. If you want it to appear on the web page for this item then edit either archives/ARCHIVEID/cfg/cfg.d/eprint_render.pl or archives/ARCHIVEID/cfg/cfg.d/user_render.pl. &lt;br /&gt;
&lt;br /&gt;
In our example we only want to mention items if an item was not produced locally. We'll add it below the documents and above the abstract...&lt;br /&gt;
&lt;br /&gt;
Single language example:&lt;br /&gt;
&lt;br /&gt;
     if( $eprint-&amp;gt;get_value( &amp;quot;local&amp;quot; ) ne &amp;quot;yes&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
          # don't need to &amp;quot;my $p&amp;quot; as it's done earlier.&lt;br /&gt;
          $p = $session-&amp;gt;make_element( &amp;quot;p&amp;quot; );&lt;br /&gt;
          $p-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot;This item was &amp;quot; ) );&lt;br /&gt;
          $p-&amp;gt;appendChild( $eprint-&amp;gt;render_value( &amp;quot;local&amp;quot; ) );&lt;br /&gt;
          $p-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot;.&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
          # Append our new paragraph to the page.&lt;br /&gt;
          $page-&amp;gt;appendChild( $p );&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
Multiple-language example:&lt;br /&gt;
&lt;br /&gt;
If you want to make it handle more than language then we'll need to use the archive phrase file - we would add something like this to each languages file:&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;epp:phrase id=&amp;quot;page:itemnotlocal&amp;quot;&amp;gt;&amp;lt;p&amp;gt;This item was &amp;lt;pin ref=&amp;quot;status&amp;quot; /&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;/epp:phrase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And to the archives/ARCHIVEID/cfg/cfg.d/eprint_render.pl file:&lt;br /&gt;
&lt;br /&gt;
     if( $eprint-&amp;gt;get_value( &amp;quot;local&amp;quot; ) ne &amp;quot;yes&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
          my $localmsg = $session-&amp;gt;html_phrase(&lt;br /&gt;
                 &amp;quot;page:itemnotlocal&amp;quot;,&lt;br /&gt;
                 status=&amp;gt;$eprint-&amp;gt;render_value( &amp;quot;local&amp;quot; ) );&lt;br /&gt;
          $page-&amp;gt;appendChild( $localmsg );&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
You may prefer to use this method even if you are only using a single language.&lt;/div&gt;</summary>
		<author><name>Hk</name></author>
		
	</entry>
</feed>