Code Monkey home page Code Monkey logo

plugin-commons's Introduction

Welcome to Omeka

© 2016-present Corporation for Digital Scholarship, 2008-2016 Roy Rosenzweig Center for History and New Media

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Omeka includes:

Use and modifications of these libraries must comply with their respective licenses.

Release notes for Omeka are available at http://omeka.org/codex/Release_Notes.

plugin-commons's People

Contributors

patrickmj avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-commons's Issues

Contributing sites need a way to update site description

As a Commons contributor, I did not have a site description set when I joined the Commons. Upon looking at my site profile on the Commons, I went back to the "Site Information" view of the Commons plugin section, expecting to find a field for my site's description as it appears on the Commons. Not finding it there, I went to the "Settings" view of the Commons plugin section. Finally, I went to the "Settings" view in the top navigation bar and found the field for "Site description". After filling in the content and updating it, I expected to see it updated on my profile in the Commons, but it didn't take.

Ideally, I expect a "Site Description" field in the Commons plugin section in the "Site Information" or "Settings" views to be the same as the "Site Description" field in Omeka's general settings. Updating the site description through the plugin interface would update it in Omeka's general settings as well as the site's profile in the Commons.

Item images do not get pushed to Omeka Commons

As a Commons contributor, I attached image files to my items, and shared those items with the Commons. The items were successfully shared with the Commons, but there is no record of the attached files in the Commons admin records of the items.

Install error

@patrickmj

Notice: Use of undefined constant HELPERS - assumed 'HELPERS' in /websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/Commons/plugin.php on line 7 Warning: require_once(HELPERS): failed to open stream: No such file or directory in /websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/Commons/plugin.php on line 7 Fatal error: require_once(): Failed opening required 'HELPERS' (include_path='/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/application/libraries:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/application/models:.:/usr/share/pear:/usr/share/php:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/DublinCoreExtended/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/OaipmhHarvester/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/SimpleVocab/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/SimpleVocab/libraries:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/SimplePages/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/ExhibitBuilder/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/LcSuggest/models:/websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/LcSuggest/libraries:/websites/omekadev/home in /websites/omekadev/home/www/sbrennan/SearchTestO2/SearchTestO2/plugins/Commons/plugin.php on line 7

Make commons items private when deleted locally

When something is removed from the commons, should it also be deleted from the Commons?

First glance says "of course", but if we're doing preservation on-the-cheap by saying we have a backup copy in case something goes wrong with the local site, shouldn't we keep a copy around? That's the reasoning of just making it private when deleted locally -- if someone accidentally deletes a bunch of items, we should be able to get their copies back for them, yes?

Empty arrays on installation

When Commons plugin is installed, I also get this error in admin/items/edit:

In left column, where the metadata tabs are:
Warning: Invalid argument supplied for foreach() in /websites/devsites/sbrennan/onefive/admin/themes/default/items/form-tabs.php on line 51
In right column where form is:
Warning: Invalid argument supplied for foreach() in /websites/devsites/sbrennan/onefive/admin/themes/default/items/form.php on line 49 

Stopped process has zero time

Status page shows

Status: in progress
Started: 2012-05-25 10:49:40
Stopped: 0000-00-00 00:00:00

for a completed process

Various actions need confirmation flash messages

Each of these actions made as a Commons contributor need some kind of error or success flash message.

  • Whenever a change is made to a field on the 'Site Information' view.
  • Whenever on the 'Share' view, the contributor checks "export all the items" and updates the commons.
  • Whenever changes to 'Settings' are saved.

Ubi sunt links to Commons pages!

  1. Items sent to Commons status and details are Ok and Ok, with no link to page in Commons (may not have been sent to Commons, see next section).

    Huh, I’ve introduced a bug! I’ll add that back in (I think it was there before?)

before?) —yes, it was in there before. And I did see that my items were sent, but they weren’t in my display case.

https://chnm.basecamphq.com/W4805250

Column user_id cannot be null when exporting entire site

#0 /var/www/html/omeka-curr-rel/application/libraries/Zend/Db/Statement.php(300): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/html/omeka-curr-rel/application/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 [internal function]: Zend_Db_Adapter_Abstract->query('? INSERT...', Array)
#3 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Db.php(83): call_user_func_array(Array, Array)
#4 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Db.php(301): Omeka_Db->__call('query', Array)
#5 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Db.php(301): Omeka_Db->query('? INSERT...', Array)
#6 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Db.php(271): Omeka_Db->exec('? INSERT...', Array)
#7 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Record.php(551): Omeka_Db->insert('Process', Array)
#8 /var/www/html/omeka-curr-rel/application/models/ProcessDispatcher.php(41): Omeka_Record->save()
#9 /var/www/html/omeka-curr-rel/plugins/Commons/controllers/IndexController.php(72): ProcessDispatcher::startProcess('Commons_ItemsEx...', Array)
#10 /var/www/html/omeka-curr-rel/application/libraries/Zend/Controller/Action.php(516): Commons_IndexController->configAction()
#11 /var/www/html/omeka-curr-rel/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('configAction')
#12 /var/www/html/omeka-curr-rel/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /var/www/html/omeka-curr-rel/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#14 /var/www/html/omeka-curr-rel/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#15 /var/www/html/omeka-curr-rel/application/libraries/Omeka/Core.php(165): Zend_Application->run()
#16 /var/www/html/omeka-curr-rel/admin/index.php(44): Omeka_Core->run()
#17 {main}

Mysqli error when deleting an item

As a Commons contributor, I attempted to delete an item from the items/browse view, and encountered the following error:

Zend_Db_Statement_Mysqli_Exception

_Mysqli statement execute error : No data supplied for parameters in prepared statement_

#0 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Db/Statement.php(303): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Db/Adapter/Abstract.php(756): Zend_Db_Adapter_Abstract->query(Object(Omeka_Db_Select), Array)
#3 [internal function]: Zend_Db_Adapter_Abstract->fetchRow(Object(Omeka_Db_Select), Array)
#4 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Db.php(79): call_user_func_array(Array, Array)
#5 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Db/Table.php(612): Omeka_Db->__call('fetchRow', Array)
#6 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Db/Table.php(612): Omeka_Db->fetchRow(Object(Omeka_Db_Select), Array)
#7 /Users/kim/Sites/commons-test-1/plugins/Commons/models/CommonsRecordTable.php(9): Omeka_Db_Table->fetchObject(Object(Omeka_Db_Select))
#8 /Users/kim/Sites/commons-test-1/plugins/Commons/CommonsPlugin.php(190): CommonsRecordTable->findByTypeAndId('Item', NULL)
#9 [internal function]: CommonsPlugin->hookBeforeDeleteItem(Array)
#10 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Plugin/Broker.php(157): call_user_func(Array, Array)
#11 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Record/AbstractRecord.php(298): Omeka_Plugin_Broker->callHook('before_delete_i...', Array)
#12 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Record/AbstractRecord.php(580): Omeka_Record_AbstractRecord->runCallbacks('beforeDelete')
#13 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->delete()
#14 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Controller/Action.php(516): Omeka_Controller_AbstractActionController->deleteAction()
#15 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('deleteAction')
#16 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#17 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#18 /Users/kim/Sites/commons-test-1/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#19 /Users/kim/Sites/commons-test-1/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#20 /Users/kim/Sites/commons-test-1/admin/index.php(28): Omeka_Application->run()
#21 {main}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.