Difference between revisions of "Organisation Hierarchy"

From EPrints Documentation
Jump to: navigation, search
m
(remove spam)
Line 1: Line 1:
[http://gabe95.ifrance.com/html/rocketraid/ rocketraid 1520] [http://gajar.ifrance.com/html/radio.htm radio 24] [http://krychan.ifrance.com/content/view/montaggio-a.htm montaggio a secco] [http://dejablu503.ifrance.com/description/lib/motorola-v.htm motorola v547 tim] [http://sm4.ifrance.com/lib/prestito-personali/ prestito personali catania] [http://sm4.ifrance.com/lib/porno-masochiste/ porno masochiste] [http://gabe95.ifrance.com/html/www-elperiodico/ www elperiodico com] [http://horcrionebay.ifrance.com/resources/articles/xx.htm x2x] [http://horcrionebay.ifrance.com/resources/articles/san-pellegrino.htm san pellegrino] [http://lekusya.ifrance.com/library/html/gooogle/ gooogle] [http://trumanburb.ifrance.com/view/new/zona-rossa.htm zona rossa a monaco] [http://call-shotgun.ifrance.com/view/new/cerrone/ cerrone] [http://krychan.ifrance.com/content/view/konica-minolta.htm konica minolta dimage z2] [http://mfirishka.ifrance.com/view/new/vico-rebelde.htm vico rebelde way] [http://smegmacheez.ifrance.com/content/view/simbolos-gays/ simbolos gays] [http://gajar.ifrance.com/html/inkisi.htm inkisi] [http://horcrionebay.ifrance.com/resources/articles/la-notte.htm la notte nella roma antica] [http://zeakk.ifrance.com/resources/articles/piatti-per.htm piatti per batteria] [http://cocopuff66.ifrance.com/text/directory/cpu-z/ cpu z80] [http://call-shotgun.ifrance.com/view/new/socialisti/ socialisti] [http://call-shotgun.ifrance.com/view/new/lampade-di/ lampade di sale] [http://zeakk.ifrance.com/resources/articles/midi-latini.htm midi latini] [http://gajar.ifrance.com/html/rayban-outdoorsman.htm ray-ban outdoorsman] [http://smegmacheez.ifrance.com/content/view/king-cab/ king cab nissan] [http://flawedamythyst.ifrance.com/img/styles/colorificio-san.htm colorificio san marco] [http://horcrionebay.ifrance.com/resources/articles/quando-il.htm quando il vento dell est] [http://smegmacheez.ifrance.com/content/view/pentax-ist/ pentax ist corpo] [http://alishca-st.ifrance.com/text/directory/wallpaper-harry.htm wallpaper harry potter 2] [http://flawedamythyst.ifrance.com/img/styles/michel-buble.htm michel buble] [http://horcrionebay.ifrance.com/resources/articles/le-armi.htm le armi e la catena alimentare di king kong] [http://horcrionebay.ifrance.com/resources/articles/rolling-stones.htm rolling stones sito ufficiale] [http://horcrionebay.ifrance.com/resources/articles/maione-giuseppe.htm maione giuseppe] [http://nokros.ifrance.com/data/tom-tom/ tom tom mobile 5 serie 90] [http://cocopuff66.ifrance.com/text/directory/koochy/ koochy] [http://squoi-oop.ifrance.com/topic/mp-giuseppe/ mp3 giuseppe castiglia] [http://gabe95.ifrance.com/html/frigor-ad/ frigor ad incasso] [http://lekusya.ifrance.com/library/html/sarno-salerno/ sarno (salerno)] [http://smegmacheez.ifrance.com/content/view/le-avventure/ le avventure di batman] [http://lekusya.ifrance.com/library/html/eurojunior/ eurojunior 3 2] [http://horcrionebay.ifrance.com/resources/articles/quanto-t.htm quanto t ho amto] [http://zeakk.ifrance.com/resources/articles/death-is.htm death is just the beginning] [http://trumanburb.ifrance.com/view/new/honda-cbr.htm honda cbr rr 1000] [http://trumanburb.ifrance.com/view/new/casella-e.htm casella e mail] [http://call-shotgun.ifrance.com/view/new/forgot-about/ forgot about dre eminem] [http://sm4.ifrance.com/lib/fornacette/ fornacette] [http://krychan.ifrance.com/content/view/murales-educativos.htm murales educativos] [http://trumanburb.ifrance.com/view/new/pompini-di.htm pompini di selen] [http://krychan.ifrance.com/content/view/vogelsberg.htm vogelsberg] [http://nokros.ifrance.com/data/home-theatre/ home theatre philips divx] [http://krychan.ifrance.com/content/view/my-x.htm my x-4 sagem] [http://zeakk.ifrance.com/resources/articles/nokia-ngage.htm nokia n-gage cellulari] [http://gabe95.ifrance.com/html/pastorano/ pastorano] [http://lightmyfire0214.ifrance.com/topic/musiche-da/ musiche da cerimonia] [http://mfirishka.ifrance.com/view/new/batteria-canon.htm batteria canon bp 522] [http://atrayah.ifrance.com/topic/now-we.htm now we] [http://mfirishka.ifrance.com/view/new/annunciato-need.htm annunciato need for speed most wanted] [http://zeakk.ifrance.com/resources/articles/sonori-bombolo.htm sonori bombolo] [http://zeakk.ifrance.com/resources/articles/pikes-peak.htm pikes peak] [http://sm4.ifrance.com/lib/rene-dupree/ rene dupree] [http://lekusya.ifrance.com/library/html/cucina-winnie/ cucina winnie] [http://lekusya.ifrance.com/library/html/tirrito-giuseppe/ tirrito giuseppe] [http://zeakk.ifrance.com/resources/articles/panasonic-fotocamere.htm panasonic fotocamere lz2] [http://dejablu503.ifrance.com/description/lib/www-gamberorosso.htm www gamberorosso it] [http://dejablu503.ifrance.com/description/lib/www-valentino.htm www valentino rossi net] [http://atrayah.ifrance.com/topic/risultati-esame.htm risultati esame avvocato torino] [http://lightmyfire0214.ifrance.com/topic/robbie-williams/ robbie williams live at the albert] [http://flawedamythyst.ifrance.com/img/styles/bm.htm bm 3985] [http://mfirishka.ifrance.com/view/new/velhas-e.htm velhas e gordas nuas] [http://sm4.ifrance.com/lib/nova-gioielli/ nova gioielli snc] [http://sm4.ifrance.com/lib/margate/ margate] [http://lightmyfire0214.ifrance.com/topic/e-mail/ e mail di francesca nocerino] [http://horcrionebay.ifrance.com/resources/articles/sei-rimasta.htm sei rimasta sola] [http://call-shotgun.ifrance.com/view/new/darkwell/ darkwell] [http://cocopuff66.ifrance.com/text/directory/dominguez/ dominguez] [http://dejablu503.ifrance.com/description/lib/itinerari-ciociaria.htm itinerari ciociaria storica] [http://alishca-st.ifrance.com/text/directory/ozone-music.htm ozone music video] [http://call-shotgun.ifrance.com/view/new/henry-/ henry - pioggia di sangue] [http://gajar.ifrance.com/html/roxy-life.htm roxy life] [http://sm4.ifrance.com/lib/dragpn-ball/ dragpn ball gt] [http://squoi-oop.ifrance.com/topic/asse-per/ asse per stirare da tavolo] [http://joshuaw-wise.ifrance.com/img/styles/us-cervia/ us cervia] [http://mfirishka.ifrance.com/view/new/stella-nuda.htm stella nuda] [http://krychan.ifrance.com/content/view/www-con.htm www con sexso con animales] [http://alishca-st.ifrance.com/text/directory/nike-triax.htm nike triax swift] [http://smegmacheez.ifrance.com/content/view/cambogia-ristorante/ cambogia ristorante] [http://krychan.ifrance.com/content/view/would-u.htm would u feel] [http://smegmacheez.ifrance.com/content/view/perinaldo/ perinaldo] [http://dejablu503.ifrance.com/description/lib/barbie.htm barbie 2003] [http://krychan.ifrance.com/content/view/the-rock.htm the rock wwf] [http://joshuaw-wise.ifrance.com/img/styles/webcam-amatoriali/ webcam amatoriali gratis] [http://nokros.ifrance.com/data/roberto-carlos/ roberto carlos] [http://call-shotgun.ifrance.com/view/new/maran-ata/ maran ata] [http://horcrionebay.ifrance.com/resources/articles/packard-bell.htm packard bell - audiokey 1gb] [http://atrayah.ifrance.com/topic/lancaster-perla.htm lancaster perla] [http://krychan.ifrance.com/content/view/hotel-cristina.htm hotel cristina] [http://smegmacheez.ifrance.com/content/view/super-butts/ super butts] [http://krychan.ifrance.com/content/view/ethereal.htm ethereal] [http://alishca-st.ifrance.com/text/directory/novela.htm novela] [http://krychan.ifrance.com/content/view/e-foame.htm e foame de banii] [http://atrayah.ifrance.com/topic/iomega-micro.htm iomega micro mini usb] [http://sm4.ifrance.com/lib/hl/ hl 2040] [http://mfirishka.ifrance.com/view/new/bobble-.htm bobble  puzzle] [http://gajar.ifrance.com/html/inverter-condizionatore.htm inverter condizionatore] [http://dejablu503.ifrance.com/description/lib/leggi-cicerone.htm leggi cicerone] [http://gajar.ifrance.com/html/afrikaans.htm afrikaans] [http://horcrionebay.ifrance.com/resources/articles/dymo-etichettatrice.htm dymo etichettatrice elettronica] [http://gajar.ifrance.com/html/citroen-noleggio.htm citroen noleggio lungo termine] [http://atrayah.ifrance.com/topic/my-cover.htm my cover cd for itunes] [http://cocopuff66.ifrance.com/text/directory/pci-express/ pci express asus] [http://lightmyfire0214.ifrance.com/topic/toner-canon/ toner canon mf5650] [http://mfirishka.ifrance.com/view/new/the-moon.htm the moon brothers] [http://call-shotgun.ifrance.com/view/new/mr-baba/ mr baba] [http://nokros.ifrance.com/data/sony-videocamera/ sony videocamera minidv dcr-hc32] [http://dejablu503.ifrance.com/description/lib/dkny-donna.htm dkny donna profumi] [http://alishca-st.ifrance.com/text/directory/inverter-mitsubishi.htm inverter mitsubishi] [http://dejablu503.ifrance.com/description/lib/catoni.htm catoni] [http://smegmacheez.ifrance.com/content/view/globel/ globel] [http://zeakk.ifrance.com/resources/articles/porte-aperte.htm porte aperte al delitto] [http://gabe95.ifrance.com/html/terme-cure/ terme cure termali] [http://atrayah.ifrance.com/topic/nurri.htm nurri] [http://atrayah.ifrance.com/topic/test-psicologici.htm test psicologici] [http://lightmyfire0214.ifrance.com/topic/wyler-vetta/ wyler vetta] [http://alishca-st.ifrance.com/text/directory/hp-celeron.htm hp celeron m] [http://flawedamythyst.ifrance.com/img/styles/mercedes-classe.htm mercedes classe e] [http://gajar.ifrance.com/html/prime-sei.htm prime sei immagini per unreal tournament 2007] [http://zeakk.ifrance.com/resources/articles/severina-vuckovic.htm severina vuckovic foto html] [http://horcrionebay.ifrance.com/resources/articles/almost-america.htm almost america] [http://krychan.ifrance.com/content/view/enrico-tranchina.htm enrico tranchina] [http://zeakk.ifrance.com/resources/articles/sdram-.htm sdram 128 mb 100pin] [http://cocopuff66.ifrance.com/text/directory/pons/ pons] [http://call-shotgun.ifrance.com/view/new/supporto-tv/ supporto tv plasma soffitto] [http://zeakk.ifrance.com/resources/articles/hp-tom.htm hp tom tom] [http://dejablu503.ifrance.com/description/lib/su-al.htm su al jazira video] [http://zeakk.ifrance.com/resources/articles/file-hex.htm file hex ultra blue] [http://zeakk.ifrance.com/resources/articles/diritto-privato.htm diritto privato] [http://mfirishka.ifrance.com/view/new/just-for.htm just for you testo] [http://lekusya.ifrance.com/library/html/nuova-patch/ nuova patch per starcraft] [http://lightmyfire0214.ifrance.com/topic/tarzan-boy/ tarzan boy baltimora] [http://flawedamythyst.ifrance.com/img/styles/midi-anos.htm midi anos 60] [http://joshuaw-wise.ifrance.com/img/styles/monitor-lcd/ monitor lcd offerta] [http://gabe95.ifrance.com/html/stanza-puia/ stanza puia] [http://sm4.ifrance.com/lib/villaggi-turistici/ villaggi turistici] [http://lekusya.ifrance.com/library/html/wioska/ wioska] [http://flawedamythyst.ifrance.com/img/styles/titti-warnerbros.htm titti warnerbros] [http://dejablu503.ifrance.com/description/lib/sara-l.htm sara l aurora] [http://squoi-oop.ifrance.com/topic/ragazze-di/ ragazze di foggia] [http://horcrionebay.ifrance.com/resources/articles/skoda-octavia.htm skoda octavia tdi] [http://zeakk.ifrance.com/resources/articles/porno-cam.htm porno cam] [http://gajar.ifrance.com/html/piscina-lido.htm piscina lido torino] [http://trumanburb.ifrance.com/view/new/log.htm log 0073] [http://mfirishka.ifrance.com/view/new/sex-vecchio.htm sex vecchio] [http://flawedamythyst.ifrance.com/img/styles/bachata-rosa.htm bachata rosa] [http://atrayah.ifrance.com/topic/soraya-moraes.htm soraya moraes] [http://call-shotgun.ifrance.com/view/new/k/ k448] [http://nokros.ifrance.com/data/chingy-thurr/ chingy thurr] [http://cocopuff66.ifrance.com/text/directory/mondadori-genova/ mondadori genova] [http://mfirishka.ifrance.com/view/new/ragno.htm ragno] [http://smegmacheez.ifrance.com/content/view/oyama/ oyama] [http://lekusya.ifrance.com/library/html/elisa-together/ elisa together mp3] [http://gajar.ifrance.com/html/viaje-ala.htm viaje ala isla aruba] [http://joshuaw-wise.ifrance.com/img/styles/gandhi-film/ gandhi film dvd] [http://lekusya.ifrance.com/library/html/in-citta/ in citta] [http://flawedamythyst.ifrance.com/img/styles/divano-divano.htm divano divano] [http://lekusya.ifrance.com/library/html/mp-pen/ mp3 pen drive] [http://cocopuff66.ifrance.com/text/directory/spionaggio-atomico/ spionaggio atomico] [http://atrayah.ifrance.com/topic/copertina-cd.htm copertina cd audio giorgia] [http://gabe95.ifrance.com/html/keira-knightley/ keira knightley nuda] [http://squoi-oop.ifrance.com/topic/modelli-sommergibili/ modelli sommergibili] [http://horcrionebay.ifrance.com/resources/articles/video-clip.htm video clip de regeton] [http://trumanburb.ifrance.com/view/new/batteria-per.htm batteria per nokia 9500] [http://trumanburb.ifrance.com/view/new/prenotazioni-roma.htm prenotazioni roma residence] [http://horcrionebay.ifrance.com/resources/articles/spartiti-ave.htm spartiti ave maria] [http://lekusya.ifrance.com/library/html/base-attack/ base attack nobody listen to techno] [http://zeakk.ifrance.com/resources/articles/k-maro.htm k maro famme] [http://sm4.ifrance.com/lib/cioccolata-calda/ cioccolata calda - amore al cioccolato] [http://flawedamythyst.ifrance.com/img/styles/karakoram.htm karakoram] [http://gabe95.ifrance.com/html/ostaggio-russo/ ostaggio russo decapitato] [http://smegmacheez.ifrance.com/content/view/rial-screens/ rial screens] [http://nokros.ifrance.com/data/esbiche-in/ esbiche in calendario 2005] [http://mfirishka.ifrance.com/view/new/scopare-cognata.htm scopare cognata] [http://zeakk.ifrance.com/resources/articles/lucciola.htm lucciola] [http://atrayah.ifrance.com/topic/kazaa-light.htm kazaa light] [http://call-shotgun.ifrance.com/view/new/midi-giani/ midi giani morandi] [http://nokros.ifrance.com/data/fujitsu-celsius/ fujitsu celsius h230] [http://atrayah.ifrance.com/topic/canon-ef.htm canon ef 50 1 8 ii] [http://gajar.ifrance.com/html/nuova-audi.htm nuova audi a4 avant 2005 diesel auto] [http://flawedamythyst.ifrance.com/img/styles/giochi.htm giochi] [http://zeakk.ifrance.com/resources/articles/toyota-corolla.htm toyota corolla 2 0] [http://alishca-st.ifrance.com/text/directory/acronis-privacy.htm acronis privacy expert suite] [http://flawedamythyst.ifrance.com/img/styles/colpire.htm colpire] [http://gabe95.ifrance.com/html/dolak/ dolak] [http://gajar.ifrance.com/html/michela-mitti.htm michela mitti] [http://joshuaw-wise.ifrance.com/img/styles/nikon-afs/ nikon af-s dx 17-55mm f 2 8g] [http://sm4.ifrance.com/lib/echostar-fta/ echostar fta] [http://dejablu503.ifrance.com/description/lib/foglie-stilizzate.htm foglie stilizzate] [http://trumanburb.ifrance.com/view/new/musi.htm musi] [http://gajar.ifrance.com/html/mercedes-ml.htm mercedes ml] [http://cocopuff66.ifrance.com/text/directory/flli-poli/ flli poli] [http://lightmyfire0214.ifrance.com/topic/cornici-dorate/ cornici dorate] [http://trumanburb.ifrance.com/view/new/sandisk-dap.htm sandisk dap 1gb] {{development}}
+
{{development}}
 
{{manual}}
 
{{manual}}
  
Line 13: Line 13:
 
         { name => "groups", type=>"subject", top=>"groups", multiple => 1,
 
         { name => "groups", type=>"subject", top=>"groups", multiple => 1,
 
                 browse_link => "groups",
 
                 browse_link => "groups",
                 render_input=>\
+
                 render_input=>\&EPrints::Extras::subject_browser_input },
 +
 
 +
for reference, that all means
 +
name = id of the field
 +
type = type (heirarchical subject)
 +
multiple = you can select more than one value at once
 +
top = the top node in the tree
 +
render_input = use the clever subject input, rather than just a big pull-down menu
 +
browse_link = link values in this to pages in /view/groups/ (which we'll make in a minute)
 +
 
 +
Now run erase_archive & create_tables (assuming you've no live data, otherwise it's a bit harder). You may also need to run import_subjects and the other scripts mentioned in the [[http://www.eprints.org/documentation/tech/php/installation.php#creating_the_database_tables_and_website_ 'creating an archive']] documentation.
 +
 
 +
3.
 +
add a human readable description for it:
 +
edit phrases-en.xml
 +
    <ep:phrase ref="eprint_fieldname_groups">Groups</ep:phrase>
 +
    <ep:phrase ref="eprint_fieldhelp_groups">add some relevant help for selecting groups here!</ep:phrase>
 +
    <ep:phrase ref="metapage_title_groups">Groups</ep:phrase>
 +
    <ep:phrase ref="viewname_eprint_groups">Groups</ep:phrase>
 +
 
 +
(the 3rd one is the title for the page on the input form, also called "groups", the 4th is the name which appears on the /view/ pages)
 +
 
 +
4.
 +
add the field to each type of eprint
 +
edit metadata-types.xml
 +
each time you find
 +
 
 +
      <page name="subjects" />
 +
      <field name="subjects" required="yes" />
 +
 
 +
 
 +
add below or before, which ever you prefer,
 +
 
 +
      <page name="groups" />
 +
      <field name="groups" required="yes" />
 +
 
 +
5.
 +
add it to the "abstract" pages:
 +
edit ArchiveRenderConfig.pm
 +
find:
 +
 
 +
        # Subjects...
 +
        $table->appendChild( _render_row(
 +
                $session,
 +
                $session->html_phrase( "eprint_fieldname_subjects" ),
 +
                $eprint->render_value( "subjects" ) ) );
 +
 
 +
 
 +
add below or above or nearby:
 +
 
 +
 
 +
        # Groups...
 +
        $table->appendChild( _render_row(
 +
                $session,
 +
                $session->html_phrase( "eprint_fieldname_groups" ),
 +
                $eprint->render_value( "groups" ) ) );
 +
 
 +
6.
 +
add it to the browse /view/ section:
 +
Edit ArchiveConfig.pm
 +
Add:
 +
        { id=>"groups", fields=>"groups", order=>"-date_effective/title", hideempty=>1 }

Revision as of 10:32, 24 August 2007

Warning This page is under development as part of the EPrints 3.0 manual. It may still contain content specific to earlier versions. Manuals for previous versions of EPrints are also available.
Manual Sections

all the files I discuss are in /opt/eprints2/archives/YOURID/cfg/


1. modify subjects to add your new tree, with a top level with the id "groups" and it's parent set to be "ROOT" (similar to the subjects node). This is the top node of your new subjects tree.

2. add the new field to eprints objects (ArchiveMetadataFieldsConfig.pm):

       { name => "groups", type=>"subject", top=>"groups", multiple => 1,
               browse_link => "groups",
               render_input=>\&EPrints::Extras::subject_browser_input },

for reference, that all means

name = id of the field
type = type (heirarchical subject)
multiple = you can select more than one value at once
top = the top node in the tree
render_input = use the clever subject input, rather than just a big pull-down menu
browse_link = link values in this to pages in /view/groups/ (which we'll make in a minute)

Now run erase_archive & create_tables (assuming you've no live data, otherwise it's a bit harder). You may also need to run import_subjects and the other scripts mentioned in the ['creating an archive'] documentation.

3. add a human readable description for it: edit phrases-en.xml

   <ep:phrase ref="eprint_fieldname_groups">Groups</ep:phrase>
   <ep:phrase ref="eprint_fieldhelp_groups">add some relevant help for selecting groups here!</ep:phrase>
   <ep:phrase ref="metapage_title_groups">Groups</ep:phrase>
   <ep:phrase ref="viewname_eprint_groups">Groups</ep:phrase>

(the 3rd one is the title for the page on the input form, also called "groups", the 4th is the name which appears on the /view/ pages)

4. add the field to each type of eprint edit metadata-types.xml each time you find

     <page name="subjects" />
     <field name="subjects" required="yes" />


add below or before, which ever you prefer,

     <page name="groups" />
     <field name="groups" required="yes" />

5. add it to the "abstract" pages: edit ArchiveRenderConfig.pm find:

       # Subjects...
       $table->appendChild( _render_row(
               $session,
               $session->html_phrase( "eprint_fieldname_subjects" ),
               $eprint->render_value( "subjects" ) ) );


add below or above or nearby:


       # Groups...
       $table->appendChild( _render_row(
               $session,
               $session->html_phrase( "eprint_fieldname_groups" ),
               $eprint->render_value( "groups" ) ) );

6. add it to the browse /view/ section: Edit ArchiveConfig.pm Add:

       { id=>"groups", fields=>"groups", order=>"-date_effective/title", hideempty=>1 }