<?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=Adding_an_Institution_Field_to_authors</id>
	<title>Adding an Institution Field to authors - 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=Adding_an_Institution_Field_to_authors"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;action=history"/>
	<updated>2026-05-06T03:40:44Z</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=Adding_an_Institution_Field_to_authors&amp;diff=9527&amp;oldid=prev</id>
		<title>Pm705 at 13:21, 5 October 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9527&amp;oldid=prev"/>
		<updated>2010-10-05T13:21:47Z</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 13:21, 5 October 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;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;[[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;&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;&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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&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=Adding_an_Institution_Field_to_authors&amp;diff=9526&amp;oldid=prev</id>
		<title>Pm705 at 13:21, 5 October 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9526&amp;oldid=prev"/>
		<updated>2010-10-05T13:21:19Z</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 13:21, 5 October 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:Metadata_fields]&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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;[Category:Metadata_fields&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&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;/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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&lt;/div&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=Adding_an_Institution_Field_to_authors&amp;diff=9525&amp;oldid=prev</id>
		<title>Pm705 at 13:21, 5 October 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9525&amp;oldid=prev"/>
		<updated>2010-10-05T13:21:07Z</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 13:21, 5 October 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:Metadata_fields]&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;&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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&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;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&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=Adding_an_Institution_Field_to_authors&amp;diff=9498&amp;oldid=prev</id>
		<title>Kiz at 10:14, 25 August 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9498&amp;oldid=prev"/>
		<updated>2010-08-25T10:14:03Z</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 10:14, 25 August 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-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;I wanted to have an institution associated with each author, however the same thing applies whatever the field would be&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;I wanted to have an institution associated with each author, however the same thing applies whatever the field would be&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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;==Adding the field to the database==&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;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Alter &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Workflow&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;Add it to &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;list of fields&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;* Edit &amp;lt;EPROOT&amp;gt;/archives/&amp;lt;ARCHIVE_ID&amp;gt;/cfg/cfg.d/eprint_fields.pl&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;* Edit &amp;lt;EPROOT&amp;gt;/archives/&amp;lt;ARCHIVE_ID&amp;gt;/cfg/cfg.d/eprint_fields.pl&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;* Add in the field you want for each of the people-type fields:&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;* Add in the field you want for each of the people-type fields:&lt;/div&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-l36&quot; &gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&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;* Update the database: &amp;lt;EPROOT&amp;gt;/bin/epadmin update_database_structure &amp;lt;ARCHIVE_ID&amp;gt;&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;* Update the database: &amp;lt;EPROOT&amp;gt;/bin/epadmin update_database_structure &amp;lt;ARCHIVE_ID&amp;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;/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;altering &lt;/del&gt;the lookup script===&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;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Altering &lt;/ins&gt;the lookup script===&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;The name fields come with an auto-completer, which (obviously) doesn't know about your new field.&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;The name fields come with an auto-completer, which (obviously) doesn't know about your new field.&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;&amp;lt;code&amp;gt;&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;&amp;lt;code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kiz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9497&amp;oldid=prev</id>
		<title>Kiz: Created page with '===Note to admin people: move this to the appropriate place, I can't work out how to add it===  I wanted to have an institution associated with each author, however the same thin…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Adding_an_Institution_Field_to_authors&amp;diff=9497&amp;oldid=prev"/>
		<updated>2010-08-25T10:07:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;===Note to admin people: move this to the appropriate place, I can&amp;#039;t work out how to add it===  I wanted to have an institution associated with each author, however the same thin…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Note to admin people: move this to the appropriate place, I can't work out how to add it===&lt;br /&gt;
&lt;br /&gt;
I wanted to have an institution associated with each author, however the same thing applies whatever the field would be&lt;br /&gt;
&lt;br /&gt;
==Adding the field to the database==&lt;br /&gt;
===Add it to the list of fields===&lt;br /&gt;
* Edit &amp;lt;EPROOT&amp;gt;/archives/&amp;lt;ARCHIVE_ID&amp;gt;/cfg/cfg.d/eprint_fields.pl&lt;br /&gt;
* Add in the field you want for each of the people-type fields:&lt;br /&gt;
&lt;br /&gt;
          {&lt;br /&gt;
            'name' =&amp;gt; 'creators',&lt;br /&gt;
            'type' =&amp;gt; 'compound',&lt;br /&gt;
            'multiple' =&amp;gt; 1,&lt;br /&gt;
            'fields' =&amp;gt; [&lt;br /&gt;
                          {&lt;br /&gt;
                            'sub_name' =&amp;gt; 'name',&lt;br /&gt;
                            'type' =&amp;gt; 'name',&lt;br /&gt;
                            'hide_honourific' =&amp;gt; 1,&lt;br /&gt;
                            'hide_lineage' =&amp;gt; 1,&lt;br /&gt;
                            'family_first' =&amp;gt; 1,&lt;br /&gt;
                          },&lt;br /&gt;
                          {&lt;br /&gt;
                            'sub_name' =&amp;gt; 'id',&lt;br /&gt;
                            'type' =&amp;gt; 'text',&lt;br /&gt;
                            'input_cols' =&amp;gt; 20,&lt;br /&gt;
                            'allow_null' =&amp;gt; 1,&lt;br /&gt;
                          },&lt;br /&gt;
  &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;                         {&lt;br /&gt;
                            'sub_name' =&amp;gt; 'institution',&lt;br /&gt;
                            'type' =&amp;gt; 'text',&lt;br /&gt;
                            'input_cols' =&amp;gt; 20,&lt;br /&gt;
                          }&amp;lt;/span&amp;gt;&lt;br /&gt;
                        ],&lt;br /&gt;
            'input_boxes' =&amp;gt; 4,&lt;br /&gt;
          },&lt;br /&gt;
* Update the database: &amp;lt;EPROOT&amp;gt;/bin/epadmin update_database_structure &amp;lt;ARCHIVE_ID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===altering the lookup script===&lt;br /&gt;
The name fields come with an auto-completer, which (obviously) doesn't know about your new field.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 use EPrints;&lt;br /&gt;
 &lt;br /&gt;
 use strict;&lt;br /&gt;
 &lt;br /&gt;
 my $session = EPrints::Session-&amp;gt;new();&lt;br /&gt;
 &lt;br /&gt;
 # security?&lt;br /&gt;
 &lt;br /&gt;
 my $content = &amp;quot;text/xml&amp;quot;;&lt;br /&gt;
 $session-&amp;gt;send_http_header( content_type=&amp;gt;$content );&lt;br /&gt;
 my $family = $session-&amp;gt;param( &amp;quot;_name_family&amp;quot; );&lt;br /&gt;
 my $given = $session-&amp;gt;param( &amp;quot;_name_given&amp;quot; );&lt;br /&gt;
 my $id = $session-&amp;gt;param( &amp;quot;_id&amp;quot; );&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;my $institution = $session-&amp;gt;param( &amp;quot;_institution&amp;quot; ); &amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 my $database = $session-&amp;gt;get_database;&lt;br /&gt;
 my $dataset = $session-&amp;gt;get_repository-&amp;gt;get_dataset( &amp;quot;eprint&amp;quot; );&lt;br /&gt;
 my $name_field = $dataset-&amp;gt;get_field( &amp;quot;creators_name&amp;quot; );&lt;br /&gt;
 my $id_field = $dataset-&amp;gt;get_field( &amp;quot;creators_id&amp;quot; );&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;my $institution_field = $dataset-&amp;gt;get_field( &amp;quot;creators_institution&amp;quot; );&amp;lt;/span&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 my @fields = ($name_field-&amp;gt;get_sql_names, $id_field-&amp;gt;get_sql_names, $institution_field-&amp;gt;get_sql_names); &lt;br /&gt;
 &lt;br /&gt;
 my $Q_table = $database-&amp;gt;quote_identifier($dataset-&amp;gt;get_sql_table_name);&lt;br /&gt;
 my $Q_name_table = $database-&amp;gt;quote_identifier($dataset-&amp;gt;get_sql_sub_table_name($name_field));&lt;br /&gt;
 my $Q_id_table = $database-&amp;gt;quote_identifier($dataset-&amp;gt;get_sql_sub_table_name($id_field));&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;my $Q_institution_table = $database-&amp;gt;quote_identifier($dataset-&amp;gt;get_sql_sub_table_name($institution_field));&amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 my $Q_eprintid = $database-&amp;gt;quote_identifier( &amp;quot;eprintid&amp;quot; );&lt;br /&gt;
 my $Q_pos = $database-&amp;gt;quote_identifier( &amp;quot;pos&amp;quot; );&lt;br /&gt;
 my $Q_num_matches = $database-&amp;gt;quote_identifier( &amp;quot;num_matches&amp;quot; );&lt;br /&gt;
 my $Q_eprint_status = $database-&amp;gt;quote_identifier( &amp;quot;eprint_status&amp;quot; ); &lt;br /&gt;
 &lt;br /&gt;
 my $sql = &amp;quot;SELECT COUNT($Q_table.$Q_eprintid) AS $Q_num_matches,&amp;quot;.&lt;br /&gt;
        join(&amp;quot;,&amp;quot;, map { $database-&amp;gt;quote_identifier($_) } @fields).&lt;br /&gt;
        &amp;quot; FROM $Q_table&amp;quot;.&lt;br /&gt;
        &amp;quot; LEFT JOIN $Q_name_table&amp;quot;.&lt;br /&gt;
        &amp;quot; ON $Q_table.$Q_eprintid=$Q_name_table.$Q_eprintid&amp;quot;.&lt;br /&gt;
        &amp;quot; LEFT JOIN $Q_id_table&amp;quot;.&lt;br /&gt;
        &amp;quot; ON $Q_name_table.$Q_eprintid=$Q_id_table.$Q_eprintid &amp;quot;.&lt;br /&gt;
        &amp;quot; AND $Q_name_table.$Q_pos=$Q_id_table.$Q_pos &amp;quot;.&lt;br /&gt;
       &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;quot; LEFT JOIN $Q_institution_table&amp;quot;.&lt;br /&gt;
       &amp;quot; ON $Q_institution_table.$Q_pos = $Q_id_table.$Q_pos&amp;quot;. &lt;br /&gt;
       &amp;quot; AND $Q_institution_table.$Q_eprintid = $Q_id_table.$Q_eprintid &amp;quot;.&amp;lt;/span&amp;gt;&lt;br /&gt;
        &amp;quot; WHERE &amp;quot;.&lt;br /&gt;
        &amp;quot; $Q_table.$Q_eprint_status=&amp;quot;.$database-&amp;gt;quote_value( &amp;quot;archive&amp;quot; );&lt;br /&gt;
 if( EPrints::Utils::is_set( $family ) )&lt;br /&gt;
 {&lt;br /&gt;
    $sql .= &amp;quot; AND &amp;quot;.$database-&amp;gt;quote_identifier(&amp;quot;creators_name_family&amp;quot;)&lt;br /&gt;
                 .&amp;quot; ILIKE &amp;quot;&lt;br /&gt;
                 .$database-&amp;gt;quote_value( '%' . EPrints::Database::prep_like_value($family).'%');&lt;br /&gt;
 }&lt;br /&gt;
 if( EPrints::Utils::is_set( $given ) )&lt;br /&gt;
 {&lt;br /&gt;
     $sql .= &amp;quot; AND &amp;quot;.$database-&amp;gt;quote_identifier(&amp;quot;creators_name_given&amp;quot;)&lt;br /&gt;
                 .&amp;quot; ILIKE &amp;quot;&lt;br /&gt;
                 .$database-&amp;gt;quote_value( '%' . EPrints::Database::prep_like_value($given).'%');&lt;br /&gt;
 }&lt;br /&gt;
 if( EPrints::Utils::is_set( $id ) )&lt;br /&gt;
 {&lt;br /&gt;
     $sql .= &amp;quot; AND &amp;quot;.$database-&amp;gt;quote_identifier(&amp;quot;creators_id&amp;quot;)&lt;br /&gt;
                 .&amp;quot; ILIKE &amp;quot;&lt;br /&gt;
                 .$database-&amp;gt;quote_value( '%' . EPrints::Database::prep_like_value($id).'%');&lt;br /&gt;
 }&lt;br /&gt;
 $sql .= &amp;quot;GROUP BY &amp;quot;.join(&amp;quot;,&amp;quot;,map { $database-&amp;gt;quote_identifier($_) } @fields) .&lt;br /&gt;
         &amp;quot; ORDER BY $Q_num_matches DESC,&amp;quot; .&lt;br /&gt;
         $database-&amp;gt;quote_identifier(&amp;quot;creators_name_family&amp;quot;).&amp;quot;,&amp;quot;.&lt;br /&gt;
         $database-&amp;gt;quote_identifier(&amp;quot;creators_name_given&amp;quot;);&lt;br /&gt;
 my @rows;&lt;br /&gt;
 my $sth = $session-&amp;gt;get_database-&amp;gt;prepare_select( $sql, 'limit' =&amp;gt; 40 );&lt;br /&gt;
 $session-&amp;gt;get_database-&amp;gt;execute( $sth , $sql );&lt;br /&gt;
 while( my @row = $sth-&amp;gt;fetchrow_array )&lt;br /&gt;
 {&lt;br /&gt;
    my $cnt = shift @row;&lt;br /&gt;
    my $name = $name_field-&amp;gt;value_from_sql_row( $session, \@row );&lt;br /&gt;
    my $id = $id_field-&amp;gt;value_from_sql_row( $session, \@row );&lt;br /&gt;
    &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;my $institution = $institution_field-&amp;gt;value_from_sql_row( $session, \@row );&amp;lt;/span&amp;gt;&lt;br /&gt;
    my $item = {};&lt;br /&gt;
    push @rows, $item;&lt;br /&gt;
    my $frag = $session-&amp;gt;make_doc_fragment;&lt;br /&gt;
    $frag-&amp;gt;appendChild( $name_field-&amp;gt;render_single_value( $session, $name ) );&lt;br /&gt;
    if( EPrints::Utils::is_set( $id ) )&lt;br /&gt;
    {&lt;br /&gt;
        $frag-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot; &amp;quot; ) );&lt;br /&gt;
        $frag-&amp;gt;appendChild( $id_field-&amp;gt;render_single_value( $session, $id ) );&lt;br /&gt;
    }&lt;br /&gt;
    my $small = $session-&amp;gt;make_element( &amp;quot;small&amp;quot; );&lt;br /&gt;
    $frag-&amp;gt;appendChild( $small );&lt;br /&gt;
    &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;if( EPrints::Utils::is_set( $institution ) )&lt;br /&gt;
    {&lt;br /&gt;
       $small-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot; [&amp;quot; ) );&lt;br /&gt;
       $small-&amp;gt;appendChild( $id_field-&amp;gt;render_single_value( $session, $institution ) );&lt;br /&gt;
       $small-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot;] &amp;quot; ) );&lt;br /&gt;
    }&amp;lt;/span&amp;gt;&lt;br /&gt;
    $small-&amp;gt;appendChild( $session-&amp;gt;make_text( &amp;quot; (author of &amp;quot;.$cnt.&amp;quot; item&amp;quot;.($cnt&amp;gt;1?&amp;quot;s&amp;quot;:&amp;quot;&amp;quot;).&amp;quot; in this repository)&amp;quot; ) );&lt;br /&gt;
    $item-&amp;gt;{xhtml} = $frag;&lt;br /&gt;
    $item-&amp;gt;{values} = [&lt;br /&gt;
      &amp;quot;for:value:relative:_name_family&amp;quot; =&amp;gt; $name-&amp;gt;{family},&lt;br /&gt;
      &amp;quot;for:value:relative:_name_given&amp;quot; =&amp;gt; $name-&amp;gt;{given},&lt;br /&gt;
      &amp;quot;for:value:relative:_name_honourific&amp;quot; =&amp;gt; $name-&amp;gt;{honourific},&lt;br /&gt;
      &amp;quot;for:value:relative:_name_lineage&amp;quot; =&amp;gt; $name-&amp;gt;{lineage},&lt;br /&gt;
      &amp;quot;for:value:relative:_id&amp;quot; =&amp;gt; $id,&lt;br /&gt;
      &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;quot;for:value:relative:_institution&amp;quot; =&amp;gt; $institution,&amp;lt;/span&amp;gt;&lt;br /&gt;
    ];&lt;br /&gt;
 }&lt;br /&gt;
 $sth-&amp;gt;finish();&lt;br /&gt;
 &lt;br /&gt;
 my $ul = EPrints::Extras::render_lookup_list( $session, \@rows );&lt;br /&gt;
 &lt;br /&gt;
 $session-&amp;gt;send_http_header( content_type =&amp;gt; &amp;quot;text/xml; charset=UTF-8&amp;quot; );&lt;br /&gt;
 &lt;br /&gt;
 binmode(STDOUT,&amp;quot;:utf8&amp;quot;);&lt;br /&gt;
 print &amp;lt;&amp;lt;END;&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;br /&gt;
 END&lt;br /&gt;
 &lt;br /&gt;
 print EPrints::XML::to_string( $ul, &amp;quot;utf-8&amp;quot;, 1 );&lt;br /&gt;
 &lt;br /&gt;
 EPrints::XML::dispose( $ul );&lt;br /&gt;
 &lt;br /&gt;
 $session-&amp;gt;terminate;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiz</name></author>
		
	</entry>
</feed>