Coder Social home page Coder Social logo

ucsclibrary / simplevocabplus Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 2.0 243 KB

This Omeka 2.1+ plugin allows administrators to create, edit, and update controlled vocabularies either defined in Omeka or in the cloud

PHP 94.84% JavaScript 4.92% CSS 0.24%
controlled-vocabularies omeka omeka-classic plugin vocabulary

simplevocabplus's Introduction

Simple Vocab Plus (plugin for Omeka)

This Omeka 2.1+ plugin allows administrators to create, edit and update controlled vocabularies, either defined in the repository itself or in the cloud.

Version 3.1.2 offers new functions and extends the scope of the original plugin.

New functions:

  • chance to use the values already stored in the repository for the same element as suggestions;
  • chance to use values from multiple fields as suggestions;
  • chance to check the values stored for a specific element;
  • chance to force the use of a list of values (similar to the dropdown feature of the Simple Vocab original plugin).

Scope extended:

  • option to enable plugin functionality for Collections too;
  • option to enable plugin functionality for Exhibits too (if relative plugin is installed and working).

If you use this plugin, please take a moment to submit feedback about your experience, so we can keep making Omeka better: User Survey.

Installation

Uncompress files and rename plugin folder "SimpleVocabPlus".

Then install it like any other Omeka plugin.

Configuration

The brand new configuration panel allows to extend the plugin's functionality to files, collections and exhibits metadata, and to highlight the fields that are using the autosuggest feature.

Warning

Use it at your own risk.

It's always recommended to backup your files and database regularly so you can roll back if needed.

Troubleshooting

See online issues on the plugin issues page on GitHub.

License

This plugin is published under GNU/GPL v3.

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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Copyright

  • Copyright UCSC Library Digital Initiatives, 2014-2016
  • Copyright Daniel Berthereau, 2016 (see Daniel-KM on GitHub)
  • Copyright Daniele Binaghi, 2020-2022 (see DBinaghi on GitHub)

simplevocabplus's People

Contributors

daniel-km avatar dbinaghi avatar nedhenry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

simplevocabplus's Issues

error sql when updating

Hi,

I tried to update SimpleVocabPlus from 2.4 to 3.1.1.
Omeka Classic 3.0.1 (reclaimhosting.com)

I desactivate the 2.4 plugin and rename it in "_old"
Upload the 3.1.1 and rename it
I am invited to update it and then I get the following error :

`Zend_Db_Statement_Mysqli_Exception
Mysqli statement execute error : Duplicate column name 'type'

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate column name 'type' in /home/pierrehe/mysite.org/application/libraries/Zend/Db/Statement/Mysqli.php:215
Stack trace:
#0 /home/pierrehe/mysite.org/application/libraries/Zend/Db/Statement.php(303): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/pierrehe/mysite.org/application/libraries/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /home/pierrehe/mysite.org/application/libraries/Omeka/Db.php(80): Zend_Db_Adapter_Abstract->query('ALTER TABLE om...') #3 /home/pierrehe/mysite.org/plugins/SimpleVocabPlus/SimpleVocabPlusPlugin.php(94): Omeka_Db->__call('query', Array) #4 /home/pierrehe/mysite.org/application/libraries/Omeka/Plugin/Broker.php(142): SimpleVocabPlusPlugin->hookUpgrade(Array) #5 /home/pierrehe/mysite.org/application/libraries/Omeka/Plugin/Installer.php(92): Omeka_Plugin_Broker->callHook('upgrade', Array, Object(Plugin)) #6 /home/pierrehe/mysite.org/application/controllers/PluginsController.php(231): Omeka_Plugin_Installer->upgrade(Object(Plugin)) #7 /home/pierrehe/mysite.org/application/libraries/Zend/Controller/Action.php(516): PluginsController->upgradeAction() #8 /home/pierrehe/mysite.org/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('upgradeAction') #9 /home/pierrehe/mysite.org/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #10 /home/pierrehe/mysite.org/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #11 /home/pierrehe/mysite.org/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #12 /home/pierrehe/mysite.org/application/libraries/Omeka/Application.php(73): Zend_Application->run() #13 /home/pierrehe/mysite.org/admin/index.php(28): Omeka_Application->run() #14 {main}

Thanks for your help
Gil

Error when editing URL for existing Vocab

Received this error when I tried to edit the URL for an existing Vocabulary.
#0 /var/www/html/exhibits/application/libraries/Zend/Db/Statement.php(303): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/html/exhibits/application/libraries/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 [internal function]: Zend_Db_Adapter_Abstract->query('INSERT INTO om...', Array) #3 /var/www/html/exhibits/application/libraries/Omeka/Db.php(79): call_user_func_array(Array, Array) #4 /var/www/html/exhibits/application/libraries/Omeka/Db.php(252): Omeka_Db->__call('query', Array) #5 /var/www/html/exhibits/application/libraries/Omeka/Db.php(252): Omeka_Db->query('INSERT INTO om...', Array)
#6 /var/www/html/exhibits/application/libraries/Omeka/Record/AbstractRecord.php(543): Omeka_Db->insert('SvpVocab', Array)
#7 /var/www/html/exhibits/plugins/SimpleVocabPlus/controllers/IndexController.php(142): Omeka_Record_AbstractRecord->save()
#8 /var/www/html/exhibits/application/libraries/Zend/Controller/Action.php(516): SimpleVocabPlus_IndexController->editVocabularyAction()
#9 /var/www/html/exhibits/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editVocabularyA...')
#10 /var/www/html/exhibits/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/html/exhibits/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#12 /var/www/html/exhibits/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/html/exhibits/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#14 /var/www/html/exhibits/admin/index.php(28): Omeka_Application->run()
#15 {main}

Show Full Name of Item Type Metadata

When viewing current assignments it would be good to specify the item type when an element is assigned to Item Type Metadata. (Eg. "Item Type Metadata: Document" rather than just "Item Type Metadata".)

Error message when attempting to create vocabulary

I successfully installed Simple Vocab Plus and am looking forward to using it. Yet when I attempt to create a new vocabulary, I get an error message from Omeka, disallowing me from creating the vocabulary. Is this a known issue? Any advice?
omeka error

Installation failed

Hi,,
i tried to install both version of Simple Vocab Plus, but the plugin does not function propoerly (blank page)

The error log reports :

[Mon Mar 23 17:32:21 2015] [error] [client IP] PHP Parse error: syntax error, unexpected '[' in /[WebFolder/omeka/plugins/SimpleVocabPlus/controllers/IndexController.php on line 106, referer: http://omeka.inha.fr/admin/plugins

I do not see anything wrong in ths statement

        $authorityVocabulary = $svpVocabTable->find($svSuggest->vocab_id)['name'];

Best regards,

Gautier

Unassign?

Like GettySuggest issue: would be good to be able to unassign an element from a vocabulary.

Indicate assignment

Can we indicate that a given metadata field has been assigned to a Simple Vocab Plus vocabulary? (Like we do for Getty Suggest.)

Could Simple Vocab Plus read the entries already present in Omeka's repository?

Hi.
Many times, errors while entering new data is just a matter of spelling.
Would there be a way to use Simple Vocab Plus, as an option, to read the data already present for a specific field (say, Publisher, or Creator) and use them for the autocomplete function? This way, if for instance "Doe, John" was already present in the repository, when user starts typing "Do" they would see "Doe, John" among the available suggestions.
Thanks for your work.

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.