<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: eprints</title>
  <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?eprints"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="https://saturn.ffzg.hr%2C%20saturn.ffzg.hr:443/feed/workspace/rot13?page=eprints;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2013-11-17T12:12:12Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom">
    <title xmlns="http://www.w3.org/2005/Atom">eprints</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?eprints"/>
    <content xmlns="http://www.w3.org/2005/Atom" type="html">&lt;div&gt;Creator: Dobrica Pavlinušić&lt;/div&gt;&lt;hr/&gt;&lt;div class="wiki"&gt;
&lt;div class="nlw_phrase"&gt;&lt;table class="wafl_container"&gt;
  &lt;tr&gt;
    &lt;td&gt;
      &lt;div class="wafl_box"&gt;
        
          &lt;div class="wafl_titlebox"&gt;
            &lt;div class="wafl_title"&gt;
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="wafl_items"&gt;
            
              &lt;div class="wiki"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#documents_with_departments_and_security_settings"&gt;Dobrica Pavlinušić's random unstructured stuff (Documents with departments and security settings)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Documents with departments and security settings} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#update_access_to_staffonly"&gt;Dobrica Pavlinušić's random unstructured stuff (Update access to staffonly)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Update access to staffonly} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#repository"&gt;Dobrica Pavlinušić's random unstructured stuff (Repository)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Repository} --&gt;&lt;/span&gt;&lt;/li&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#backup"&gt;Dobrica Pavlinušić's random unstructured stuff (backup)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] backup} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#restore"&gt;Dobrica Pavlinušić's random unstructured stuff (restore)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] restore} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#importing_from_other_data_source"&gt;Dobrica Pavlinušić's random unstructured stuff (importing from other data source)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] importing from other data source} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#hash_in_export_filters_with_multilang_fields"&gt;Dobrica Pavlinušić's random unstructured stuff (HASH in export filters with multilang fields)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] HASH in export filters with multilang fields} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rest_api"&gt;Dobrica Pavlinušić's random unstructured stuff (REST API)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] REST API} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="nlw_phrase"&gt;&lt;a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fix_search_with_accented_characters_using_backport_from_git"&gt;Dobrica Pavlinušić's random unstructured stuff (Fix search with accented characters using backport from git)&lt;/a&gt;&lt;!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Fix search with accented characters using backport from git} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

            
            
          &lt;/div&gt;
        
      &lt;/div&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;!-- wiki: {toc: }
--&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1 id="documents_with_departments_and_security_settings"&gt;Documents with departments and security settings&lt;/h1&gt;
&lt;pre&gt;
select
 archive.eprintid,department,security
from archive,document
where document.eprintid = archive.eprintid and department like '%informacijske%';
&lt;/pre&gt;
&lt;br /&gt;&lt;h1 id="update_access_to_staffonly"&gt;Update access to &lt;tt&gt;staffonly&lt;/tt&gt;&lt;/h1&gt;
&lt;pre&gt;
begin;
update document set security='staffonly' where eprintid in ( select eprintid from archive where department like '%informacijske%' );
commit;
&lt;/pre&gt;
&lt;br /&gt;&lt;h1 id="repository"&gt;Repository&lt;/h1&gt;
&lt;h2 id="backup"&gt;backup&lt;/h2&gt;
&lt;pre&gt;
# prefix all commands with: sudo -u eprints /usr/share/eprints3/bin/
export ffzg archive XMLFiles &amp;gt; /tmp/ffzg.xmlfile
export ffzg subject XML &amp;gt; /tmp/submject.xml
export ffzg user XML &amp;gt; /tmp/user.xml
&lt;/pre&gt;
&lt;br /&gt;&lt;h2 id="restore"&gt;restore&lt;/h2&gt;
&lt;p&gt;
&lt;a target="_blank" title="(external link)" href="http://wiki.eprints.org/w/API:bin/import"&gt;http://wiki.eprints.org/w/API:bin/import&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;
epadmin erase_data ffzg

import_subjects --verbose --force --xml ffzg /tmp/submject.xml
import --verbose --migration ffzg user XML /tmp/user.xml
import --verbose --migration ffzg eprint XML /tmp/ffzg.xmlfile

generate_static ffzg
generate_views ffzg
&lt;/pre&gt;
&lt;br /&gt;&lt;h2 id="importing_from_other_data_source"&gt;importing from other data source&lt;/h2&gt;
&lt;p&gt;
When generating xml file for import documented at &lt;a target="_blank" title="(external link)" href="http://wiki.eprints.org/w/XML_Export_Format"&gt;http://wiki.eprints.org/w/XML_Export_Format&lt;/a&gt; from some other dataset using &lt;tt&gt;--update&lt;/tt&gt; is useful to re-run import&lt;/p&gt;
&lt;pre&gt;
sudo -u eprints /usr/share/eprints3/bin/import --verbose --migration --enable-file-imports --update grf eprint XML xml
&lt;/pre&gt;
&lt;br /&gt;&lt;p&gt;
File can be specified in &amp;lt;url&amp;gt; tag using &lt;a target="_blank" title="(external link)" href="file:///path/on/the/disk/file.pdf"&gt;file:///path/on/the/disk/file.pdf&lt;/a&gt; but you need --unable-file-imports for this to work!&lt;/p&gt;
&lt;h1 id="hash_in_export_filters_with_multilang_fields"&gt;HASH in export filters with multilang fields&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;bug report: &lt;a target="_blank" title="(external link)" href="http://www.eprints.org/tech.php/16066.html"&gt;http://www.eprints.org/tech.php/16066.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;eprints meta patch: &lt;span class="nlw_phrase"&gt;&lt;a href="https://saturn.ffzg.hr/rot13/index.cgi/eprints-plugin-export-simple-multilang.diff?action=attachments_download;page_name=eprints;id=20120306104458-0-9998"&gt;eprints-plugin-export-simple-multilang.diff&lt;/a&gt;&lt;!-- wiki: {file: eprints-=plugin-=export-=simple-=multilang.diff} --&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Even better solution which should work across updates is described at: &lt;a target="_blank" title="(external link)" href="http://www.eprints.org/tech.php/16125.html"&gt;http://www.eprints.org/tech.php/16125.html&lt;/a&gt; and our local changes are in &lt;span class="nlw_phrase"&gt;&lt;a href="https://saturn.ffzg.hr/rot13/index.cgi/eprints-SimpleMultilang.zip?action=attachments_download;page_name=eprints;id=20121017141400-0-16843"&gt;eprints-SimpleMultilang.zip&lt;/a&gt;&lt;!-- wiki: {file: eprints-=SimpleMultilang.zip} --&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="rest_api"&gt;REST API&lt;/h1&gt;
&lt;p&gt;
&lt;a target="_blank" title="(external link)" href="http://www.eprints.org/tech.php/17435.html"&gt;http://www.eprints.org/tech.php/17435.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
There is an experimental REST interface that lives at /rest/. You will&lt;br /&gt;
need to give your user the 'rest' role (e.g. in cfg.d/user_roles.pl):&lt;/p&gt;
&lt;p&gt;
$c-&amp;gt;{user_roles}-&amp;gt;{admin} = &lt;a href="https://saturn.ffzg.hr/rot13/index.cgi?qw%7B%20%26nbsp%3B%26nbsp%3Brest%20%26nbsp%3B%26nbsp%3Bgeneral%20%26nbsp%3B%26nbsp%3B...%20%7D" title="[click to create page]" class="incipient"&gt;qw{ &amp;nbsp;&amp;nbsp;rest &amp;nbsp;&amp;nbsp;general &amp;nbsp;&amp;nbsp;... }&lt;/a&gt;;&lt;/p&gt;
&lt;p&gt;
(reload Apache to apply the change)&lt;/p&gt;
&lt;p&gt;
This is driven by EPrints/Apache/REST.pm. One mention of it here:&lt;br /&gt;
&lt;a target="_blank" title="(external link)" href="http://wiki.eprints.org/w/New_Features_in_EPrints_3.2#REST"&gt;http://wiki.eprints.org/w/New_Features_in_EPrints_3.2#REST&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
Otherwise, I'm working on support CRUD/REST for EPrints URIs:&lt;/p&gt;
&lt;p&gt;
&lt;a target="_blank" title="(external link)" href="http://wiki.eprints.org/w/API:EPrints/Apache/CRUD"&gt;http://wiki.eprints.org/w/API:EPrints/Apache/CRUD&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
CRUD is missing the ability to update records - what is normally &amp;quot;POST&amp;quot; to an existing URI.&lt;/p&gt;
&lt;h1 id="fix_search_with_accented_characters_using_backport_from_git"&gt;Fix search with accented characters using backport from git&lt;/h1&gt;
&lt;span class="nlw_phrase"&gt;&lt;a href="https://saturn.ffzg.hr/rot13/index.cgi/eprints-fix-search.diff?action=attachments_download;page_name=eprints;id=20131117121149-0-26594"&gt;eprints-fix-search.diff&lt;/a&gt;&lt;!-- wiki: {file: eprints-=fix-=search.diff} --&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;hr/&gt;&lt;div&gt;Attachments: eprints-fix-search.diff, eprints-plugin-export-simple-multilang.diff, eprints-SimpleMultilang.zip&lt;/div&gt;</content>
    <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/index.cgi?eprints</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2013-11-17T12:12:12Z</updated>
  </entry>
</feed>
