Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bibtex-sw-entry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
gt-sw-citation
bibtex-sw-entry
Commits
7ca60132
Commit
7ca60132
authored
4 years ago
by
Roberto Di Cosmo
Browse files
Options
Downloads
Patches
Plain Diff
Add license
parent
4680dcaf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
softwarebib.tex
+11
-5
11 additions, 5 deletions
softwarebib.tex
with
11 additions
and
5 deletions
softwarebib.tex
+
11
−
5
View file @
7ca60132
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
\newtoggle
{
bbx:swhid
}
\newtoggle
{
bbx:swhid
}
\newtoggle
{
bbx:vcs
}
\newtoggle
{
bbx:vcs
}
\newtoggle
{
bbx:swlabels
}
\newtoggle
{
bbx:swlabels
}
\newtoggle
{
bbx:license
}
\DeclareBibliographyOption
[boolean]
{
halid
}
[true]
{
%
\DeclareBibliographyOption
[boolean]
{
halid
}
[true]
{
%
\settoggle
{
bbx:halid
}{
#1
}}
\settoggle
{
bbx:halid
}{
#1
}}
...
@@ -66,8 +67,10 @@
...
@@ -66,8 +67,10 @@
\settoggle
{
bbx:swlabels
}{
#1
}}
\settoggle
{
bbx:swlabels
}{
#1
}}
\DeclareBibliographyOption
[boolean]
{
vcs
}
[true]
{
%
\DeclareBibliographyOption
[boolean]
{
vcs
}
[true]
{
%
\settoggle
{
bbx:vcs
}{
#1
}}
\settoggle
{
bbx:vcs
}{
#1
}}
\DeclareBibliographyOption
[boolean]
{
license
}
[true]
{
%
\settoggle
{
bbx:license
}{
#1
}}
\ExecuteBibliographyOptions
{
halid,swhid,swlabels,vcs
}
\ExecuteBibliographyOptions
{
halid,swhid,swlabels,vcs
,license
}
%
%
% Declare inheritance rules (valid only in LaTeX preamble!)
% Declare inheritance rules (valid only in LaTeX preamble!)
...
@@ -96,11 +99,11 @@
...
@@ -96,11 +99,11 @@
%
%
\DeclareDatamodelEntrytypes
{
software,softwareversion,softwaremodule,codefragment
}
\DeclareDatamodelEntrytypes
{
software,softwareversion,softwaremodule,codefragment
}
\DeclareDatamodelFields
[type=field,datatype=literal]
{
\DeclareDatamodelFields
[type=field,datatype=literal]
{
introducedin,
introducedin, license
}
\DeclareDatamodelFields
[type=list,datatype=literal]
{
license,
}
}
%% \DeclareDatamodelFields[type=list,datatype=literal]{
%% license,
%% }
\DeclareDatamodelFields
[type=field,datatype=uri]
{
\DeclareDatamodelFields
[type=field,datatype=uri]
{
repository,
repository,
}
}
...
@@ -368,6 +371,9 @@
...
@@ -368,6 +371,9 @@
\newbibmacro*
{
swids
}{
%
\newbibmacro*
{
swids
}{
%
\iffieldundef
{
license
}
%
{}
%
{
\addcomma\addspace\printfield
{
license
}}
%
\iffieldundef
{
doi
}
%
\iffieldundef
{
doi
}
%
{}
%
{}
%
{
\addcomma\addspace\printfield
{
doi
}}
%
{
\addcomma\addspace\printfield
{
doi
}}
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment