add more taxonomies questions

118 views
Skip to first unread message

wu....@usask.ca

unread,
Mar 31, 2011, 4:22:30 PM3/31/11
to Qubit Toolkit Developers
Hi all,

how can i add more taxonomies name under list taxonomies? e.g make a
new name called "Thematic Area" listing on "List taxonomies" and after
click added Thematic Area, it'll be able to add its type like
"Aboriginal Peoples".

what i figured it out is from the database end, I manually added a
taxonomy called "Thematic Area" into taxonomy, term, slug, and object
tables. it doest seem to work.

Thanks

Hernan Carvajal Briceño

unread,
Mar 31, 2011, 4:43:18 PM3/31/11
to qubi...@googlegroups.com
Hi Wu.

I asked a similar question a few months ago.

You can see this thread:
http://groups.google.com/group/qubit-dev/browse_frm/thread/e145ed29aba43c39/55444de7ba4d33b0?lnk=gst&q=new+taxonomy#55444de7ba4d33b0

That could help you.

Regards,

Hernán Carvajal

2011/3/31 wu....@usask.ca <wu....@usask.ca>:

> --
> You received this message because you are subscribed to the Google Groups "Qubit Toolkit Developers" group.
> To post to this group, send email to qubi...@googlegroups.com.
> To unsubscribe from this group, send email to qubit-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/qubit-dev?hl=en.
>
>

--
Hernán Carvajal Briceño.
hernan.h...@gmail.com

wu....@usask.ca

unread,
Mar 31, 2011, 5:19:34 PM3/31/11
to Qubit Toolkit Developers
Hi Hernan,

Thanks for replying me question. The link you provided doent really
help me, and did you solve the problem yet?

Thanks

On Mar 31, 2:43 pm, Hernan Carvajal Briceño
<hernan.hcarva...@gmail.com> wrote:
> Hi Wu.
>
> I asked a similar question a few months ago.
>
> You can see this thread:http://groups.google.com/group/qubit-dev/browse_frm/thread/e145ed29ab...
>
> That could help you.
>
> Regards,
>
> Hernán Carvajal
>
> 2011/3/31 wu....@usask.ca <wu....@usask.ca>:
>
>
>
> > Hi all,
>
> > how can i add more taxonomies name under list taxonomies? e.g make a
> > new name called "Thematic Area" listing on "List taxonomies" and after
> > click added Thematic Area, it'll be able to add its type like
> > "Aboriginal Peoples".
>
> > what i figured it out is from the database end, I manually added a
> > taxonomy called "Thematic Area" into taxonomy, term, slug, and object
> > tables. it doest seem to work.
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups "Qubit Toolkit Developers" group.
> > To post to this group, send email to qubi...@googlegroups.com.
> > To unsubscribe from this group, send email to qubit-dev+...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/qubit-dev?hl=en.
>
> --
> Hernán Carvajal Briceño.
> hernan.hcarva...@gmail.com

Jesús García Crespo

unread,
Mar 31, 2011, 7:26:16 PM3/31/11
to qubi...@googlegroups.com, wu....@usask.ca
Hi Wu,

On Thu, Mar 31, 2011 at 11:19 PM, wu....@usask.ca <wu....@usask.ca> wrote:
Thanks for replying me question. The link you provided doent really
help me, and did you solve the problem yet?

Why not? I explained to Hernán that it is not recommended to modify the database manually and other interesting stuff: http://goo.gl/Sdby3. Additionally, you can load the new taxonomy using YAML fixtures and propel:data-load task. For example:

$ php symfony propel:data-load new-taxonomy.yml

Read data/fixtures/taxonomyTerms.yml as a good example.

Regards,

--
Jesús García Crespo,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

Hernan Carvajal Briceño

unread,
Apr 1, 2011, 8:45:56 AM4/1/11
to qubi...@googlegroups.com, wu....@usask.ca
Hi Wu:

Yes, indeed, I've solved the problem with the advice that Jesús gave
me in that thread.
There are several ways to make the job. Are you planning to do this
from scratch? Or do you have an ICA-Atom system that is already in
production?

The fact is that you will need to modify some files, it depends on the
starting point you choose or you need to.
May be I can help you. Tell me what is your situation in this case.

Regards,
Hernán

2011/3/31 wu....@usask.ca <wu....@usask.ca>:

> For more options, visit this group at http://groups.google.com/group/qubit-dev?hl=en.
>
>

--
Hernán Carvajal Briceño.
hernan.h...@gmail.com

wu....@usask.ca

unread,
Apr 1, 2011, 1:43:04 PM4/1/11
to Qubit Toolkit Developers
Hi Hernán,

Here is what i want to do. On edit archival institution- isdiah
template, i
want basically make a duplicate of "type" and named it "Geographic
region";
its supposed to use taxonomy for this field. please see this:
http://www.qubit-toolkit.org/wiki/index.php?title=Repository_search_enhancements

Now i got stuck with the taxonomy for "Geographic region" which doesnt
exsit
on current taxonomy. Basically, what i want now is just to get a
duplicate
of "Repository Types" and rename it to "Geographic region" under
List
taxonomies after you login. Now we have not launched our production
yet, and
still in development.

Any help will be appreciated.

Thanks very much in advanced

-Wu


On Apr 1, 6:45 am, Hernan Carvajal Briceño

David Juhasz

unread,
Apr 1, 2011, 8:38:52 PM4/1/11
to qubi...@googlegroups.com
Hi Wu,

To add a new taxonomy to Qubit, you need to add it in a few places to make sure it is available to *everyone* that installs Qubit - otherwise they will get an error when the taxonomy is required.

1) The first place you should add the taxonomy is http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/model/QubitTaxonomy.php

You should add it right after "ISDF_RELATION_TYPE_ID" (line 55) and increment the constant id by one to "62".  This allows the developer to easily grab terms in the new taxonomy.

2) The next place to add the taxonomy is in http://code.google.com/p/qubit-toolkit/source/browse/trunk/data/fixtures/taxonomyTerms.yml

This will create the taxonomy for *new* installs of Qubit (and ICA-AtoM Release 1.2).

Add the taxonomy right before the "QubitTerm" (line 330) fixtures.  If you are unfamiliar with YAML then the Wikipedia YAML article is a good introduction.  You can copy and paste the "QubitTaxonomy_isdf_relation_type" YAML fixture then modify for "Geographic region".


3) The last place to add the taxonomy is in http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/task/migrate/QubitMigrate110.class.php

This adds the taxonomy when someone upgrades from a previous version of ICA-AtoM.  Maybe Jesús can help you with adding the proper migration code.


Regards,
David

-- 
David Juhasz,
Software Engineer

Artefactual Systems Inc.
www.artefactual.com

Peter Van Garderen

unread,
Apr 3, 2011, 12:44:27 PM4/3/11
to qubi...@googlegroups.com
Thanks for documenting this David. This is very useful. Jesus also wrote some
good instructions for this last year:
http://groups.google.com/group/qubit-dev/msg/a383fc3f019d3e32?pli=1

Can someone please post these somewhere to the wiki for future reference and
maybe think about a Mediawiki category tag to use for stuff like 'developer
tutorials/'how tos' (e.g. that would include 'how to create a Qubit theme' etc).

Cheers, --peter

Peter Van Garderen
President/Systems Archivist
Artefactual Systems Inc.
--
email: pe...@artefactual.com
web: http://artefactual.com
phone: (+1) 604.527.2056
--

On 04/01/2011 08:38 PM, David Juhasz wrote:
> Hi Wu,
>
> To add a new taxonomy to Qubit, you need to add it in a few places to make sure
> it is available to *everyone* that installs Qubit - otherwise they will get an
> error when the taxonomy is required.
>
> 1) The first place you should add the taxonomy is
> http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/model/QubitTaxonomy.php
>
> You should add it right after "ISDF_RELATION_TYPE_ID" (line 55) and increment
> the constant id by one to "62". This allows the developer to easily grab terms
> in the new taxonomy.
>
> 2) The next place to add the taxonomy is in
> http://code.google.com/p/qubit-toolkit/source/browse/trunk/data/fixtures/taxonomyTerms.yml
>
> This will create the taxonomy for *new* installs of Qubit (and ICA-AtoM Release
> 1.2).
>
> Add the taxonomy right before the "QubitTerm" (line 330) fixtures. If you are
> unfamiliar with YAML then the Wikipedia YAML article

> <http://en.wikipedia.org/wiki/YAML> is a good introduction. You can copy and


> paste the "QubitTaxonomy_isdf_relation_type" YAML fixture then modify for
> "Geographic region".
>
>
> 3) The last place to add the taxonomy is in
> http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/task/migrate/QubitMigrate110.class.php
>
> This adds the taxonomy when someone upgrades

> <http://www.qubit-toolkit.org/wiki/index.php?title=Upgrading> from a previous


> version of ICA-AtoM. Maybe Jesús can help you with adding the proper migration code.
>
>
> Regards,
> David
>
> --
> David Juhasz,
> Software Engineer
>
> Artefactual Systems Inc.
> www.artefactual.com
>

David Juhasz

unread,
Apr 4, 2011, 1:21:10 PM4/4/11
to qubi...@googlegroups.com
I will add the notes to the wiki. I planned to do this Friday, but ran
out of time.

David

wu....@usask.ca

unread,
Apr 6, 2011, 4:33:08 PM4/6/11
to Qubit Toolkit Developers

thanks for everyone. My problem got solved.

Thanks again
> >>http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/model/...
>
> >> You should add it right after "ISDF_RELATION_TYPE_ID" (line 55) and
> >> increment
> >> the constant id by one to "62". This allows the developer to easily
> >> grab terms
> >> in the new taxonomy.
>
> >> 2) The next place to add the taxonomy is in
> >>http://code.google.com/p/qubit-toolkit/source/browse/trunk/data/fixtu...
>
> >> This will create the taxonomy for *new* installs of Qubit (and
> >> ICA-AtoM Release
> >> 1.2).
>
> >> Add the taxonomy right before the "QubitTerm" (line 330) fixtures. If
> >> you are
> >> unfamiliar with YAML then the Wikipedia YAML article
> >> <http://en.wikipedia.org/wiki/YAML> is a good introduction. You can
> >> copy and
> >> paste the "QubitTaxonomy_isdf_relation_type" YAML fixture then modify
> >> for
> >> "Geographic region".
>
> >> 3) The last place to add the taxonomy is in
> >>http://code.google.com/p/qubit-toolkit/source/browse/trunk/lib/task/m...
Reply all
Reply to author
Forward
0 new messages