{"id":1811,"date":"2014-11-14T13:53:00","date_gmt":"2014-11-14T13:53:00","guid":{"rendered":"https:\/\/copyright.lboro.ac.uk\/lorls\/?p=1811"},"modified":"2014-11-19T13:27:24","modified_gmt":"2014-11-19T13:27:24","slug":"extending-the-structural-unit-types-available","status":"publish","type":"post","link":"https:\/\/blog.lboro.ac.uk\/lorls\/lorls\/extending-the-structural-unit-types-available","title":{"rendered":"Extending the Structural Unit Types available"},"content":{"rendered":"<p>One additional Structural Unit Type (SUT) that we have been asked for is Audio Visual (AV) material, e.g. CDs, DVDs, Film, etc. \u00a0While we&#8217;ve manually added an AV SUT to our local instance\u00a0we didn&#8217;t have an easy way to extend this to other instances of LORLS.<\/p>\n<p>So to tackle this we have put together a quick Perl script that can be run from the command line which adds in the new AV SUT.\u00a0If your LORLS install doesn&#8217;t have an AV Material SUT and you would like to add it then here are the instructions to do so:<\/p>\n<ol>\n<li>Back up your LORLS install (Don&#8217;t forget the database as this will be altered)<\/li>\n<li>Download the latest extendSUTs script (e.g. wget &#8220;https:\/\/blog.lboro.ac.uk\/lorls\/wp-content\/uploads\/sites\/3\/2014\/11\/extendSUTs&#8221;)<\/li>\n<li>Make the script executable (e.g. chmod +x extendSUTs)<\/li>\n<li>Run the script (e.g.\u00a0.\/extendSUTs &#8211;database=&lt;database&gt; &#8211;user=&lt;database user&gt;)<\/li>\n<li>When prompted enter the database user&#8217;s password<\/li>\n<li>If the script fails due to missing the\u00a0Term::ReadKey Perl module then install it and try the script again (RedHat\/CentOS should just need to run &#8220;sudo yum install\u00a0perl-TermReadKey&#8221;)<\/li>\n<li>Once the script has run open a new browser session and try adding a new AV Material entry to a test list.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One additional Structural Unit Type (SUT) that we have been asked for is Audio Visual (AV) material, e.g. CDs, DVDs, Film, etc. \u00a0While we&#8217;ve manually added an AV SUT to our local instance\u00a0we didn&#8217;t have an easy way to extend this to other instances of LORLS. So to tackle this we have put together a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[3,4],"tags":[100,53,99],"class_list":["post-1811","post","type-post","status-publish","format-standard","hentry","category-lorls","category-lump","tag-database","tag-lorls-in-a-box","tag-structural-unit-types","count-0","even alt","author-lbjlclboro-ac-uk","last"],"_links":{"self":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts\/1811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/comments?post=1811"}],"version-history":[{"count":5,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts\/1811\/revisions"}],"predecessor-version":[{"id":1820,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts\/1811\/revisions\/1820"}],"wp:attachment":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/media?parent=1811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/categories?post=1811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/tags?post=1811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}