|
@@ -68,10 +68,22 @@ function add_journal {
|
|
|
do_git commit -m "Added entry for journal ${TITLE}."
|
|
|
}
|
|
|
|
|
|
+function guess_journal {
|
|
|
+ echo -n "Journal Name: "
|
|
|
+ read NAME
|
|
|
+ recsel -t Journal \
|
|
|
+ -i -q "${NAME}" \
|
|
|
+ -R ID,Title \
|
|
|
+ "${JOURNAL_FILE}" |\
|
|
|
+ awk -F' ' -e 'NF' |\
|
|
|
+ awk -F' ' -e '{sub(/ /,"\t")}1'
|
|
|
+ echo -n "Journal Number: "
|
|
|
+ read JOURNAL
|
|
|
+}
|
|
|
+
|
|
|
function add_issue {
|
|
|
if [[ $# -lt 3 ]] ; then
|
|
|
- echo -n "Journal: "
|
|
|
- read JOURNAL
|
|
|
+ guess_journal
|
|
|
echo -n "Volume: "
|
|
|
read VOLUME
|
|
|
echo -n "Issue: "
|