[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Editable box



Hi John,

Just going back through my various to-do?s and was wondering if you?d had
a brainwave on this?

On 29/04/2014 11:38, "John Salter" <J.Salter at leeds.ac.uk> wrote:

>I discovered this behaviour a few months ago - but haven't looked into
>what is needed to resolve it:
>https://github.com/eprints/eprints/issues/205
> - but you're right - it should work as you think it should!
>
>I've just added a comment to the issue above - if anyone's interested in
>learning a bit more EPrints-fu, this is how the pages are flagged to be
>regenerated:
>~/perl_lib/Apache/Rewrite.pm handles the incoming requests;
>From the above, when a static page is being served, this:
>~/perl_lib/EPrints/Update/Static.pm, sub update_static_file
>is called. This checks mtime for the xpage and the generated html page,
>and regenerates as necessary.
>It doesn't take into consideration changes in the phrase files.
>
>~/perl_lib/EPrints/Language.pm is where the phrases get loaded.
>
>At this point in time, I haven't worked out how best to add a
>phrase_mtime to the regeneration equation!
>
>Cheers,
>John
>
>
>-----Original Message-----
>From: eprints-tech-bounces at ecs.soton.ac.uk
>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew Beeken
>Sent: 29 April 2014 10:13
>To: eprints-tech at ecs.soton.ac.uk
>Subject: [EP-tech] Re: Editable box
>
>Okay, that worked - I take it I shouldn?t be running that every time I
>want to make a change this way? The point of this is that system admins
>can make these changes themselves.
>
>On 29/04/2014 09:24, "John Salter" <J.Salter at leeds.ac.uk> wrote:
>
>>See if running
>>> ~/bin/generate_static ARCHIVEID
>>helps.
>>If I remember correctly, the static pages don't instantly see changes in
>>the phrase files.
>>
>>Cheers,
>>John
>>
>>-----Original Message-----
>>From: eprints-tech-bounces at ecs.soton.ac.uk
>>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew Beeken
>>Sent: 28 April 2014 16:55
>>To: eprints-tech at ecs.soton.ac.uk
>>Subject: [EP-tech] Re: Editable box
>>
>>Everything seems to be in order. When I go to the admin page I get the
>>text which is being saved into zz_webcfg.xml; when I go to the homepage
>>I?m getting the default text from my xx_lirolem.xml file. I did initially
>>have this in a zz_lirolem.xml file, however I considered what you said
>>about loading order and changed the filename. Nothing, it?s odd.
>>
>>I?m wondering if it?s because I?m loading the phrases into the
>>index.xpage
>>file? Do I need to specify a source from there?
>>
>>On 28/04/2014 16:31, "John Salter" <J.Salter at leeds.ac.uk> wrote:
>>
>>>Hi Andrew,
>>>Check the apache error logs.
>>>Check the file is well formed XML (xmllint --format filename.xml).
>>>Check the phrase isn't getting overwritten by an alphabetically-later
>>>XML
>>>file (which is why the file has a 'zz_' prefix).
>>>
>>>I was going to suggest a new XML file doesn't get picked up until you've
>>>restarted Apache - but it sounds like you've been more brutal than that
>>>already ;o)
>>>
>>>Cheers,
>>>John
>>>
>>>-----Original Message-----
>>>From: eprints-tech-bounces at ecs.soton.ac.uk
>>>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew Beeken
>>>Sent: 28 April 2014 16:16
>>>To: eprints-tech at ecs.soton.ac.uk
>>>Subject: [EP-tech] Re: Editable box
>>>
>>>Hmm, annoyingly not working in incognito or via a reboot (I?m working on
>>>a
>>>local development version so I?ve got room to fiddle!)
>>>
>>>Is there some kind of debug mode I can use to see what phrase files are
>>>being loaded in?
>>>
>>>
>>>
>>>On 28/04/2014 15:32, "David McElroy" <D.Mcelroy at uel.ac.uk> wrote:
>>>
>>>>I've often found EPrints a little unpredictable in this regard.. I make
>>>>changes, refresh and nothing.. refresh again and it's there, refresh
>>>>again and its reverted back to original...
>>>>
>>>>I'd try loading the page in a Chrome incognito tab (or clearing your
>>>>cache) to check that it's not just a browser cache issue before
>>>>something
>>>>like restarting the webserver.
>>>>
>>>>
>>>>David
>>>>
>>>>-----Original Message-----
>>>>From: eprints-tech-bounces at ecs.soton.ac.uk
>>>>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew
>>>>Beeken
>>>>Sent: 28 April 2014 15:16
>>>>To: eprints-tech at ecs.soton.ac.uk
>>>>Subject: [EP-tech] Re: Editable box
>>>>
>>>>Cool, thanks for that. I?ve implemented the new fields and they show up
>>>>both in admin and on the index page as required, however when edited in
>>>>the admin the text on the index page doesn?t change. The new values are
>>>>indeed added to the zz_webcfg.xml file but this does not seem to be
>>>>loading, or at least isn?t being loaded correctly.
>>>>
>>>>Any thoughts? Anything I?m likely missing?
>>>>
>>>>
>>>>
>>>>On 28/04/2014 11:10, "David McElroy" <D.Mcelroy at uel.ac.uk> wrote:
>>>>
>>>>>All phrases are editable by admin. Look under Admin, Config. Tools,
>>>>>Phrase Editor.
>>>>>
>>>>>David
>>>>>
>>>>>-----Original Message-----
>>>>>From: eprints-tech-bounces at ecs.soton.ac.uk
>>>>>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew
>>>>>Beeken
>>>>>Sent: 28 April 2014 10:25
>>>>>To: eprints-tech at ecs.soton.ac.uk
>>>>>Subject: [EP-tech] Re: Editable box
>>>>>
>>>>>Would a phrase be editable in the admin pages?
>>>>>
>>>>>On 28/04/2014 10:18, "David McElroy" <D.Mcelroy at uel.ac.uk> wrote:
>>>>>
>>>>>>Hi Andrew,
>>>>>>	Have you considered using a phrase?
>>>>>>
>>>>>>David
>>>>>>
>>>>>>-----Original Message-----
>>>>>>From: eprints-tech-bounces at ecs.soton.ac.uk
>>>>>>[mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew
>>>>>>Beeken
>>>>>>Sent: 25 April 2014 16:45
>>>>>>To: eprints-tech at ecs.soton.ac.uk
>>>>>>Subject: [EP-tech] Editable box
>>>>>>
>>>>>>Hello all!
>>>>>>
>>>>>>I'm looking at creating a message box for the index page of our
>>>>>>repository that would be editable from the admin screen, enabling
>>>>>>administrators to control the message shown. Is this possible?
>>>>>>
>>>>>>Andrew
>>>>>>
>>>>>>The University of Lincoln, located in the heart of the city of
>>>>>>Lincoln, has established an international reputation based on high
>>>>>>student satisfaction, excellent graduate employment and world-class
>>>>>>research.
>>>>>>
>>>>>>The information in this e-mail and any attachments may be
>>>>>>confidential.
>>>>>>If you have received this email in error please notify the sender
>>>>>>immediately and remove it from your system. Do not disclose the
>>>>>>contents to another person or take copies.
>>>>>>
>>>>>>Email is not secure and may contain viruses. The University of
>>>>>>Lincoln
>>>>>>makes every effort to ensure email is sent without viruses, but
>>>>>>cannot
>>>>>>guarantee this and recommends recipients take appropriate
>>>>>>precautions.
>>>>>>
>>>>>>The University may monitor email traffic data and content in
>>>>>>accordance with its policies and English law. Further information can
>>>>>>be found at:
>>>>>>http://www.lincoln.ac.uk/legal.
>>>>>>
>>>>>>*** Options: 
>>>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>>>>
>>>>>>
>>>>>>This message has been scanned by the UEL anti-spam filters hosted by
>>>>>>Websense
>>>>>>
>>>>>>*** Options: 
>>>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>>>
>>>>>
>>>>>*** Options: 
>>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>>>
>>>>>*** Options: 
>>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>>
>>>>
>>>>*** Options: 
>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>>
>>>>*** Options: 
>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>>*** Archive: http://www.eprints.org/tech.php/
>>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>
>>>
>>>*** Options: 
>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>*** Archive: http://www.eprints.org/tech.php/
>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>*** EPrints developers Forum: http://forum.eprints.org/
>>>
>>>*** Options: 
>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>*** Archive: http://www.eprints.org/tech.php/
>>>*** EPrints community wiki: http://wiki.eprints.org/
>>>*** EPrints developers Forum: http://forum.eprints.org/
>>
>>
>>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>*** Archive: http://www.eprints.org/tech.php/
>>*** EPrints community wiki: http://wiki.eprints.org/
>>*** EPrints developers Forum: http://forum.eprints.org/
>>
>>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>*** Archive: http://www.eprints.org/tech.php/
>>*** EPrints community wiki: http://wiki.eprints.org/
>>*** EPrints developers Forum: http://forum.eprints.org/
>
>
>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>*** Archive: http://www.eprints.org/tech.php/
>*** EPrints community wiki: http://wiki.eprints.org/
>*** EPrints developers Forum: http://forum.eprints.org/
>
>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>*** Archive: http://www.eprints.org/tech.php/
>*** EPrints community wiki: http://wiki.eprints.org/
>*** EPrints developers Forum: http://forum.eprints.org/