EPrints Technical Mailing List Archive

Message: #03588


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Refreshing document listings


You can ignore the scriptaculous bits (that's a rather aging library that does stuff like collapsing/transitions etc).

I think the issues (insertBefore, removeChild) are caused by missing elements: the _javascript_ files expect a certain structure in the HTML and it can't find it. They may be some <div> with specific ID's etc. Anyways, it's likely that your changes in Documents have changed the DOM structure thus breaking the _javascript_. 

That's my guess anyway - if you have the patience you may compare a working version of the documents uploader/page/content with your broken one and you may find out which elements are missing.

Seb

 

On 06.11.2014 14:59, Lizz Jennings wrote:

Uncaught TypeError: Cannot read property 'insertBefore' of null auto-3.3.12.js:13005 (which is 89_component_documents.js)
Effect.SlideUp.afterFinish auto-3.3.12.js:13005 (which is 89_component_documents.js)
Effect.Base.Class.create.event auto-3.3.12.js:7484 (which is 30_scriptaculous_02_effects.js)
Effect.Base.Class.create.loop auto-3.3.12.js:7465 (which is 30_scriptaculous_02_effects.js)
Effect.ScopedQueue.Class.create.loop auto-3.3.12.js:7400 (which is 30_scriptaculous_02_effects.js)

Uncaught TypeError: Cannot read property 'removeChild' of null auto-3.3.12.js:2172 (which is 20_prototype.js)
remove auto-3.3.12.js:2172 (which is 20_prototype.js)
_methodized auto-3.3.12.js:461 (which is 20_prototype.js)
Effect.SlideUp.afterFinish auto-3.3.12.js:13004 (which is 89_component_documents.js)
Effect.Base.Class.create.event auto-3.3.12.js:7484 (which is 30_scriptaculous_02_effects.js)
Effect.Base.Class.create.loop auto-3.3.12.js:7465 (which is 30_scriptaculous_02_effects.js)
Effect.ScopedQueue.Class.create.loop auto-3.3.12.js:7400 (which is 30_scriptaculous_02_effects.js)


I've tried fiddling about with 89_component_documents (as I'd made my other changes to the Documents.pm file in Components), but without success.  I'm not even sure what scriptaculous means let alone what it might do....

Lizz

On 06/11/2014 14:36, sf2 wrote:

Any errors in your browser's console? That should get you started.

Seb

On 06.11.2014 13:51, Lizz Jennings wrote:

Hello all,

I've been adapting the document listings to group documents by type so 
that they can be displayed with their relevant upload box.  This works 
lovely when you load the edit screen, but after that, behaviour becomes 
more erratic:

1)  When I upload a file, even though the type is set at upload, it 
lists in all documents lists on the page

2)  When I click on the Files icon to look at e.g. the MD5 checksum, 
then press cancel, it loads any documents it can find regardless of 
type, although sometimes doesn't load the ones you were just looking at 
or seems only to recognise some of the documents.

I can get it to not display the items' content but still get stuck with 
empty boxes.

I think it's something in the _javascript_, but I'm out of ideas on where 
to look for the code that's generating these refreshes.

Any ideas?

Lizz

 

 


*** 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/

-- 
Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014)
Technical Data Officer
The Library 4.10, University of Bath, Bath, BA2 7AY UK
Ext. 3570 (External 01225 383570)
E.Jennings@bath.ac.uk

*** 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/